In S12G128, Global addresses are not accessed while reading PFLASH. Why?
Where it is mentioned in the datasheet of S12G128 microcontroller?
Kindly answer my question.
S12G128 uses global addresses only in the case of flash Erase or write. For reading you have to use PPAGE_OFFSET addressing mode. Please look into attached example which writes and reads the FLASH at G240.
Using global addresses for Flash E/W are described in the Flash module chapters.
Expansion of the CPU Local Address MapThe program page index register in S12GMMC allows accessing up to 256KB of address space in theglobal memory map by using the four index bits (PPAGE[3:0]) to page 16x16 KB blocks into the programpage window located from address 0x8000 to address 0xBFFF in the local CPU memory map.
I know it is "a little bit" hidden.
Please look into SW example I attached. You will see the difference between writing and reading the FLASH.
Retrieving data ...