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
emerent has quit [Ping timeout: 260 seconds]
ymwm has joined #rust-embedded
emerent has joined #rust-embedded
starblue has quit [Ping timeout: 240 seconds]
starblue has joined #rust-embedded
<re_irc> <jkelleyrtp> I'm struggling with getting vscode/rust-analyzer to work properly with my embedded projects. Does anyone have a working configuration? The issue i'm specifically facing is outlined here: https://github.com/rust-lang/rust-analyzer/issues/11982
<re_irc> That's what works for me.
<re_irc> <jkelleyrtp> newam: Does RA properly check examples? I'm not getting any warnings even when using that configuration
<re_irc> <newam> Examples I am not sure about. I do get warnings for binaries / libraries though
<re_irc> <jkelleyrtp> newam: Ah, bins work for me but not examples. There's an issue on RA but it looks like I'm the one who originally made it (https://github.com/rust-lang/rust-analyzer/issues/10934)
<re_irc> <jkelleyrtp> Ah - looks like you can manually override cargo to include examples
<re_irc> "rust-analyzer.checkOnSave.extraArgs": [
<re_irc> "--examples",
<re_irc> ],
nort has joined #rust-embedded
rektide has quit [Quit: Lost terminal]
rektide has joined #rust-embedded
ymwm has quit [Ping timeout: 250 seconds]
ymwm has joined #rust-embedded
ymwm_ has joined #rust-embedded
ymwm has quit [Read error: Connection reset by peer]
ymwm_ has quit [Ping timeout: 240 seconds]
m5zs7k has quit [Ping timeout: 248 seconds]
m5zs7k has joined #rust-embedded
ymwm has joined #rust-embedded
Shell has quit [Remote host closed the connection]
Shell has joined #rust-embedded
gsalazar has joined #rust-embedded
ymwm has quit [Read error: Connection reset by peer]
ymwm has joined #rust-embedded
ymwm has quit [Read error: Connection reset by peer]
ymwm has joined #rust-embedded
creich_ has quit [Quit: Leaving]
creich has joined #rust-embedded
creich has quit [Quit: Leaving]
<re_irc> <heksa> halfbit: Our lab has lots of Zynq's and PYNQs and we do some Rust things. The PYNQ has a Cortex-A9, and I made a Rust module for an embedded intro course two years back: https://blogs.tuni.fi/cs/unit/cross-compiling-rust-to-run-on-pynq-z1/. I feel like I was probably a total newbie back then and it's all hacks, but it fits the definition of "Rust on Cortex-A9", and all source should be on GitHub.
<re_irc> <heksa> I did get the general feeling that support was pretty non-existent back then. I haven't heard of many updates but I guess cross-compiling is slightly easier now in general.
<re_irc> <K900> They're pretty boring ARM cores overall
<re_irc> <K900> And you're going to need a custom HAL for whatever is running on the FPGA part anyway
<re_irc> <heksa> We also have those Zynq's but we use official Xilinx tooling for the main logic, and put our RISC-V (and Rust) on the FPGA soft logic instead.
<re_irc> <K900> You could also just run Linux on the ARM part
<re_irc> <K900> If you don't need hard RT
<re_irc> <K900> Then it just becomes, well, Linux
<re_irc> <K900> And hard RT stuff is probably better off being on the FPGA side
ymwm has quit [Ping timeout: 240 seconds]
starblue has quit [Ping timeout: 248 seconds]
starblue has joined #rust-embedded
fooker has quit [Quit: WeeChat 3.3]
fooker has joined #rust-embedded
<re_irc> <Chris [pwnOrbitals]> Anyone knows some good crates to control GDB from Rust ? I'd like to have a test rig that has some Rust on the host controlling and influencing the Rust code on target
ymwm has joined #rust-embedded
<re_irc> <ryan-summers> Perhaps take a look at probe-run's on-target tester? I don't think it uses GDB, but rather uses probe-rs to manually manipulate the target via the debug probe to run unit tests on hardware
gsalazar has quit [Remote host closed the connection]
gsalazar has joined #rust-embedded
gsalazar has quit [Ping timeout: 248 seconds]
ymwm has quit [Read error: Connection reset by peer]
ymwm has joined #rust-embedded
ymwm has quit [Read error: Connection reset by peer]
ymwm has joined #rust-embedded
ymwm has quit [Remote host closed the connection]
ymwm has joined #rust-embedded
ymwm has quit [Ping timeout: 250 seconds]
ymwm has joined #rust-embedded
ymwm has quit [Remote host closed the connection]
ymwm has joined #rust-embedded
<re_irc> <Chris [pwnOrbitals]> great idea ! looks like it fits what I'm looking for
<re_irc> <Chris [pwnOrbitals]> thanks :)
ymwm has quit [Ping timeout: 250 seconds]
gsalazar has joined #rust-embedded
ymwm has joined #rust-embedded
gsalazar has quit [Ping timeout: 240 seconds]
ymwm has quit [Ping timeout: 250 seconds]
explore has joined #rust-embedded
xnor_ has joined #rust-embedded
Socke has quit [*.net *.split]
xnor has quit [*.net *.split]
nort has quit [Ping timeout: 250 seconds]
Socke has joined #rust-embedded
<re_irc> <MathiasKoch> Does anyone have a reasonable implementation of async Read/Write on either rtt channels or defmt frames? blocking std::io::Read/Write could also have interest
<re_irc> <Noah> doesn't probe-rs-rtt implement Read/Write?
<re_irc> <MathiasKoch> Nope.. I was a bit surprised as well
<re_irc> <MathiasKoch> Would have made so much sense
<re_irc> <MathiasKoch> Might be due to the core requirement of "pub fn read(&self, core: &mut Core, buf: &mut [u8])"?
<re_irc> <MathiasKoch> +argument
<re_irc> <newam> it used to in a previous version, now it doesn't because the core argument got added
<re_irc> <MathiasKoch> I guess something like this should be okay for a sync version?
<re_irc> impl Read for UpChannel {
<re_irc> fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> {
<re_irc> let mut core = self.session.lock()?.core(0)?;
<re_irc> <MathiasKoch> Is there an easy way to get an "AsyncRead" from "std::io::Read"?
nort has joined #rust-embedded
Foxyloxy has quit [Ping timeout: 248 seconds]
Foxyloxy has joined #rust-embedded