read FLASH

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

read FLASH

219 Views
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 Kudos
Reply
1 Reply

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