*** tpb has joined #tomu | 00:00 | |
auscompgeek | ghetto https://auscompgeek.github.io/tomu-web-led/ | 01:07 |
---|---|---|
tpb | Title: Tomu WebUSB LED (at auscompgeek.github.io) | 01:07 |
*** lathiat has quit IRC | 04:54 | |
*** lathiat has joined #tomu | 05:03 | |
*** lathiat has joined #tomu | 05:29 | |
*** xobs has quit IRC | 05:39 | |
*** nrossi[m] has quit IRC | 05:39 | |
*** xobs has joined #tomu | 05:56 | |
*** futarisIRCcloud has quit IRC | 06:11 | |
*** twoolie has joined #tomu | 06:19 | |
twoolie | hello | 06:19 |
*** FunkyBob has joined #tomu | 07:07 | |
FunkyBob | o/ | 07:07 |
FunkyBob | anyone had the case where their tomu seems to dfu update just fine... but persists in reporting as the CDC Demo app, [am trying to load the USB HID quickstart] | 07:07 |
xobs | Hi Funk. Did you update the bootloader version? | 07:08 |
FunkyBob | just got given the tomu y/day... will see if I can dig it out | 07:08 |
FunkyBob | [ 4116.887867] usb 1-1: Product: Tomu Bootloader v2.0-rc4 | 07:08 |
xobs | That's the problem. The version that shipped (v2.0-rc4) only supports Toboot-V2 programs. Install a newer version by loading toboot-boosted.dfu from https://github.com/im-tomu/tomu-bootloader/tree/master/prebuilt | 07:09 |
tpb | Title: tomu-bootloader/prebuilt at master · im-tomu/tomu-bootloader · GitHub (at github.com) | 07:09 |
FunkyBob | ok, thanks | 07:10 |
FunkyBob | so I just run: dfu-util -D toboot-boosted.dfu | 07:12 |
FunkyBob | ? | 07:12 |
xobs | Correct, and the next "dfu-util -l" should show a newer version afterwards. | 07:12 |
FunkyBob | Found DFU: [1209:70b1] ver=0101, devnum=20, cfg=1, intf=0, path="1-1", alt=0, name="Tomu Bootloader (1) v2.0-rc6-1-g732b95b", serial="UNKNOWN" | 07:13 |
FunkyBob | sweet | 07:13 |
FunkyBob | and it works... awesome :) | 07:13 |
auscompgeek | wait, so why exactly does it say the CDC demo is loaded then? | 07:14 |
FunkyBob | haven't had this much fun with USB since I built a device for a company in the mid naugties.... bit-banged UART -> USB HID Keyboard | 07:15 |
xobs | The "CDC demo" is actually https://github.com/xobs/tomu-tests/tree/master/runner, which is a Toboot-V2 app loaded at offset 0x2000. | 07:21 |
xobs | The bootloader that got loaded checks for Toboot-V2 programs first, and then looks at offset 0x4000 if none are found. Since the test app is at 0x2000, and loading a new non-V2 app puts it at 0x4000, the factory test program is never deleted. | 07:21 |
xobs | All of my testing was done with Toboot-V2 programs, so I never hit the issue. | 07:22 |
xobs | What's production hardware without at least one subtle firmware bug? | 07:22 |
FunkyBob | ok... next step... start playing with input :) | 07:22 |
FunkyBob | haha | 07:22 |
auscompgeek | say, if toboot is running and I wanted to run the currently flashed program without reflashing it, is that possible? | 07:41 |
xobs | auscompgeek: Not currently. I believe DFU supports that as a parameter, but I couldn't figure out how to do that. | 07:43 |
xobs | If you manage to crash toboot, it should actually start the currently-loaded program. | 07:43 |
xobs | ...since the Toboot logic is "if (cold_boot || always_run_program) run_program()" | 07:44 |
*** twoolie has quit IRC | 08:01 | |
*** joehut has quit IRC | 08:06 | |
*** joehut has joined #tomu | 08:08 | |
*** nbags has quit IRC | 12:27 | |
*** tyll_ is now known as tyll | 15:06 | |
*** NoGodDamnIdea has joined #tomu | 16:48 | |
*** chrissi^ has joined #tomu | 18:24 | |
*** Kitlith has joined #tomu | 20:54 | |
*** NoGodDamnIdea has quit IRC | 21:26 | |
*** mo2000 has quit IRC | 23:29 | |
*** mo2000 has joined #tomu | 23:32 | |
*** hexa- has joined #tomu | 23:36 | |
*** mkroman has joined #tomu | 23:42 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!