ChanServ changed the topic of #rust-embedded to: Welcome to the Rust Embedded IRC channel! Bridged to #rust-embedded:matrix.org and logged at https://libera.irclog.whitequark.org/rust-embedded, code of conduct at https://www.rust-lang.org/conduct.html
crabbedhaloablut has quit [Write error: Connection reset by peer]
crabbedhaloablut has joined #rust-embedded
explore has joined #rust-embedded
starblue has quit [Ping timeout: 268 seconds]
starblue has joined #rust-embedded
causal has quit [Quit: WeeChat 3.6]
emerent has quit [Ping timeout: 260 seconds]
emerent has joined #rust-embedded
emerent has quit [Remote host closed the connection]
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
emerent has joined #rust-embedded
GenTooMan has quit [Ping timeout: 264 seconds]
<re_irc> <chrysn (@chrysn:matrix.org)> As faern mentioned firmware updates: Has anyone implemented any part of SUIT in embedded Rust yet? It'd be a well-vetted data format and security mechanism on top of any platform specific OTA, but I've neither found anything in a direct crates.io search nor in dependents of COSE crates.
<re_irc> <chrysn (@chrysn:matrix.org)> (SUIT as in RFC9124 and the follow-up yet-unfinished documents such as suit-manifest (https://www.ietf.org/archive/id/draft-ietf-suit-manifest-19.html))
<re_irc> <MathiasKoch> While not implementing SUIT, i think i have a lot of overlap in the OTA part here: https://github.com/BlackbirdHQ/rustot (intended to target AWS IoT OTA)
<re_irc> <MathiasKoch> Without any further knowledge of SUIT, other than skimming the RFC you just linked
<re_irc> <MathiasKoch> After reading further, probably not. It looks like SUIT is not the actual OTA process?
<re_irc> <chrysn (@chrysn:matrix.org)> SUIT is the manifest format; it can be implemented on any transport without depending on the transport's security properties. (Like, same data could go over CoAP, MQTT or just a USB stick).
<re_irc> <MathiasKoch> Ahh, cool 👍️
explore has quit [Quit: Connection closed for inactivity]
<re_irc> <lulf> SUIT looks like something that would suit (hah) drogue iot, I didn't know about that RFC. Instead invented our own CBOR based protocol 🤪
<re_irc> <chrysn (@chrysn:matrix.org)> Quite frankly I saw this as an opportunity to plug this to a crowd which I hoped would like it ;-)
<re_irc> <MathiasKoch> I would absolutely consider changing my manifest format in rustot as well, if a SUIT crate was available :p
<re_irc> <MathiasKoch> Currently we just went with the format they used in freertos, but there is no actual reason for choosing that, apart from having to invent one myself
<re_irc> <chrysn (@chrysn:matrix.org)> I've seen people from ARM/mbed, Microsoft, Nordic and RIOT during the SUIT development discussion list, but nobody from FreeRTOS was around. Let's hope that no features of their format were missed out.
<re_irc> <MathiasKoch> FreeRTOS would today be AWS, but as they are not on your list either it probably comes down to the same :p
<re_irc> Quickly glancing over SUIT, I don't see anything that shouldn't be implementable on top of the AWS managed OTA service either.
giripriyadarshan has joined #rust-embedded
giripriyadarshan has quit [Client Quit]
GenTooMan has joined #rust-embedded
starblue has quit [Ping timeout: 244 seconds]
starblue has joined #rust-embedded
GenTooMan has quit [Ping timeout: 264 seconds]
GenTooMan has joined #rust-embedded
giripriyadarshan has joined #rust-embedded
giripriyadarshan has quit [Client Quit]
neceve has quit [Quit: ZNC - https://znc.in]
GenTooMan has quit [Ping timeout: 244 seconds]
GenTooMan has joined #rust-embedded
dc740 has quit [Remote host closed the connection]
<re_irc> <thejpster> Woot!
<re_irc> <thejpster> Rust 1.64 is out now :)
<re_irc> <thejpster> Can finally get rid of this nonsense: https://github.com/nrf-rs/nrfxlib-sys/blob/develop/src/lib.rs#L6
<re_irc> It makes bindgen for embedded rust so much nicer.
<re_irc> <James Munns> Posted about the Final Friday Showcase, retweets (and submissions!) appreciated: https://twitter.com/rustembedded/status/1572945559769563138
causal has joined #rust-embedded
<re_irc> <dirbaio> has anyone seen this error when clicking "Run test" above a test in rust-analyzer?
<re_irc> * Executing task: cargo test --package ekv --lib -- file::tests::test_read_write --exact --nocapture
<re_irc> * The terminal process failed to launch: Path to shell executable "cargo" is not a file or a symlink.
<re_irc> <dirbaio> it started happening randomly, I don't think I changed anything :S
<re_irc> <dirbaio> cargo is "/usr/bin/cargo", I do have it in "$PATH"
<re_irc> <dirbaio> this fixes it: ""rust-analyzer.runnables.command": "/usr/bin/cargo","
<re_irc> <dirbaio> but _why??_ and why did it break?? 🤷
dc740 has joined #rust-embedded
dc_740 has joined #rust-embedded
dc740 has quit [Ping timeout: 252 seconds]
dc_740 has quit [Remote host closed the connection]
crabbedhaloablut has quit [Quit: No Ping reply in 180 seconds.]
<re_irc> <datdenkikniet> 1.64 now ships rust-analyzer, maybe that's somehow creating some sort of collision (assuming you even updated)?
<re_irc> <datdenkikniet> * updated and it somehow was installed through rustup)?
<re_irc> <datdenkikniet> which would be strange and probably doesn't explain the issue, but 🤷
crabbedhaloablut has joined #rust-embedded
Socke has quit [Ping timeout: 244 seconds]
<re_irc> <SEGFAULT> how do I make gdb / openocd flash the device?
<re_irc> <SEGFAULT> (target is stm32f4)
radens has joined #rust-embedded
Socke has joined #rust-embedded
Socke has quit [Ping timeout: 246 seconds]
<re_irc> <James Munns> did you use "load path/to/binary.elf"?
<re_irc> <James Munns> SEGFAULT ^
<re_irc> <SEGFAULT> let me check my gdb init file, cos the problem I am having is its not sticking after a debug session
creich has quit [Read error: Connection reset by peer]
<re_irc> <SEGFAULT> this is my openocd.gdb file: target remote :3333
<re_irc> monitor arm semihosting enable
<re_irc> detect unhandled exceptions, hard faults and panics
<re_irc> set print asm-demangle on
<re_irc> <SEGFAULT> this is my openocd.gdb file:
<re_irc> set print asm-demangle on
<re_irc> target remote :3333
<re_irc> monitor arm semihosting enable
<re_irc> <James Munns> My typical gdb script usually looks like:
<re_irc> target remote :xxxx
<re_irc> monitor reset halt
<re_irc> load path/to/binary.elf
<re_irc> <James Munns> I dunno if "load" by itself is enough? But also I am a nub at gdb.
<re_irc> <James Munns> maybe if you provide the elf path on gdb invocation
<re_irc> <SEGFAULT> its possible I also screwed my regions up and uploaded to ram?
dc740 has joined #rust-embedded
<re_irc> <James Munns> I mean, you can also upload to RAM with openocd
creich has joined #rust-embedded
<re_irc> <SEGFAULT> where _is_ the binary that gdb loaded?
<re_irc> <James Munns> how are you invoking gdb?
<re_irc> <SEGFAULT> sorry tired, I meant to say the one that cargo spits out of build
<re_irc> <James Munns> probably "target/thumbvxxx-none-eabi-hf/(release|debug)/program-name"
Socke has joined #rust-embedded
<re_irc> <SEGFAULT> I am running the load command now, its taking a lot longer than I expected
<re_irc> <SEGFAULT> yea that worked
<re_irc> <SEGFAULT> load started execution which was unexpected
creich has quit [Remote host closed the connection]
<re_irc> <James Munns> I can't remember, one of the debuggers (stlink? daplink?) does that. There's some inconsistencies between jlink/daplink/stlink
<re_irc> <James Munns> also between "mon reset" and "mon reset halt"
creich has joined #rust-embedded
creich has quit [Remote host closed the connection]
<re_irc> <SEGFAULT> it didn't work it "forgot" the firmware after being powered off for more than a few seconds
<re_irc> <James Munns> Look at your linker script?
dc740 has quit [Remote host closed the connection]
GenTooMan has quit [Ping timeout: 248 seconds]
GenTooMan has joined #rust-embedded
neceve has joined #rust-embedded
GenTooMan has quit [Ping timeout: 244 seconds]
GenTooMan has joined #rust-embedded
explore has joined #rust-embedded
GenTooMan has quit [Ping timeout: 264 seconds]
GenTooMan has joined #rust-embedded
<re_irc> <SEGFAULT> What am I looking for?
<re_irc> <James Munns> Does your "memory.x" file define the "FLASH" region in RAM or FLASH regions?