LPC1343 ISP mode

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

LPC1343 ISP mode

1,656件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gendac on Wed Feb 01 00:29:26 MST 2012
We want to update the LPC1343 firmware in the field using the In-System Programming (ISP) feature. This will be done from another processor via the UART.

Is there an example program for implementing ISP? The AutoISP does not seem too relevant as it is using USB and also making use of IAP. The setup as described below I could also not locate in the example and also not the checksum calculation - please direct me to it if it is in there. Otherwise, it would be very helpful to have another example program.


So far we have been able to put the ARM in ISP mode and followed the sequence as explained in the user manual to setup ISP:
- Host sends '?' sync character and waits for response
- Host receives"Synchronized<CR><LF>"
- Host echoes "Synchronized<CR><LF>"
- Host receives "SynchronizedOK<CR><LF>"
- Host responds by sending crystal frequency
- Host receives OK message

Additionally we have used the J command to read the part ID successfully.

The actual programming is still unclear, is this process correct (after the above setup was done)?:
- Send unlock command
- Prepare sectors for write [Sector 0 to 7]
- Erase sectors [Sector 0 to 7]
- Write program to RAM
- Use Go command to execute written program

How is the checksum calculated during the write sequence? The manual states: "The checksum is generated by adding raw data (before UU-encoding) bytes and is reset after transmitting 20 UU-encoded lines." Can someone please elaborate on this, maybe supply an example? Should we start writing at address 0x0000 0000?

The Go command description states the following: "It may not be possible to return to the ISP command handler once this command is successfully executed."
What does this mean? Will you never again be able to enter ISP or only for some time (maybe till the next reset?)
0 件の賞賛
返信
4 返答(返信)

1,498件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gendac on Thu Feb 02 08:13:44 MST 2012
Good idea, will give it a go, thanks.
0 件の賞賛
返信

1,498件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gbm on Thu Feb 02 07:45:15 MST 2012
If I were you, I'd have a look at LPCISP source. :)
0 件の賞賛
返信

1,498件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gendac on Thu Feb 02 00:27:10 MST 2012
Thank you Carrigan for the suggestion of using Flash Magic. Our LPC1343 is not connected to a serial port, its UART is connect to the UART of a GSM module that needs to perform the update. The GSM module will download updates via GPRS and then needs to program the LPC1343 using ISP.

I might still be able to use Flash Magic to investigate the protocol and checksum used for writing, so it is a useful suggestion, thank you again.

Is there something about Flash Magic that I am not understanding correctly? The module we want to update will not be connected on ethernet and also not on a serial port?
0 件の賞賛
返信

1,498件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Carrigan on Wed Feb 01 05:17:25 MST 2012
Any reason you are not using the NXP supplied Flash Magic tool, which supports both the UART flashing protocols of the 1343?

http://www.flashmagictool.com/
0 件の賞賛
返信