Sunday, 2019-02-17

*** tpb has joined #tomu00:00
xobsAmosSam: bss is usually placed above or below the data section, except instead of copying values into it it's zeroed out. Values go there if their default value is 0.02:03
AmosSamxobs: thx, i get it now06:43
*** gio has quit IRC07:45
*** gio has joined #tomu08:21
*** jayvee has quit IRC08:27
*** jayvee has joined #tomu08:33
*** gio has joined #tomu09:33
*** jelle has joined #tomu11:30
*** xkapastel has joined #tomu11:39
jelleI can't figure out how to permanently flash something to the tomu11:41
xobsjelle: https://github.com/im-tomu/tomu-bootloader/blob/master/API.md#lock-entry11:42
tpbTitle: tomu-bootloader/API.md at master · im-tomu/tomu-bootloader · GitHub (at github.com)11:42
xobsOh, sorry, wrong section.  You want the "flags" section at https://github.com/im-tomu/tomu-bootloader/blob/master/API.md#config-flags11:42
tpbTitle: tomu-bootloader/API.md at master · im-tomu/tomu-bootloader · GitHub (at github.com)11:42
xobsSpecifically, you want it to autorun, so set the TOBOOT_CONFIG_FLAG_AUTORUN_MASK value11:43
jellehmmmmm11:44
xobsThere's a macro that takes care of this for you.  An example is at https://github.com/im-tomu/tomu-quickstart/blob/master/opticspy/opticspy.c#L4811:44
tpbTitle: tomu-quickstart/opticspy.c at master · im-tomu/tomu-quickstart · GitHub (at github.com)11:44
xobsSo you'd instead do TOBOOT_CONFIGURATION(TOBOOT_CONFIG_FLAG_AUTORUN_MASK)11:45
jellehmmm11:45
jellexobs: I presume I can still reflash it after that?11:47
xobsjelle: You can, as long as you don't *also* set the "LOCK ENTRY" flag.11:48
jelleaha11:48
xobsTo reflash, you'd need to use tweezers to short out the pins, as described at https://github.com/im-tomu/tomu-bootloader#using-toboot11:48
tpbTitle: GitHub - im-tomu/tomu-bootloader: Bootloader for the EFM32HG Tomu Board (at github.com)11:48
xobsOr you could have your program write the magic value and reboot.11:49
xobsThe updater actually does that, so you could use that as a reference example: https://github.com/im-tomu/tomu-bootloader/blob/master/booster/main.c#L7311:51
tpbTitle: tomu-bootloader/main.c at master · im-tomu/tomu-bootloader · GitHub (at github.com)11:51
xobsIt's basically "toboot_runtime.magic = TOBOOT_FORCE_ENTRY_MAGIC; NVIC_SystemReset();" to force a reboot into Toboot, to allow for updating.11:52
olasdhi folks, just dropping out of lurk mode to say thanks for your work on fomu (and also to say I've managed to flash the hacker edition I got from tumbleweed at FOSDEM by replicating gio's method of using hook clips)11:52
jellexobs: it worked, thanks!11:53
olasdnow I "just" need more time to get (back) up to scratch on FPGA things11:54
gioolasd: Wonderful!13:08
olasdI also need to try and do the flash procedure with a vanilla Debian arm64 image on the rpi3 now that I know it works with Raspbian13:12
olasd(I tried that initially without success, but after I changed images I noticed my hook clips were poking through the tape and shorting via the USB pads, oops :D)13:13
*** gio has quit IRC15:17
*** AmosSam has left #tomu15:29
*** AmosSam has joined #tomu15:34
*** gio has joined #tomu15:52
*** gio has quit IRC15:52
*** gio has joined #tomu15:56
*** xkapastel has quit IRC15:58
*** AmosSam has left #tomu16:39
*** AmosSam has joined #tomu16:39
*** AmosSam has quit IRC17:24
*** awe00 has quit IRC20:21
*** awe00 has joined #tomu20:36
*** AmosSam has joined #tomu22:08
*** AmosSam has left #tomu22:08
*** AmosSam has joined #tomu22:08
*** xkapastel has joined #tomu23:13

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