I have some Const array tables that i want place in the flash/code
memory of ARM controller. we can place array in code memory of C51
using "code" keyword. but how to place const array in ARM?
const unsigned char boot_version_string __attribute__( (at(BOOTLOADER_TOKEN_ADDR) ) ) ="FEMBOOT 1.8";
__attribute__( (at(BOOTLOADER_TOKEN_ADDR) ) ) keyword will work
for 1 or 2 const arrays. but I want to place approximately 50 const
arrays of different sizes, do i have to give address to all the
arrays individually? Is there any way in which the compiler picks the
Note that it's not the Compiler that picks addresses; it's the
Linker - therefore, you need to be looking in the
You need to read the linker manual. A short outline: you probably
want to use a separate section, and to place that section using a
scatter file. not elementary stuff I agree - but well documented.
View all questions in Keil forum