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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

2,408件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

921件の閲覧回数
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 件の賞賛
返信

921件の閲覧回数
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 件の賞賛
返信

921件の閲覧回数
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 件の賞賛
返信