Iam using S12 All-Access Bootloader in my project(AN3275).
I editted the application program .prm file to ROM_C000 = READ_ONLY 0xC000 TO 0xEFFD;
With this the bootloader was working fine and able to load the application.
But now I had some modifications in the application project and now the size has been increased.
And so with the previously mention edit in .prm file, error is coming in my application project and so I increased ROM_C000 space. But now when I run bootloader application and load the .s19 file Error: Trying to program into bootloader section.
So how can I edit bootloader program inorder to accommodate my application program into the memory.
Hi Sharon, I have read that you are working with the S12 All-Access Bootloader. Can you please tell me where you got this bootloader from or in which program it is implemented?
Thank you, Martin.
Hi,
It is hard to say what to do. I'll talk about it also with our CW guy when he is a work.
The easiest way is to get project, if possible. Or, some artificial project which highlights the issue.
If you see the project as confidential you can send it privately or you can create a request to a support ticket at our support pages https://www.nxp.com/ -> support -> support tickets
and introduce it ... to Ladislav...
Best regards,
Ladislav
Hi,
I apologize about the confusion - please use ansis.lib instad since ansisi.lib -> is is missing floating point support. It is the reason is why it is imposible to link the poject.
Stan
Hi
Now the project is build successfully.
But after flashing to board, my project is not loading.
Meanwhile I have a doubt, while enabling
ROM_4000 = READ_ONLY 0x4000 TO 0x7FFF;
and changing in PLACEMENT
INTO ROM_C000/*, ROM_4000*/;
to
INTO ROM_C000, ROM_4000;
is it necessary to change the command line arguments to -Onb=b.
Regards
Sharon
Hi,
You are not allowed to increase space C000 - EFFD because you will access the bootloader space.
Have you been thinking to use additional near flash 4000-7FFF if you need more near access space?
The procedure is written in the prm file.
However...
in SEGMENTS enable
ROM_4000 = READ_ONLY 0x4000 TO 0x7FFF;
in PLACEMENT change:
INTO ROM_C000/*, ROM_4000*/;
to
INTO ROM_C000, ROM_4000;
Then
press Alt F7 (or go to compiler settings)-> select Compiler for HC12 in Target settings panel -> write: -Onb=b into Comand line arguments
Best regards,
Ladislav