Monday, 2018-08-27

*** tpb has joined #tomu00:00
auscompgeekghetto https://auscompgeek.github.io/tomu-web-led/01:07
tpbTitle: Tomu WebUSB LED (at auscompgeek.github.io)01:07
*** lathiat has quit IRC04:54
*** lathiat has joined #tomu05:03
*** lathiat has joined #tomu05:29
*** xobs has quit IRC05:39
*** nrossi[m] has quit IRC05:39
*** xobs has joined #tomu05:56
*** futarisIRCcloud has quit IRC06:11
*** twoolie has joined #tomu06:19
twooliehello06:19
*** FunkyBob has joined #tomu07:07
FunkyBobo/07:07
FunkyBobanyone 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
xobsHi Funk.  Did you update the bootloader version?07:08
FunkyBobjust got given the tomu y/day... will see if I can dig it out07:08
FunkyBob[ 4116.887867] usb 1-1: Product: Tomu Bootloader v2.0-rc407:08
xobsThat'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/prebuilt07:09
tpbTitle: tomu-bootloader/prebuilt at master · im-tomu/tomu-bootloader · GitHub (at github.com)07:09
FunkyBobok, thanks07:10
FunkyBobso I just run: dfu-util -D toboot-boosted.dfu07:12
FunkyBob?07:12
xobsCorrect, and the next "dfu-util -l" should show a newer version afterwards.07:12
FunkyBobFound 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
FunkyBobsweet07:13
FunkyBoband it works... awesome :)07:13
auscompgeekwait, so why exactly does it say the CDC demo is loaded then?07:14
FunkyBobhaven't had this much fun with USB since I built a device for a company in the mid naugties.... bit-banged UART -> USB HID Keyboard07:15
xobsThe "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
xobsThe 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
xobsAll of my testing was done with Toboot-V2 programs, so I never hit the issue.07:22
xobsWhat's production hardware without at least one subtle firmware bug?07:22
FunkyBobok... next step... start playing with input :)07:22
FunkyBobhaha07:22
auscompgeeksay, if toboot is running and I wanted to run the currently flashed program without reflashing it, is that possible?07:41
xobsauscompgeek: Not currently.  I believe DFU supports that as a parameter, but I couldn't figure out how to do that.07:43
xobsIf 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 IRC08:01
*** joehut has quit IRC08:06
*** joehut has joined #tomu08:08
*** nbags has quit IRC12:27
*** tyll_ is now known as tyll15:06
*** NoGodDamnIdea has joined #tomu16:48
*** chrissi^ has joined #tomu18:24
*** Kitlith has joined #tomu20:54
*** NoGodDamnIdea has quit IRC21:26
*** mo2000 has quit IRC23:29
*** mo2000 has joined #tomu23:32
*** hexa- has joined #tomu23:36
*** mkroman has joined #tomu23:42

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!