Hi All,
I need to allocate an array with size of 15k bytes in fixed location in flash and set its value during compilation.
My MCU is MC9S08DZ60 can the compiler handle this to save this size in flash?
Thanks.
Solved! Go to Solution.
Hello,
You would need to create a special segment, of sufficient size, within the PRM file for the project. The array variable would then be placed within this segment, by the linker, by using a suitable #pragma, and defining the array as const. It would seem that the initialisation of this array will be somewhat tedious.
Regards,
Mac
Hello,
You would need to create a special segment, of sufficient size, within the PRM file for the project. The array variable would then be placed within this segment, by the linker, by using a suitable #pragma, and defining the array as const. It would seem that the initialisation of this array will be somewhat tedious.
Regards,
Mac