Flash Magic Forum

In-System Programming Support => ARM Cortex => Topic started by: mikaeleiman on September 21, 2021, 06:47:09 AM

Title: LPC55S28 (USB, LPC5500) Operation failed
Post by: mikaeleiman on September 21, 2021, 06:47:09 AM
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,
   Mikael
Title: Re: LPC55S28 (USB, LPC5500) Operation failed
Post by: mikaeleiman on October 05, 2021, 12:32:03 AM
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.