xyphro / UsbGpib

Versatile, cheap and portable USB to GPIB converter (USBTMC class based)
MIT License
260 stars 45 forks source link

TestAndMeasurement.bin don't seem to load #11

Closed fbdims closed 1 year ago

fbdims commented 2 years ago

Hi there, When i copy the TestAndMeasurement.bin to the device, and rename it to FLASH.BIN and then reboot, the flash-drive functionality starts again.

i tried to program both with avrispmkII, and dragon_isp, same result Im using linux, but i guess, that should not be an issue...

any hints ??

Jojeee-xyz commented 1 year ago

I've got exactly the same issue, also using Linux, no idea where to start. When burning the bootloader, all fuses seemed to be set correctly. I used an Arduino UNO with the Arduino ISP sketch to make it appear as a avrisp programmer.

Jojeee-xyz commented 1 year ago

I wasn't expecting this to a be issue with Linux but apparently it is? Just confirmed that using the copy command under a windows terminal works without issue. Device is working now as intended.

xyphro commented 1 year ago

Hi!

You have to rename it first and then copy it.

Best regards,

Kai

fbdims @.***> schrieb am Fr., 3. Sept. 2021, 13:40:

Hi there, When i copy the TestAndMeasurement.bin to the device, and rename it to FLASH.BIN and then reboot, the flash-drive functionality starts again.

i tried to program both with avrispmkII, and dragon_isp, same result Im using linux, but i guess, that should not be an issue...

any hints ??

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/xyphro/UsbGpib/issues/11, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFXEGDGRCY2SR3MSTE7BY3UACX2FANCNFSM5DLSKIQQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Jojeee-xyz commented 1 year ago

Hiya,

I tried it both with the original file name and after renaming to 'FLASH.BIN', making sure the file size changed accordingly to the new file. Neither seemed to work, both when using my file manager and the cp/mv command.

I think this is a bug in the LUFA bootloader itself, perhaps the same issue https://www.reddit.com/r/olkb/comments/s0pc6g/flashing_qmk_onto_dz60rgb_ansi_v2/. A workaround is described using the dd command, though I haven't tried it yet: dd if=<firmware bin file> of=<path to FLASH.BIN> bs=512 conv=notrunc oflag=direct,sync

phillid commented 1 year ago

@Jojeee-xyz thanks - this solved the problem I was having!

I'll submit a pull request in a bit to add this to the docs, since it took me 3 goes at the issues list to find this trick ☺

xyphro commented 1 year ago

Thanks a lot guys! I have merged the pull request!