Urgently required-how to reprogram the LK24 but keeping one ROM page unaffected

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

Urgently required-how to reprogram the LK24 but keeping one ROM page unaffected

1,806 Views
MuhammadAliMuha
Contributor I
Dear All,

In my application I'm using MC68HC908LK24 and Metrowerks CodeWarrior IDE.

I'm using one page at the beginning of the ROM space of the MC68HC908LK24 to store calibration data.

My question is how can I reprogram the MC68HC908LK24without affecting this page?

I mean I want to change the code on the MCU but keeping this data page unaffected

Labels (1)
0 Kudos
3 Replies

319 Views
MuhammadAliMuha
Contributor I
Dear all,
The S19 record generated from codewarrior has 23Hex data bytes per line
The S19 record read from the MCU Flash [by PROG08SZ Flash Programmer for HC08] has 13Hex data bytes per line
I'm asking whether there is a way to set the byte count in each line of the S19 record generated from codewarrior.
Thanks and best regards 
0 Kudos

319 Views
CrasyCat
Specialist III
Hello
 
Yes this is possible.
  - Open the burner.bbl (or whatever .bbl file you are using in your project in an edit window.
  - Add a new line with command SLINELEN in the bbl file. I would add it after the SRECORD command.
     For example
         SLINELEN=8
     will make sure each line in a s record file contains data to program 8 bytes.
 
CrasyCat
0 Kudos

319 Views
Alban
Senior Contributor II
Hello and Welcome,

If the LK24 is using Flash Block Protection, it is not possible as a Mass Erase is required.

Otherwise, if the memory is not protected, you need to erase page by page every page except the calibration data.

IMHO, you could save your data page in a S-Record with CodeWarrior and then, after merging both calibration and software, program the final S-Record (containing everything).

Regards,
Alban.
0 Kudos