arachnidlabs / cyflash

Bootloader tool for Cypress PSoC series microcontrollers.
BSD 2-Clause "Simplified" License
44 stars 23 forks source link

Make firmware image file error message more verbose #3

Closed royfranz closed 8 years ago

royfranz commented 9 years ago

Change error message from "Expected 12 byte header line first" to "Expected 12 byte header line first, firmware file may be corrupt." in order to make it clear the error is in the firmware image file, not in the protocol with the device.


I hit this error message, and found the message in the forums indicating that this could be due to a bad image file. (I had in fact saved the html page.) I think it would be helpful to make the error message more explicit, identifying the firmware image file as the problem.

Arachnid commented 8 years ago

I'm sorry, I don't know how I never saw this. Thanks!