Problem with  HCS12 serial monitor

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem with  HCS12 serial monitor

936 Views
supermandu
Contributor I
When HCS12 serial monitor program is used to program the flash,after the
user's code is changed, An error is reported when load the S19 file into
the MC9S12DP512,
"Error writing to address1...adress2 Information:No memory at this address"
The adrresses are where the code has been changed.
If load the code before  the user has changed,there is no such error.
The problem is specified as follows:
First I download the serial bootloader (HCS12 serial monitor  project) into DP512 through BDM, then with serial port connected, the application project's S19 file could be programmed into the chip through serial port successfully at first. But if I change any code in my application project,and generate a new S19 file, and download it through serial port,The error is reported as I've described.But if I change the code back to the original one. There is no such error.If I download the serial bootloader again, the changed code could be programmed successfully.But,if the code is changed again, there would be an error when it's downloaded.
Labels (1)
0 Kudos
1 Reply

269 Views
jsmcortina
Contributor III

Are sure you are erasing the blocks of memory you are trying to programme? Seems like the first load of the modified code works because the flash was in an erased state after loading the monitor, but on the second load it was not?

 

Can you single-step the monitor code via BDM and see when it is failing?

 

James

0 Kudos