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,412 次查看
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 回复数

925 次查看
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 项奖励
回复

925 次查看
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 项奖励
回复

925 次查看
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 项奖励
回复