Prevent flash erase during debugging

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

Prevent flash erase during debugging

ソリューションへジャンプ
1,808件の閲覧回数
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,623件の閲覧回数
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,623件の閲覧回数
ngsoftuser
Contributor III

Thanks,

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

0 件の賞賛
返信
1,623件の閲覧回数
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,624件の閲覧回数
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,623件の閲覧回数
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 件の賞賛
返信