lpcware

How to flash sector 0

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by claudio.destro on Mon Feb 01 23:30:54 MST 2016
Hello guys,

Maybe an old question:

How to flash sector 0 of my LPC2368 by using serial ISP?

I remember I need to do something special in order to write/read sector 0, but I was not able to find any documentation/example about it.

I am implementing my own programmer in node.js/electron, all works fine except for sector 0: my ARM code doesn't run.

I know the ARM code works because it is production code and FlashMagic can flash it, thus I would include it in the list of working software :)

ISP sequence:


<--- U 23130
---> 0
<--- P 0 1
---> 0
<--- E 0 1
---> 0
<--- W 1073752064 4096
...
---> OK
<--- U 23130
---> 0
<--- P 0 0
---> 0
<--- C 0 1073752064 4096
---> 0
<--- W 1073752064 4096
...
---> OK
<--- U 23130
---> 0
<--- P 1 1
---> 0
<--- C 4096 1073752064 4096
---> 0


Thank you in advance

Claudio

Outcomes