Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistently loading new code #24

Open
hexagon5un opened this issue Nov 9, 2018 · 6 comments
Open

Inconsistently loading new code #24

hexagon5un opened this issue Nov 9, 2018 · 6 comments

Comments

@hexagon5un
Copy link

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
Copy link
Member

xobs commented Nov 9, 2018

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
Copy link
Author

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
Copy link
Author

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
Copy link
Member

xobs commented Nov 9, 2018

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

@hexagon5un
Copy link
Author

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
Copy link
Contributor

Actually if your toboot is too old (mine was), you can only flash once and toboot is gone unless you short 2 pins.
#105
gives instructions on how to upgrade toboot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants