Prevent flash erase during debugging

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

Prevent flash erase during debugging

Jump to solution
836 Views
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.

Labels (1)
0 Kudos
1 Solution
651 Views
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.

View solution in original post

0 Kudos
4 Replies
651 Views
ngsoftuser
Contributor III

Thanks,

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

0 Kudos
651 Views
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 Kudos
652 Views
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 Kudos
651 Views
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 Kudos