• Defining C Preprocessor Constants in A51
    Does anyone know a way to define C preprocessor comments at the command line for A51? For example, in C I would do something like: C51 foo.c DEFINE(SOME_CONST) but the "DEFINE" directive does not...
  • Conditional Check in Assemly File Like C Preprocessor
    I want to set the stack size in assembly depending on if a definition exists, in the same in way as is done in the C preprocessor. For example in C I would do this: #ifdef SMALL_STACK Stack...
  • Problem: Table of constants in an ASMed C file
    I want to define a table of constants like this: code const unsigned char bit_count_table[16] = { 0, 1, .... 4 }; in a C source file built with the ASM option. I get error A24: SEGMENT TYPE EXPECTED...
  • Suffix for constants like U,f,UL
    Unsigned int is of 16 bits for 8 bit machine & 32 bit for 32 bit machine. For that i find a good solution in stdint.h , whish used uint8_t or uint32_t, which reduces any error chances & is very good...
  • Preprocessor directives
    Hello together, I'm coding a simple UART-Application on the MCBSTM32 eval board and have problems with the preprocessor directives. I studied the whole documentation here and I'm pretty sure I'm...