im-tomu / tomu-quickstart

A quicker way to get started building samples
Apache License 2.0
151 stars 39 forks source link

Inconsistently loading new code #24

Open hexagon5un opened 5 years ago

hexagon5un commented 5 years ago

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?

xobs commented 5 years ago

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

hexagon5un commented 5 years ago

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 commented 5 years ago

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?

xobs commented 5 years ago

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

hexagon5un commented 5 years ago

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.

marcmerlin commented 3 years ago

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