Full erase as default

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

Full erase as default

794件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jdurand on Thu Jan 24 18:22:26 MST 2013
Is there a way to set LPCXpresso to do a full (mass) erase with every firmware load?  I see where I can do that if I'm using the manual "burn firmware" button but don't see a setting for the normal debug build-and-go button.

The problem is my code writes some things to higher memory and if that's still there after I load a new version in it can mess things up.

This won't increase wear on the part overall since sector zero is ALWAYS erased and will burn out first.  Mass erasing the entire part won't change that.

I'm using LPCXpresso 5.0.14_1063 on a Linux system with a Red Probe +.
0 件の賞賛
返信
1 返信

784件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Fri Jan 25 13:54:04 MST 2013
If you want to do this, you should be able to put the command  to mass erase into the "Pre launch command" option of the launch configuration of your project:

http://support.code-red-tech.com/CodeRedWiki/LaunchConfigMenu

Not sure what your target MCU is, so easiest way to get the appropriate command is to use the GUI flash programmer to do a mass erase, and choose to display the log. For more details see:

http://support.code-red-tech.com/CodeRedWiki/GuiFlashProgramming

and

http://support.code-red-tech.com/CodeRedWiki/CommandLineFlashProgramming

Regards,
CodeRedSupport
0 件の賞賛
返信