We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
This is correct code with absolute address locating:
#define USER_FLASH_SIZE 32 #define USER_FLASH_BASE_ADDR 07df code unsigned char USER_FLASH_SPACE[USER_FLASH_SIZE] _at_ USER_FLASH_BASE_ADDR;
This is correct code with initializing:
#define USER_FLASH_SIZE 32 code unsigned char USER_FLASH_SPACE[USER_FLASH_SIZE]="Hello, this is my test string!";
This is what I want, but it failed:
#define USER_FLASH_SIZE 32 #define USER_FLASH_BASE_ADDR 07df code unsigned char USER_FLASH_SPACE[USER_FLASH_SIZE]="Hello, this is my test string!" _at_ USER_FLASH_BASE_ADDR;
It shows this error message: GLOBAL.C(4): error C141: syntax error near '_at_'
Please help me solve this problem: absolute locating and initialzing.