Hi Lama,
Thank you very much for your response and the provided document. It is very helpful.
This is specifically for the HED MC9S12XDP512 controller.
Background:
I was just introduced to this project, and unfortunately, anyone previously involved in its development has left the company.
I am now trying to understand the memory allocation, as the code has exceeded the paged memory space.
When I reviewed the local memory map, I understand that the ranges from $4000 to $8000 and $C000 to ($FFFF - Reset Vector Space)
are not within the paged/PPAGE memory space. I do not understand how this unpaged memory space maps to the global addresses
(as shown in column 2 of the DOC-XDP512-MMC-Memory_Map-Common_Map-V5_0-MSExcel.xls). I am still reviewing the manual
MC9S12XDP512RMV2.pdf as well to understand this concept.
I wonder if there is a way to use or free up the unpaged Flash space for application code or the firmware.
Any assistance in achieving this would be greatly appreciated.
I attempted to change the memory map to utilize the unpaged Flash space as follows, and I can build the firmware without
any warnings or errors. However, I am unsure what potential issues this might cause or if there are any problems that I might
not notice.
Original Code:
PAGE_E2 = READ_ONLY 0xE28000 TO 0xE2BFFF;
PAGE_E3 = READ_ONLY 0xE38000 TO 0xE3CFFF;
PAGE_E4 = READ_ONLY 0xE48000 TO 0xE4BFFF;
Modified Code:
PAGE_E3 = READ_ONLY 0xE38000 TO 0xE3CFFF;
In the modified code segment: what is the address range w.r.t. global addressing the the range from 0xE3C000- E3CFFF is belong to?
I would appreciate any insights or advice on this matter.
The original .prm file is attached.
Thank you.
Madushan