I would like to locate some things (a table in this case), at an absolute address. When I compile and link the following code segment, data shows up in flash as expected (looking at the map file). Although, not at the address I would like.
extern const uint16_t tblFlashTest[3] = {1,2,3};
It appears as if I should be able to specify the absolute address where the linker should put the table as shown below, but I get a variety of error messages. I have also tried adding the _no_init specifer in the definition, but then I get different errors.
#pragma location=0x0801FC00
extern const uint16_t tblFlashTest[3] = {1,2,3};
Does anyone have an experience with IAR compilers, and placing variables at fixed locations ?