• 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...
  • Placing Variables in Section
    Hi, How to place variables in existing section eg. LR_IROM1 0x00000000 0x00080000 { ; load region size_region ER_IROM1 0x00000000 0x00080000 { ; load address = execution address *.o (RESET, +First...
  • Placing variables in ROM
    I'm targeting a STM32. How can I define a large array of data in ROM? Also, is it possible to somehow "attach" a HEX file to a project so that when the project is loaded into the target...it automatically...
  • Place static variable in RAM?
    Hi All If I declare a variable (or a data struct) static, the data is placed in the IRAM. I guess the static data is moved to the IRAM before the "main" in called and probally also before the SDRAM...
  • comparing signed and unsigned variables
    In the following code:- char a = 0x80; unsigned char b = 0x80; if(a==0x80) printf("a==0x80\n"); if(b==0x80) printf("b==0x80\n"); The first printf isn't executed but the second is. Why is this...