Hi, I have an LPC11U35 with an bug in the firmware that have made the device stop responding. Now I need to find a way to flash the device again. The problem is that it's already an mass produced item but I do have all documentations for the pcb. Is there anything I can do to make it appear as a MSD? Or a way to connect SWD or JTAG to it?
If I have to solder to the chip that is okey.
Br,
Jakob
Solved! Go to Solution.
Hi Jakob Berglund,
Thanks for your reply.
You need to pull the PIO0_1 low and pull the PIO_3 high to force the MCU enter the USB ISP, then you can update the application code via the demonstrated steps above.
Hope it helps.
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Jakob Berglund,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi thanks for your quick answer!
I installed the Flash Magic program. But I do not understand if I need any additional hardware or if I should be able to flash it over USB. And if it should be possible to flash it over USB what interface should i use?
As I said the chip is already installed in a product. So if I could flash over only USB that would be very good. But if not what hardware to I need and how can I connect it to my chip. The designer of the PCB did not add easy connections for SWD or JTAG :smileysad: but I could probably solder it in anyway if needed.
Br
Jakob
Hi Jakob Berglund,
As you mentioned above, your board doesn't have the SWD or JTAG interface, however the USB port is available.
So you can follow the these steps to program the flash.
1. First, force the MCU enter the USB ISP by referring to the LPC reference manual, and the chip will be enumerated as a driver.
2. Double click the driver, you will find a bin file whose name is firmware, then copying a new application executable file to the driver after deletes the firmware file. After that, the chip is programmed by the new executable file.
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
I have tried to force the MCU into USB ISP by looking at this manual http://www.nxp.com/documents/user_manual/UM10462.pdf. But I do not understand what I have to do. I have looked at page 396 of that manual and I know pin PIO0_3 is high. But I think it ends up in executing code because it think that the code is valid.
Have I misunderstood something? I am new to the LPC chips.
Hi Jakob Berglund,
Thanks for your reply.
You need to pull the PIO0_1 low and pull the PIO_3 high to force the MCU enter the USB ISP, then you can update the application code via the demonstrated steps above.
Hope it helps.
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks a lot for your help! I managed to fixed my broken devices now :smileyhappy: You saved me a lot of money and time.