Locating varibles in flash. MC9RS08KA2

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Locating varibles in flash. MC9RS08KA2

852 次查看
josep
Contributor I

hi all,

 

I´m using  MC9RS08KA2 with codewarrior  6.3. The RAM memory in MC9RS08KA2 is only 64 bytes so i need to store some only read varibles in the flash memory. how can i program it?

 

 

I have read some messages in the forum but they didn´t help  me.

 

Some body can help me?

 

Thank you very much.

标签 (1)
0 项奖励
回复
1 回复

552 次查看
CrasyCat
Specialist III

Hello

 

To get read only variables allocated in Flash , just define them as constants with the const keyword.

 

Example

 

const int myTab[4] = {0x123, 0x4567, 0x6789, 0x89AB};

 

CrasyCat

0 项奖励
回复