array with size of 15k bytes in fixed location.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

array with size of 15k bytes in fixed location.

ソリューションへジャンプ
549件の閲覧回数
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.

ラベル(1)
0 件の賞賛
返信
1 解決策
440件の閲覧回数
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 件の賞賛
返信
1 返信
441件の閲覧回数
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 件の賞賛
返信