<re_irc>
<@whitequark:matrix.org> : this is a common solution; some toolchains include an option to map some source roots to others (gcc has this, not sure about rustc)
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vancz has quit [Client Quit]
vancz has joined #rust-embedded
vancz has quit []
vancz has joined #rust-embedded
vancz has quit []
vancz has joined #rust-embedded
<re_irc>
<@bluesky404:matrix.org> Does anyone know how to get a bootloader onto the nRF9160 DK and a simple application to be booted by it? Have been searching and trying for weeks, but nothing really worked.
<re_irc>
(Or were you the one that mailed me about it? If so I haven't had time to respond yet)
<re_irc>
<@bluesky404:matrix.org> : Hi, yeah, I am the one who mailed you
<re_irc>
<@diondokter:matrix.org> Just know that in principle you don't need a bootloader. But the chip will start in secure mode, so you're HAL has to be able to deal with that. (Embassy can)
<re_irc>
The downside though is that you can only access the modem when in nonsecure mode
<re_irc>
<@diondokter:matrix.org> We still use the SPM to lower the MCU into nonsecure mode, but in the future I want to update the bootloader to handle it on its own
<re_irc>
<@diondokter:matrix.org> The SPM can also work on its own. No bootloader required
<re_irc>
<@bluesky404:matrix.org> Well, the reason why I think I need a bootloader is to be able to rewrite flash pages of the application with another application for firmware updates
<re_irc>
<@diondokter:matrix.org> Yes that's the main purpose of a bootloader like this
vancz has quit [Ping timeout: 252 seconds]
jr-oss has quit [Ping timeout: 245 seconds]
vancz has joined #rust-embedded
starblue3 has quit [Ping timeout: 245 seconds]
starblue3 has joined #rust-embedded
<re_irc>
<@dkhayes117:matrix.org> I wonder if embassy-boot would work on the 9160? I haven't tried but had plans on looking into it.
<re_irc>
<@diondokter:matrix.org> It should
<re_irc>
<@dirbaio:matrix.org> yeah there's people using embassy-boot in nrf9160
<re_irc>
<@dirbaio:matrix.org> it doesn't handle TZ yet, so I think it needs "SPM -> embassy-boot -> application" right now
<re_irc>
<@dirbaio:matrix.org> TZ is so annoying. If only the modem lib worked from S mode, you could pretend TZ doesn't exist, and just do "embassy-boot -> application" like on other chips