*** tpb has joined #tomu | 00:00 | |
xobs | AmosSam: 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 |
---|---|---|
AmosSam | xobs: thx, i get it now | 06:43 |
*** gio has quit IRC | 07:45 | |
*** gio has joined #tomu | 08:21 | |
*** jayvee has quit IRC | 08:27 | |
*** jayvee has joined #tomu | 08:33 | |
*** gio has joined #tomu | 09:33 | |
*** jelle has joined #tomu | 11:30 | |
*** xkapastel has joined #tomu | 11:39 | |
jelle | I can't figure out how to permanently flash something to the tomu | 11:41 |
xobs | jelle: https://github.com/im-tomu/tomu-bootloader/blob/master/API.md#lock-entry | 11:42 |
tpb | Title: tomu-bootloader/API.md at master · im-tomu/tomu-bootloader · GitHub (at github.com) | 11:42 |
xobs | Oh, sorry, wrong section. You want the "flags" section at https://github.com/im-tomu/tomu-bootloader/blob/master/API.md#config-flags | 11:42 |
tpb | Title: tomu-bootloader/API.md at master · im-tomu/tomu-bootloader · GitHub (at github.com) | 11:42 |
xobs | Specifically, you want it to autorun, so set the TOBOOT_CONFIG_FLAG_AUTORUN_MASK value | 11:43 |
jelle | hmmmmm | 11:44 |
xobs | There'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#L48 | 11:44 |
tpb | Title: tomu-quickstart/opticspy.c at master · im-tomu/tomu-quickstart · GitHub (at github.com) | 11:44 |
xobs | So you'd instead do TOBOOT_CONFIGURATION(TOBOOT_CONFIG_FLAG_AUTORUN_MASK) | 11:45 |
jelle | hmmm | 11:45 |
jelle | xobs: I presume I can still reflash it after that? | 11:47 |
xobs | jelle: You can, as long as you don't *also* set the "LOCK ENTRY" flag. | 11:48 |
jelle | aha | 11:48 |
xobs | To reflash, you'd need to use tweezers to short out the pins, as described at https://github.com/im-tomu/tomu-bootloader#using-toboot | 11:48 |
tpb | Title: GitHub - im-tomu/tomu-bootloader: Bootloader for the EFM32HG Tomu Board (at github.com) | 11:48 |
xobs | Or you could have your program write the magic value and reboot. | 11:49 |
xobs | The 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#L73 | 11:51 |
tpb | Title: tomu-bootloader/main.c at master · im-tomu/tomu-bootloader · GitHub (at github.com) | 11:51 |
xobs | It's basically "toboot_runtime.magic = TOBOOT_FORCE_ENTRY_MAGIC; NVIC_SystemReset();" to force a reboot into Toboot, to allow for updating. | 11:52 |
olasd | hi 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 |
jelle | xobs: it worked, thanks! | 11:53 |
olasd | now I "just" need more time to get (back) up to scratch on FPGA things | 11:54 |
gio | olasd: Wonderful! | 13:08 |
olasd | I 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 Raspbian | 13: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 IRC | 15:17 | |
*** AmosSam has left #tomu | 15:29 | |
*** AmosSam has joined #tomu | 15:34 | |
*** gio has joined #tomu | 15:52 | |
*** gio has quit IRC | 15:52 | |
*** gio has joined #tomu | 15:56 | |
*** xkapastel has quit IRC | 15:58 | |
*** AmosSam has left #tomu | 16:39 | |
*** AmosSam has joined #tomu | 16:39 | |
*** AmosSam has quit IRC | 17:24 | |
*** awe00 has quit IRC | 20:21 | |
*** awe00 has joined #tomu | 20:36 | |
*** AmosSam has joined #tomu | 22:08 | |
*** AmosSam has left #tomu | 22:08 | |
*** AmosSam has joined #tomu | 22:08 | |
*** xkapastel has joined #tomu | 23:13 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!