LPC55S28 (USB, LPC5500) Operation failed

Started by mikaeleiman, September 21, 2021, 06:47:09 AM

Previous topic - Next topic


I connect my device via USB (directly, no UART involved), and try to write firmware data to the flash.

FlashMagic says: LPC55S28 (USB, LPC5500) Operation failed. (programming - failed to send data to the device)

Debug file attached.

Any ideas on what could be wrong? As far as I know it's a brand new chip, so there shouldn't be any locked areas and such. Reading signature works, blank check works, erasing works. It's only firmware download that doesn't work.

Also FLashMagic crashes a lot when using the USB interface, maybe that indicates that something in particular is wrong?

kind regards,


We worked around the problem by implementing the bootloader protocol in a simple command line app using hidapi, which also lets me run it on MacOS and Linux. Seems to be working well.