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
cr1901_ is now known as cr1901
skunkjoe has quit [Ping timeout: 240 seconds]
ymwm has joined #rust-embedded
ymwm has quit [Ping timeout: 272 seconds]
<re_irc> <wcampbell> Hey! Trying out the example: https://github.com/stm32-rs/stm32f3xx-hal/blob/master/examples/serial_echo_rtic.rs by using the command: "cargo embed --chip STM32F303VCTx --example serial_echo_rtic --features="ld stm32f303xc"" and Embed.toml:
<re_irc> [default.rtt]
<re_irc> However, having problems sending and receiving packets. The LED lights up, but the rtt screen shows "20:34:38.770 irq error" when sending from minicom. Any ideas?
<re_irc> enabled = true
<re_irc> I'm using PA10/PA9.
<re_irc> <wcampbell> Nevermind, I blindly used the baud rate from the discovery book and this was different 😬
starblue1 has quit [Ping timeout: 240 seconds]
starblue1 has joined #rust-embedded
ymwm has joined #rust-embedded
ymwm has quit [Max SendQ exceeded]
ymwm has joined #rust-embedded
ymwm has quit [Quit: Leaving]
<re_irc> <john_socha> I have a question about tests and embedded rust. The last time I looked at this it seemed you couldn't have tests directly in the source for embedded files--you had to put them in the testing folder and write "integration" tests. But I see some examples, like in Embassy, that seem to indicate it might be possible to have the tests directly in the same source file. When I try that, however, I get the following error:
<re_irc> error[E0463]: can't find crate for `test`
<re_irc> --> src\uart_task.rs:236:5
<re_irc> |
<re_irc> #[cfg(test)]
<re_irc> <john_socha> And the code I have at the end of the ".rs" file:
<re_irc> mod tests {
<re_irc> use super::*;
ymwm has joined #rust-embedded
ymwm has quit [Remote host closed the connection]
<re_irc> <ryan-summers> That's the intended usage for unit tests - your structure looks fine - are you getting this when you run "cargo test"?
<re_irc> <ryan-summers> Also, unrelated question: Does anyone know of any libraries for VISA? I guess you could link to like NI-VISA's lib, but was hoping there was something already out there like py-visa
<re_irc> <burrbull> " --target x86_64-unknown-linux-gnu --lib"
Guest2 has joined #rust-embedded
skunkjoe has joined #rust-embedded
skunkjoe has quit [Ping timeout: 272 seconds]
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
richardeoin has quit [Ping timeout: 256 seconds]
richardeoin has joined #rust-embedded
skunkjoe has joined #rust-embedded
jasperw has quit [Ping timeout: 256 seconds]
jasperw has joined #rust-embedded
skunkjoe has quit [Ping timeout: 252 seconds]
richardeoin has quit [Ping timeout: 272 seconds]
richardeoin has joined #rust-embedded
tokomak has quit [Ping timeout: 240 seconds]
ymwm has joined #rust-embedded
ymwm has quit [Ping timeout: 240 seconds]
skunkjoe has joined #rust-embedded
starblue1 has quit [Ping timeout: 256 seconds]
skunkjoe has quit [Ping timeout: 250 seconds]
skunkjoe has joined #rust-embedded
jasperw has quit [Ping timeout: 256 seconds]
skunkjoe has quit [Ping timeout: 268 seconds]
jasperw has joined #rust-embedded
Guest2 has quit [Ping timeout: 256 seconds]
starblue1 has joined #rust-embedded
tokomak has joined #rust-embedded
starblue1 has quit [Read error: Connection reset by peer]
<re_irc> <barafael> when using embedded_hal serial read feature, I can call "serial.read()". But what if I want to read 6 bytes? Do I have to loop myself?
<re_irc> <barafael> i'm wondering if there is an extension trait for this and how I would find it