I do the following configure in PRM file:
/* non-paged RAM */
// RAM = READ_WRITE DATA_NEAR 0x2000 TO 0x3FFF;
RAM = READ_WRITE DATA_NEAR 0x2000 TO 0x2FFF; //正常RAM使用
RAM_VAR = READ_ONLY DATA_NEAR IBCC_NEAR 0x3000 TO 0x3FFF;
PLACEMENT
_PRESTART,
STARTUP,
ROM_VAR,
STRINGS,
VIRTUAL_TABLE_SEGMENT,
//.ostext, /* eventually OSEK code */
DEFAULT_ROM,
NON_BANKED,
COPY
INTO RAM_VAR;
Thus all the machine code of this program will be stored in RAM_VAR,but I can't see the hex data in S19 file.
I have do this thing in MC9S12DP512 and MC9S12P64 before,it have no such problem.
Please tell me the solution,thank you!
Hi,
The default bbl file doesn't support generate srecord in s19 file.
When you download your code to RAM, next time after power-off and power-on. all your code in RAM will disappear. why do you want to do this?
Normally if we want a piece of code running in RAM, we still need store this code to FLASH. then doing copy-to-ram code in your source code to copy this code from flash to ram then run it from RAM.
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Sadwinds,
It should be possible to have RAM code recorded in s19 file by modifying bbl file.
But to avoid further trouble, please send your MC9S12P64 or MC9S12DP512 project here.
I need to check how they implement the same.
Thanks.
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------