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

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

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

1,738 Views
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
Labels (1)
0 Kudos
Reply
2 Replies

875 Views
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 Kudos
Reply

875 Views
CompilerGuru
NXP Employee
NXP Employee
Try const :smileyhappy:.

Daniel
0 Kudos
Reply