array with size of 15k bytes in fixed location.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

array with size of 15k bytes in fixed location.

Jump to solution
565 Views
ngsoftuser
Contributor III

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.

Labels (1)
0 Kudos
Reply
1 Solution
456 Views
bigmac
Specialist III

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


View solution in original post

0 Kudos
Reply
1 Reply
457 Views
bigmac
Specialist III

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


0 Kudos
Reply