Hello everyone,
I managed to successfully reinvoke ISP with LPC11U24 using IAP 57 command. I can read the device signature and flash new code using Flash Magic through UART interface. However, when I try to start program execution in Flash Magic (ISP > Execute/Go), UART doesn't seem to work. I can confirm that the program starts executing well, since the LED connected to PIO1_25 lights up (it is turned off right before calling iap_entry function). During the whole process PIO0_1 is HIGH (ISP is reinvoked in application) and PIO0_3 is LOW (UART programming is chosen). If I manually reset the uC, the new code and UART seem to work properly. However, for my applications it is essential that I can enter and exit ISP mode without need for manual reset.
My test code is attached. LPC11U24 returns any character received via UART except for the character 'P'. If 'P' is received, ISP is reinvoked via IAP 57 command.
Any help is appreciated!
Josip
Hello Joisp Loncar ,
I have test your UART.c file , the UART can work well on my side . As for there is no LPC11u24 chip on my hand,
so I run the project on LPC11C24, just only re-configure UART pins. I take a video about how to control on Flash Magic
and Terminal , please have a look at my attachment. (I send 6 to chip, we can see it can received and send it back to terminal. sorry for I haven't English version terminal.)
Please make sure after click "Go", your UART terminal connect. The first import thing is UART can work well,
so first not send 'p', just send another character to test.
Hope it helps,
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------