Erase Flash sector 0 - LPC1788

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

Erase Flash sector 0 - LPC1788

1,263件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Arkadyosh on Thu May 24 21:59:13 MST 2012
Hello,

I have question about erasing Flash sector 0. In my application I want erase sector 0 to invalid checksum(at the reset uC go into bootloader), and next reset uC by NVIC_SystemReset() function. Can I use this procedure without any consequences? Is there any contraindication to erase sector 0? Can this crash or lock uC? Maybe before erase sector 0 I must execute some special procedure, like a remap vector table or something else?

Regards,
Arkadyosh
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,150件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Arkadyosh on Sat May 26 04:08:22 MST 2012
This is the point, I want erase checksum that uC go into bootloader at next time when it power-up/reset. But Im not sure that this method is good and safe for uC?
0 件の賞賛
返信

1,150件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by stevech on Fri May 25 18:30:28 MST 2012
In the older LPC21xx, the in ROM primary bootloader ran at power-up/reset and it checked that sector 0 checksum in the vector table. If the checksum was invalid, the bootloader would not exit... assuming you have no code to run until something is either sent into the primary bootloader or you JTAG'd some code including sector 0. The same logic may still be in use in the newer chips.
0 件の賞賛
返信