This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Placing array tables in ARM flash?

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?

Parents
  • Thankyou Tamir,

    __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 address automatically?

Reply
  • Thankyou Tamir,

    __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 address automatically?

Children