read FLASH

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

read FLASH

333 次查看
ZzzzzZzzzz
Contributor III

Using MC9S12G128 chip, read the flash data of page address 0x088000, directly read the value of global address 0x20000, read the data of address 0, but read the flash data of non-page address 0xE000, read its global address 0x3e000, you can read the correct data. Is there any other way to read data from a non-paging address?

0 项奖励
回复
1 回复

321 次查看
lama
NXP TechSupport
NXP TechSupport

Hi,

The global address is used only for programming.

For reading you has to use PPAGE_Offset or near address.

Please look at attached examples and some more examples

The memory map is also attached.

Moreover, I would like to suggest you to step through assembler (before you understand it well) to see what is exactly addressed.

 

Something more you can find at...

https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12G-Examples-Pack/ta-p/1103919

 

Best regards,

Ladislav

0 项奖励
回复