<re_irc> <@yruama_lairba:matrix.org> i start to think my codec have a defect :(
GenTooMan has quit [Quit: Leaving]
<re_irc> <@jacobrosenthal:matrix.org> yruama_lairba:matrix.org: Theres the #rtic:matrix.org channel too. Also you can find an expansion of RTIC code in your target directory something like rtic.rs
<re_irc> <@yruama_lairba:matrix.org> jacobrosenthal: in fact, i identified the issue comes from the Adc digital ouput of the codec
<re_irc> <@yruama_lairba:matrix.org> somemtimes codec ouput signal and sometimes not
<re_irc> <@henrik_alser:matrix.org> yruama_lairba:matrix.org: Are you on RTIC 0.6? You can use any timer as monotonic, so systick can be available! What mcu?
<re_irc> <@yruama_lairba:matrix.org> i'm using rtic 0.5
<re_irc> <@henrik_alser:matrix.org> Ahh.. Then it’s a bit trickier.. Time to upgrade :)
<re_irc> <@henrik_alser:matrix.org> What chip family?
<re_irc> <@yruama_lairba:matrix.org> stm32f4, but i'have finally discover my current issue is nor related to too delay
<re_irc> <@yruama_lairba:matrix.org> i tend to think about a defect because initially, the issue occured very rarely, a now it's very present
<re_irc> <@yruama_lairba:matrix.org> or maybe i'm doing something in wrong order ?
starblue1 has quit [Ping timeout: 252 seconds]
starblue1 has joined #rust-embedded
GenTooMan has joined #rust-embedded
fabic has joined #rust-embedded
PyroPeter has quit [Ping timeout: 246 seconds]
PyroPeter has joined #rust-embedded
fabic has quit [Ping timeout: 252 seconds]
dcz has joined #rust-embedded
hosewiejacke has joined #rust-embedded
hosewiejacke has quit [Client Quit]
dcz has quit [Ping timeout: 252 seconds]
<re_irc> <@lulf_:matrix.org> thejpster: I wasn't around yesterday, but I'm interested in usability improvements and would like to help. My focus is primarily IoT connectivity-examples, using drogue-device (based on embassy) as a playground (But I'm positive to anything we can move out of that org for more general consumption). So far we've been focusing on specific boards here https://book.drogue.io/drogue-device/dev/examples.html
<re_irc> <@lulf_:matrix.org> Another usability thing that might be of interest a demo we're presenting at EclipseCon, where we're using Eclipse Che (open source cloud IDE) to build Rust firmware for the microbit in the cloud, and allowing you to download the binary to use with probe-rs or directly to some mass storage flash interface. My immediate thought is that it would be great to have something similar for the rust embedded community...
<re_irc> ... in general, removing the need of installing the toolchain for starters. Maybe there are other systems for this already, we just happen to use Eclipse Che because... its EclipseCon πŸ˜…
cr1901 has quit [Ping timeout: 260 seconds]
<re_irc> <@henrik_alser:matrix.org> yruama_lairba:matrix.org: Here's an example of how you can implement the monotonic trait for the 32bit timers on stm32f411 for reference:
<re_irc> <@henrik_alser:matrix.org> And here's how to use it in RTIC 0.6
<re_irc> <@henrik_alser:matrix.org> A quick solution in 0.5 if you need it is to impl Delay for `cortex_m::asm::delay`
dcz has joined #rust-embedded
fabic has joined #rust-embedded
starblue1 has quit [Ping timeout: 264 seconds]
starblue1 has joined #rust-embedded
<re_irc> <@korken89:matrix.org> Does anyone know of a trick to get "const serialization" with serde? I'm thinking if I have a standard frame to send, why serialize it every time? Seems better to just save to the binary and copy the data.
<re_irc> <@korken89:matrix.org> I could just record it and use it, but it would be nice if it was part of the code to automatically update as one perform changes
cr1901 has joined #rust-embedded
<re_irc> <@yatekii:matrix.org> oO can I change the default target of rust in general??
<re_irc> <@yatekii:matrix.org> I have no .cargo/config and it tries to compile for thumbv7???
<re_irc> <@yatekii:matrix.org> I am very much confused
<re_irc> <@jamesmunns:matrix.org> It'll also search upwards in parent directories
<re_irc> <@yatekii:matrix.org> korken89:matrix.org: we do a similar thing with probe-rs but it requires build.rs or a proc_macro. and we also just do this for yaml and then still serialize from bincode as it is much faster.
<re_irc> <@yatekii:matrix.org> jamesmunns:matrix.org: oohhh thanks!
<re_irc> <@yatekii:matrix.org> I guess that was it :) idk where I have such a config in my downloads dir, but okay :D
<re_irc> <@yatekii:matrix.org> dorum hanis gmerkt
<re_irc> <@yatekii:matrix.org> uff wc
<re_irc> <@yruama_lairba:matrix.org> hello again
<re_irc> <@yruama_lairba:matrix.org> someone knows how i can get help specifically with wm8731 chip ?
fabic has quit [Ping timeout: 265 seconds]
GenTooMan has quit [Remote host closed the connection]
<re_irc> <@skallwar:matrix.org> Hi. I'm working on a project that will run on multiple board (multiple linker script, multiple ISA). I can specify which linker script need to be used in `.cargo/config` every time but that quit annoying. Is there an other approach to this ? Like a file I could give at compile time ?
fabic has joined #rust-embedded
<re_irc> <@jamesmunns:matrix.org> Should be possible with certain environment variables
<re_irc> <@korken89:matrix.org> Or one link file in the `.cargo/config` and generate it from `build.rs`
GenTooMan has joined #rust-embedded
<re_irc> <@skallwar:matrix.org> korken89:matrix.org: Good idea
<re_irc> <@yruama_lairba:matrix.org> i think a finally what going wrong with my codec, i need to "activate" the codec just after having activated the I2S interface of my stm32
<re_irc> <@yruama_lairba:matrix.org> It's very weird because i can't find any instruction about it in the datasheet
<re_irc> <@henrik_alser:matrix.org> yruama_lairba:matrix.org: Datasheets usually tell you half the story at best :)
<re_irc> <@yruama_lairba:matrix.org> this behaviour is very anoying, the activation is done through an I2C or SPI message
<re_irc> <@yruama_lairba:matrix.org> if the I2S/SPI is slow, getting the right timing become hard
<re_irc> <@yruama_lairba:matrix.org> ok, I found what i really did bad. i set up and run I2S interface of stm32 at once
<re_irc> <@yruama_lairba:matrix.org> my issue disapear if set up i2s first, activate the chip, and let run the i2s
<re_irc> <@lachlansneff:matrix.org> Is there going to be an stm32f4-hal release soon? The current examples are straying pretty far from the currently released version on crates.io
<re_irc> <@thejpster:matrix.org> yruama_lairba:matrix.org: Yes, setting up registers on codecs is quite common. You can see the reset value in the datasheet, which is normally "everything off"
<re_irc> <@thejpster:matrix.org> There might be an Arduino or mbed example or something you can crib. I use a TI codec and I found an mbed example.
fabic has quit [Ping timeout: 260 seconds]
emerent has quit [Ping timeout: 246 seconds]
emerent has joined #rust-embedded
<re_irc> <@therealprof:matrix.org> lachlansneff:matrix.org: I was thinking about that just yesterday. Need to find a bit of sparetime for the usual sanity checks and repo cleanup, maybe later today.
<re_irc> <@burrbull:matrix.org> therealprof:matrix.org: Here is update for rtic 0.6-git https://github.com/stm32-rs/stm32f4xx-hal/tree/rtic06
dcz has quit [Ping timeout: 252 seconds]
<re_irc> <@therealprof:matrix.org> Lachlan Sneff: 0.10.0 is out.
<re_irc> <@lachlansneff:matrix.org> Thank you :)
<re_irc> <@skallwar:matrix.org> korken89:matrix.org: I tried it. I "works" I can generate a `.cargo/config` using `build.rs` but the first time I run `cargo build`, cargo do not take the new `.cargo/config` but the old one. If I stop and rerun again it works :D
<re_irc> <@skallwar:matrix.org> jamesmunns:matrix.org: Have you a link to somewhere I should document myself ?
<re_irc> <@lachlansneff:matrix.org> If I don't have access to the `Adc` struct, what would be a reasonable way to convert an adc sample to milivolts?
<re_irc> <@lachlansneff:matrix.org> Nvm, figured out how to get access to the adc struct. But it'd be useful if the closure passed to `Transfer::start` could return a value that gets returned from `start`.
GenTooMan has quit [Read error: No route to host]
GenTooMan has joined #rust-embedded
gsalazar has quit [Ping timeout: 246 seconds]
fabic has joined #rust-embedded
<re_irc> <@yruama_lairba:matrix.org> can somone explain how to use bitbanding through pac or hal ?
<re_irc> <@jacobrosenthal:matrix.org> yruama_lairba:matrix.org: Its only supported on a rare few hals, i couldnt even tell you which. Its sort of not supported generally as its sorta deprecated by arm and not going in on new chips so I think people dont want to support it
<re_irc> <@yruama_lairba:matrix.org> i find nothing about it in pac doc, and the hal, i just find the doc a bit unclear on what i'm supposed to do
<re_irc> <@yruama_lairba:matrix.org> bitbanding is deprecated ?
<re_irc> <@jacobrosenthal:matrix.org> https://github.com/rust-embedded/svd2rust/issues/226
<re_irc> <@jacobrosenthal:matrix.org> I think one of chrysns hals has it, maybe this one https://github.com/chrysn/efm32gg-hal
<re_irc> <@yruama_lairba:matrix.org> jacobrosenthal: bitbanding implementation is very different in stm32f4xx-hal
<re_irc> <@yruama_lairba:matrix.org> lol, the stm32f4xx_hal bitband implementation use assert internally. because of that i guess using bit band generate more code than read/write operation
<re_irc> <@yruama_lairba:matrix.org> so i would not use it :p
<re_irc> <@theunkn0wn1:matrix.org> If I am loosing log lines on RTT, how would I approach debugging that?
<re_irc> <@theunkn0wn1:matrix.org> Im in a situation where i am not seeing some `rprintln`s in my firmware, where i know those instructions were reached.
fabic has quit [Ping timeout: 264 seconds]
<re_irc> <@huntc:matrix.org> Anybody taken Rust Embedded to the dizzying heights of http and websockets yet? I see there's https://crates.io/crates/httparse for parsing http, which could be a good start point.