astapleton[m] has quit [Quit: Idle timeout reached: 172800s]
sroemer has joined #rust-embedded
rainingmessages has quit [Quit: bye]
rainingmessages has joined #rust-embedded
sroemer has quit [Quit: WeeChat 4.5.2]
sroemer has joined #rust-embedded
sroemer has quit [Changing host]
sroemer has joined #rust-embedded
_whitelogger has joined #rust-embedded
_whitelogger has joined #rust-embedded
jason-kairos[m] has quit [Quit: Bridge terminating on SIGTERM]
sourcebox[m] has quit [Quit: Bridge terminating on SIGTERM]
whitequark[cis] has quit [Quit: Bridge terminating on SIGTERM]
_catircservices has quit [Quit: Bridge terminating on SIGTERM]
adamgreig[m] has quit [Quit: Bridge terminating on SIGTERM]
dngrs[m] has quit [Quit: Bridge terminating on SIGTERM]
dirbaio[m] has quit [Quit: Bridge terminating on SIGTERM]
PatrickLloyd[m]1 has quit [Quit: Bridge terminating on SIGTERM]
thejpster[m] has quit [Quit: Bridge terminating on SIGTERM]
JonathanKeller[m has quit [Quit: Bridge terminating on SIGTERM]
JamesMunns[m] has quit [Quit: Bridge terminating on SIGTERM]
Ralph[m] has quit [Quit: Bridge terminating on SIGTERM]
U007D[m] has quit [Quit: Bridge terminating on SIGTERM]
korbin[m] has quit [Quit: Bridge terminating on SIGTERM]
danielb[m] has quit [Quit: Bridge terminating on SIGTERM]
burrbull[m] has quit [Quit: Bridge terminating on SIGTERM]
diondokter[m] has quit [Quit: Bridge terminating on SIGTERM]
KevinPFleming[m] has quit [Quit: Bridge terminating on SIGTERM]
chrysn[m] has quit [Quit: Bridge terminating on SIGTERM]
bartmassey[m] has quit [Quit: Bridge terminating on SIGTERM]
i509vcb[m] has quit [Quit: Bridge terminating on SIGTERM]
jannic[m] has quit [Quit: Bridge terminating on SIGTERM]
therealprof[m] has quit [Quit: Bridge terminating on SIGTERM]
rmsyn[m] has quit [Quit: Bridge terminating on SIGTERM]
EricSeppanen[m] has quit [Quit: Bridge terminating on SIGTERM]
Koen[m] has quit [Quit: Bridge terminating on SIGTERM]
rafael[m] has quit [Quit: Bridge terminating on SIGTERM]
_catircservices has joined #rust-embedded
_whitelogger has joined #rust-embedded
bitts[m] has joined #rust-embedded
<bitts[m]>
Huh, I'm trying to include some c-files into a rust (cortex-a53) project using cc. It compiles fine when I build locally on my (arm) Mac, but if I try to build in a Docker, I get a `rust-lld: error: /<snip>/target/aarch64-unknown-none/debug/build/int_test-3e1a21ae7e1a8a49/out/libweetest.a(db3b6bfb95261072-weetest.o) is incompatible with /tmp/rustcSdBeHS/symbols.o`. Anybody know what is going on?
<bitts[m]>
* project using the cc, * cc crate. It
thejpster[m] has joined #rust-embedded
<thejpster[m]>
Your Mac will have clang, which is a cross compiler. What C compilers does your docker container have?
<thejpster[m]>
Here’s an example that works on Mac and Linux. The CI pipeline on Linux installs gnu-arm-none-eabi, which cc finds automatically.
<bitts[m]>
The docker has both aarch64-none-elf-gcc, tiarmclang, arm-none-eabi (and more). I guess cc needs some more hints on which compiler to choose..
whitequark[cis] has joined #rust-embedded
<whitequark[cis]>
folks, what would you use for structured-ish data exchange between Rust and Python code? deserialization perf Python-side matters a lot to me
<whitequark[cis]>
(asking here since I think my preferences for this project are typical for an embedded one, although it all runs on a PC)
ben[m] has joined #rust-embedded
<ben[m]>
<whitequark[cis]> "folks, what would you use for..." <- You could look into postcard-rpc. But as far as I know you need to write you own python side for it.
<ben[m]>
James Munns might have some thoughts on this
<ben[m]>
* You could look into postcard-rpc. But as far as I know you need to write you own python side for it.
<ben[m]>
James Munns might have some thoughts on this
<ben[m]>
* You could look into postcard-rpc. But as far as I know you need to write you own python side for it. Perhaps a better solution would be to let postcard-rpc do the deserialisation and call that from within python.
<ben[m]>
James Munns might have some thoughts on this
jason-kairos[m] has joined #rust-embedded
<jason-kairos[m]>
design question: in a multithreaded system it can be nice to append the name of the thread "battery management thread: starting charge cycle" to serial port println!()s (it's plain ascii, no fancy precomputed defmt etc... (full message at
<bitts[m]>
<ben[m]> "You could look into postcard-rpc..." <- We used postcard + PyO3 a while back, but I would not call the experience smooth. There were quite a few gotchas and things that did not work quite as you would expect. Possible, but I am hesitant to recommend it..