Prevent flash erase during debugging

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Prevent flash erase during debugging

跳至解决方案
1,898 次查看
ngsoftuser
Contributor III

Hi,

 

Is there any way to tell CW (version 10.2) not to erase flash when burning firmaware?

The reason I am asking is because I need to develop bootloader for MC9S08DZ60. I want to burn application before I burn the bootloader

and see that the bootloader actually jump to the application.

 

Is there a way to limit S record length? for example I want it to be max of 64 bytes.

 

Thanks.

标签 (1)
0 项奖励
回复
1 解答
1,713 次查看
BlackNight
NXP Employee
NXP Employee

Hello,

if you are usiing P&E as connection device, then this link provides a way to do this:

Programming part of flash

I hope this helps.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,713 次查看
ngsoftuser
Contributor III

Thanks,

As for my seconds question, use SLINELEN will set the S-Record len

0 项奖励
回复
1,713 次查看
Rick_Li
NXP Employee
NXP Employee

Eran,

that's right, SLINELEN will set the S-Record len.

an example is like below (the .bbl file):

OPENFILE "%ABS_FILE%.s19"

format=motorola

busWidth=1

origin=0

len=0x10000

destination=0

SLINELEN=24

SRECORD=Sx

SENDBYTE 1 "%ABS_FILE%"

CLOSE

0 项奖励
回复
1,714 次查看
BlackNight
NXP Employee
NXP Employee

Hello,

if you are usiing P&E as connection device, then this link provides a way to do this:

Programming part of flash

I hope this helps.

0 项奖励
回复
1,713 次查看
ngsoftuser
Contributor III

Hello Erich,

I think there is a bug in the memory Preservation or i might missing how to use it.
My bootloader is set in PRM to be on ROM in range of 0xFA00 to 0xFFAD.
When I try to set memory Preservation range as mentioned above, eclipse ignores it and set it as F9C0 to FFBF.


The same thing happens when I try to set bootloader project to prevent erasing range 1900 To FFFF eclipse ignores it and set is as 1900 to 10DF.

Is this really a bug or I am missing something in memory preservation?

My mcu is MC9S08DZ60.

Thank you.


0 项奖励
回复