tomu-quickstart icon indicating copy to clipboard operation
tomu-quickstart copied to clipboard

Inconsistently loading new code

Open hexagon5un opened this issue 5 years ago • 6 comments

Opened up the quickstart and started compiling and flashing everything. :) Some programs seem to load correctly, according to dfu-util, but previously loaded programs are run.

Specifically, I ran miniblink and played around with changing the blink time, everything worked. Then I ran usb-cdcacm, and it worked fine.

Next, I tried to run usb-midi, and dmesg still shows that it's connected as a serial terminal, amidi doesn't find the device, and when I connect to it via serial, it's still running the cdcacm demo.

Miniblink, cbmbasic, opticspy, and usb-cdcacm seem to work. Captouch, usb-hid, usb-midi, and bare-minimum do not.

Oddly enough, just now I loaded opticspy, overflashed captouch and opticspy was still loaded, then flashed bare-minimum and it runs the usb-acm demo. Where did opticspy go?

This might be a toboot bug?

hexagon5un avatar Nov 09 '18 09:11 hexagon5un

It sounds like you're running an older version of Toboot. Did you install the latest version when you got Tomu? https://github.com/im-tomu/tomu-bootloader#installing-or-upgrading-toboot

xobs avatar Nov 09 '18 09:11 xobs

I haven't messed with Toboot. I just got this at the Hackaday Supercon. I'll try updating the bootloader and get back to you.

hexagon5un avatar Nov 09 '18 09:11 hexagon5un

That did it. Thanks for the amazingly quick response!

I'm not sure if all of the Tomus given out at Supercon had the same bootloader version, but if so, there's going to be ~400 people with the same problem. Maybe add something about reflashing the bootloader to the quickstart page?

hexagon5un avatar Nov 09 '18 09:11 hexagon5un

There is a note at https://github.com/im-tomu/tomu-quickstart#troubleshooting-tips -- maybe it should be moved further up?

xobs avatar Nov 09 '18 09:11 xobs

Hah. Spoke too soon! Just now I flashed bare-minimum which appeared to work, and then tried to flash captouch and opticspy reappeared. I haven't tested them exaustively/systematically, but some others seem to be working -- midi and miniblink and hid-keyboard at least.

As for the location of the advice to reflash the bootloader: yeah, probably. Given that a ton of people are all going to have the same issue, and that it's probably the first thing that they should do, I would put a "get a new bootloader" message at the top.

hexagon5un avatar Nov 09 '18 09:11 hexagon5un

Actually if your toboot is too old (mine was), you can only flash once and toboot is gone unless you short 2 pins. https://github.com/im-tomu/tomu-quickstart/pull/105 gives instructions on how to upgrade toboot

marcmerlin avatar Dec 30 '20 18:12 marcmerlin