George Vince

Bootload Problem with MC9S12A256B

Discussion created by George Vince on Oct 16, 2008
Latest reply on Oct 17, 2008 by kef
I am running an application on MC9S12A256B. I am using FAR strings to store some of my strings since I have run out of RAM in the STRINGS section. Paging is enabled, so all my program code resides in the FAR memory.

To Bootload the code, I'm using a serial connection from a Visual Basic program which we designed. The Microprocessor code has Start12.cpp and another file called Bootload.cpp which will erase all the flash except the bootloader code and write the new code into the appropriate locations as specified by the linker. The location where the bootloader code resides is specified by the linker file.

Problem Description:
I have a version A.0 of the code which I loaded into the micro using the BDM. I made code changes in the logic and also added new strings in the FAR memory in addition to the already existing ones to create Version B.0.

The problem is I'm unable to bootload version A.0 to B.0 as is. However if I comment out the newly added strings in FAR memory in B.0, I am then able to bootload from A.0 to B.0. If add some dummy code instead of the new strings in B.0 I can bootload. It appears that adding new strings in FAR memory to the already exisitng ones is the inhibhiting factor which prevents the bootload. At least that is what the symptoms show.

Could anyone please provide thoughts on this? I understand my question might be vague but I hope some ideas as to the direction I can look into can help.

Thanks in advance,