How do i put an array into the Code segment instead of data segment?

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

How do i put an array into the Code segment instead of data segment?

1,818件の閲覧回数
firmware
Contributor I
Hello Guys,

I have a long array that I is not gonna be changed and I dont want to use an EEPROM or Serial Flash. I remembered that i can do this with Keil C51 using storage modifier "code".  I was wondering if the Codewarrior V6.1 for HCS08 series. Is there any such modifier that i can before the following code?

unsigned char Array_nv_chg[1024] = {...};

Thanks,

Samuel
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

955件の閲覧回数
firmware
Contributor I
Hi Compiler Guru,

Thanks! I really appreciate it. Its so simple I feel bad not to know known it :smileywink:

Firmware
0 件の賞賛
返信

955件の閲覧回数
CompilerGuru
NXP Employee
NXP Employee
Try const :smileyhappy:.

Daniel
0 件の賞賛
返信