atc1441 / chflasher

GNU General Public License v3.0
27 stars 7 forks source link

"Something wrong with the bin file" for < 256 bytes hex file #3

Open bootrino opened 3 years ago

bootrino commented 3 years ago

@atc1441 your CH559 flasher worked great except I compiled Prasad's blink from here: https://kprasadvnsi.com/posts/bare-metal-ch559-pt1/ which is about 140 bytes hex file & the flasher at this line https://github.com/atc1441/chflasher/blob/e9021204c97a7a74d30004d8673369bc17a02a99/chflasher.py#L196 says < 256 bytes is "Something wrong with the bin file", but it still worked.

Is there actually a problem with hex files less than 256 bytes?

atc1441 commented 3 years ago

Hey, no thats fine, i just never thought there would be a file to flash smaller than that but blink does not need much.

Will maybe fix the warning in a later version.