Content originally posted in LPCWare by marcopompeo on Fri Aug 12 03:27:47 MST 2011
I read the AN11015 but It's a little bit different to my own application.
Refer to section 3 of AN11015 I'd like to develop my application in this way:
First time I program my LPC1114 with Flash Magic tool but then I'd like to update LPC1114 firmware using my head module within LPC1768 to download new firmware into LPC1114 flash memory.
I don't use the assertion of a LPC1114 pin to enter in ISP mode, but I do this sending a command (by UART) from LPC1768 to LPC1114.
Flow of typical application I'd like to develop is:
•LPC1114 is running with its user code.
•The LPC1768 sends a command to instruct LPC1114 that there is an upload request.
•The code inside LPC1114 part will read this command and conditionally invoke ISP via the "Reinvoke ISP" IAP command.
•UART Data transfer of new .bin or .hex (new user code for LPC1114) file from LPC1768 to LPC1114 take place.
Now, if the part above is correct, I'd like to ask you if this sequence is correct:
1) First I invoke ISP in lpc1114
2 then data transfer of new code begins (lpc1768 sends data through uart)
3) In lpc1114 I do nothing because ISP takes care to store new code starting from address 0.
4) at the end, I cycle power for a reset and new code will do executed.
Thank you in advance!
Best regards,
MP