<RockBoynton[m]>
defmt question: I am getting WARN defmt_decoder::log::format: logger format contains timestamp but no timestamp implementation was provided; consider removing the timestamp ({t}or{T}) from the logger format or provide a defmt::timestamp! implementation even though I definitely use the defmt:timestamp! macro, am I missing something?
<swork[m]>
<JamesMunns[m]> "If it's a plain zero initialized..." <- And in fact I did. Thank you.
gregormoritz[m] has joined #rust-embedded
<gregormoritz[m]>
ivmarkov: dirbaio thanks for your help! I built a c++ project using esp-idf v5.2.2 and solved c binding issue of rust functions
<gregormoritz[m]>
* ivmarkov: dirbaio mheld thanks for
<gregormoritz[m]>
* ivmarkov dirbaio mheld thanks for your help! I built a c++ project using esp-idf v5.2.2 and solved c binding issue of rust functions
sroemer has quit [Ping timeout: 265 seconds]
duderonomy has joined #rust-embedded
starblue has quit [Ping timeout: 265 seconds]
starblue has joined #rust-embedded
sroemer has joined #rust-embedded
jasperw has quit [Quit: Byeeeeeeeeeeeeeeee!]
jasperw has joined #rust-embedded
<thejpster[m]>
<RockBoynton[m]> "defmt question: I am getting ..." <- Which version of defmt and which version of probe-rs?
crabbedhaloablut has joined #rust-embedded
ouilemur has quit [Read error: Connection reset by peer]
<thejpster[m]>
does anyone know of a nice tool to merge two ELF files, with non-overlapping segments?
<thejpster[m]>
I guess I could convert them to .hex and merge them with srecord tools
<diondokter[m]>
thejpster[m]: Merging hexes is what we did before (when we had to)
<thejpster[m]>
maybe llvm-objcopy can do it
<diondokter[m]>
I don't know of a tool that can do it. Maybe objcopy yeah.
<diondokter[m]>
Using the `object` crate, it shouldn't be that hard to create a simple tool yourself. (If you don't care about debug info)
cmooon has left #rust-embedded [#rust-embedded]
Kaspar[m] has joined #rust-embedded
<Kaspar[m]>
I think the linkers (gnu ld, lld, ...) can also do it, with a slim custom linker file. there's syntax for including binaries at specific addresses.
davidmpye[m] has quit [Quit: Idle timeout reached: 172800s]
<JamesMunns[m]>
<diondokter[m]> "Merging hexes is what we did..." <- Yeah, elfs -> hex, merge hex, hex -> bin is what I've done before as well. Or compile one, make it a bin, then `include_bytes!` into a `link_section`'d static (careful, you need to make it an array and not a slice)
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<thejpster[m]>
I'm trying not to include_bytes! the second firmware, otherwise doing a cargo run replaces it.
<thejpster[m]>
(but that is what I have done before)
<thejpster[m]>
I'd like to be able to cargo run either of them individually (flashing the ELF with probe-rs) and then have a combo image for people who aren't debugging
<thejpster[m]>
I can live with the combo image being a UF2 and not an ELF.
<diondokter[m]>
Hmmm, yeah then probably merge hexes and then convert to UF2
<diondokter[m]>
I asked björn3 and he also didn't know a tool for this
<thejpster[m]>
Can I just concatenate an ihex or do I need to parse it? I used to know the various header bytes off the top of my head.
<diondokter[m]>
No, you can't just concatenate generally
berkus[m] has quit [Quit: Idle timeout reached: 172800s]
<thejpster[m]>
it has configuration data located in flash. I didn't carve out those bytes, so there is program code at that those locations.
<thejpster[m]>
I might be able to look at what I flashed, and work out what I've accidentally set those configuration values to. I guess you're supposed to ... put a carve out in the linker script somehow? Start your code at 0x0810, and just put the reset vector at 0x0000 and hope it isn't more than 0x400 bytes in length?
<dirbaio[m]>
that's such a weird design, especially seeing they already have some separate"configuration area" lol
<diondokter[m]>
lol
<diondokter[m]>
Did you get the board at embedded-world? Because I've got the same one lying around
ouilemur has joined #rust-embedded
<thejpster[m]>
no I paid for it with my own actual money, because I needed to make it to the free shipping level at Digikey
starblue has quit [Ping timeout: 265 seconds]
ivmarkov[m] has quit [Quit: Idle timeout reached: 172800s]
mheld[m] has quit [Quit: Idle timeout reached: 172800s]
duderonomy has joined #rust-embedded
crabbedhaloablut has quit []
Guest8153 has joined #rust-embedded
Guest8153 has quit [Remote host closed the connection]