<leonardvdj[m]>
Out of curiosity, which mcu's do y'all use?
Guest7282 has left #rust-embedded [Error from remote client]
vollbrecht[m] has quit [Quit: Idle timeout reached: 172800s]
<djdisodo[m]>
atmega328p coz it's the only one i have for now
hadez[m] has joined #rust-embedded
<hadez[m]>
wch ch32v20x and ch32v30x also stms and newer avr DX series. Have some pi 2040 dev boards sitting around too but they were never interesting enough or had enough of a product lineup to pull me in.
timokrgr[m] has joined #rust-embedded
<timokrgr[m]>
nrf52 is my go to for quick projects (becaues of good embassy support)
<TristramGrbener[>
<leonardvdj[m]> "Out of curiosity, which mcu's do..." <- nrf52 because I got a microbit to discover the embed world
Guest7282 has joined #rust-embedded
<M9names[m]>
Sorry, what exactly are you trying to do? If it's enabling/disabling specific interrupts that's not the register you're looking for.
<M9names[m]>
Also please tell us which riscv target you're talking about so we can provide targeted advice
<sample-user-just>
<M9names[m]> "Sorry, what exactly are you..." <- I am trying to delegate every interrupt to supervisor mode, but the crate does not provide a way to do so. I am targeting riscv64.
<sample-user-just>
Mistakenly used 'enable' when I meant 'delegate' in the previous post, sorry for the confusion.
Ralph[m] has quit [Quit: Idle timeout reached: 172800s]
<dirbaio[m]>
saadc::ChannelConfig::single_ended(p.P0_05) does magic to set P0_05 in analog mode
<dirbaio[m]>
but you still have to set P0_20 as high yourself.
<dirbaio[m]>
let mic_run = Output::new(p.P0_20, Level::High, OutputDrive::High); should do it
<dirbaio[m]>
s//`/, s/High/HighDrive/, s/;/;`/
<TristramGrbener[>
<dirbaio[m]> "let mic_run = Output::new(p.P0_..." <- aha, things are happening. Thank you! What would is the best way to discover those things?
<TristramGrbener[>
I suppose this is very microbit-v2 specific. After you pointed it, I found a RUN_MIC on https://tech.microbit.org/hardware/schematic/ but without a explaination on how to run it
<dirbaio[m]>
dirbaio[m]: and if you read into the `microbit-v2` source
<dirbaio[m]>
dirbaio[m]: (a few layers deep! it goes down to `microbit-common` crate...)
<TristramGrbener[>
dirbaio[m]: Oh! I see, it’s hidden in behind the board abstraction. I though it was some weird mode that has to be set to get analog data
<dirbaio[m]>
TristramGrbener[: you can see what `microphone_pins.mic_run` is
<dirbaio[m]>
dirbaio[m]: yeah the `microbit-v2` crate is a BSP (board support package)
<dirbaio[m]>
dirbaio[m]: essentially all it does is rename pins
<dirbaio[m]>
dirbaio[m]: so you can refer to it with a nice name like `board.microphone_pins.mic_run` instead of `p.P0_20`
<TristramGrbener[>
dirbaio[m]: 👍️ I still need some practice to find on my own, but I start to understand a few parts
<dirbaio[m]>
TristramGrbener[: (I personally don't like BSPs much, IMO it adds too much indirection, which hurts discoverability/learnability, but that's a whole other story... 🥲)
<TristramGrbener[>
dirbaio[m]: As a beginer, it’s also quite confusing to never really be sure what level of abstraction I’m currently using
<dirbaio[m]>
TristramGrbener[: (I don't think the Rust Discovery book should not use a BSP)
<dirbaio[m]>
s/don't//
<dirbaio[m]>
* (I think the Rust Embedded Discovery book should not use a BSP)
<TristramGrbener[>
dirbaio[m]: at least your work on embassy and using async make a lot of sense to me and is relatable to daytime work
adamgreig[m] has quit [Quit: Idle timeout reached: 172800s]
notgull has joined #rust-embedded
<firefrommoonligh>
<dirbaio[m]> "(I don't think the Rust Discover..." <- Of note, this (The F3 one) induced considerable confusion as it complicated transitioning from the tutorial to an isolated project
kenny has quit [Remote host closed the connection]
kenny has joined #rust-embedded
kriomant[m] has quit [Quit: Idle timeout reached: 172800s]
sethiam[m] has joined #rust-embedded
<sethiam[m]>
I'm working on developing an ADC v2 task that does scan & continuous modes, much like what I saw in what I think was a G4 PR. I was wondering if y'all would accept a PR if I developed the same on the v2 ADC API. I know there's some question about extensibility/uniformity across the various ADC versions, so if no, I'll just use the pac.
<sethiam[m]>
s/no/not/
<sethiam[m]>
* Wrong chat
notgull has quit [Ping timeout: 268 seconds]
notgull has joined #rust-embedded
diondokter[m] has quit [Quit: Idle timeout reached: 172800s]
PeterHansen[m] has quit [Quit: Idle timeout reached: 172800s]
<holo[m]>
What i understand this crate is using rppal (https://github.com/golemparts/rppal) which according to description on readme mentionning its supporting RP5 too. But when i will compile this example im getting: ```Err(Gpio(UnknownModel))```
<holo[m]>
s/dht22_pi/dht22\_pi/, s/```/`/, s/```/`. Any advices what im doing wrong or maybe there is some better RP for starting with learning embeded rust (RP Zero 2?)/
<holo[m]>
s/dht22_pi/dht22\_pi/, s/```/`/, s/```/`. Any advices what im doing wrong or maybe there is some better RP for starting with learning embeded rust (RP Zero 2? i see its supproted by rppal too)/
<holo[m]>
* Hello. Im trying to start with Embeded Rust (and rust at all for some long time) on RP5. I wanted to start with DHT22 sensor and try just to use example from here: https://github.com/michaelfletchercgy/dht22\_pi/blob/master/examples/display.rs
<holo[m]>
What i understand this crate is using rppal (https://github.com/golemparts/rppal) which according to description on readme mentionning its supporting RP5 too. But when i will compile this example and try to start it im getting: `Err(Gpio(UnknownModel))`. Any advices what im doing wrong or maybe there is some better RP for starting with learning embeded rust (RP Zero 2? i see its supproted by rppal too)
<holo[m]>
* Hello. Im trying to start with Embeded Rust (and rust at all again from some long time) on RP5. I wanted to start with DHT22 sensor and try just to use example from here: https://github.com/michaelfletchercgy/dht22\_pi/blob/master/examples/display.rs
<holo[m]>
What i understand this crate is using rppal (https://github.com/golemparts/rppal) which according to description on readme mentionning its supporting RP5 too. But when i will compile this example and try to start it im getting: `Err(Gpio(UnknownModel))`. Any advices what im doing wrong or maybe there is some better RP for starting with learning embeded rust (RP Zero 2? i see its supproted by rppal too)
AdamHott[m] has joined #rust-embedded
<AdamHott[m]>
<holo[m]> "Hello. Im trying to start with..." <- > <@holo:matrix.org> Hello. Im trying to start with Embeded Rust (and rust at all again from some long time) on RP5. I wanted to start with DHT22 sensor and try just to use example from here: https://github.com/michaelfletchercgy/dht22\_pi/blob/master/examples/display.rs... (full message at
<AdamHott[m]>
They support the rp2040 chip found in microcontrollers like the Raspberry Pi Pico
notgull has quit [Ping timeout: 260 seconds]
<holo[m]>
AdamHott[m]: But what you putted is for rasberry pico (for which according to my review should be used with embassy-rs but im trying to use rppal which they mentioning its supporting all linux PIs excluding Pico
<holo[m]>
> <@greengenie:matrix.org> Hi there! So from my understanding the Raspberry Pi 5's chip is different than what the embedded rust crate's support.
<holo[m]>
* But what you putted is for rasberry pico (for which according to my review should be used with embassy-rs) and im trying to use rppal which they mentioning its supporting all linux PIs excluding Pico
<dngrsspookyvisio>
holo: most conversation in this room happens around "no OS" embedded Rust (aka e.g. rp2040), so you might not get a lot of support here. Not saying it's wrong to try though 🙃
<dngrsspookyvisio>
* "no OS/bare metal" embedded
<holo[m]>
dngrsspookyvisio: Yep i know my is based on OS based but its simplest way to start i think. Do you thing general rust channel will be better?
<AdamHott[m]>
dngrsspookyvisio: This is what I've found as well, when I started learning about embedded rust, I discovered it's pretty cool to work with the mainstream microcontrollers that the embedded rust group supports, rather than a full blow mini-computer like the Rapsberry Pi
<holo[m]>
* i know, my
<dngrsspookyvisio>
holo[m]: you can try #rust:matrix.org, I can't guarantee you'll have more success there though
<holo[m]>
dngrsspookyvisio: thank you
<holo[m]>
holo[m]: willt try there too
<dngrsspookyvisio>
holo[m]: maybe the easiest way forward is to try and contact the author(s) of the crate you're having trouble with
<holo[m]>
dngrsspookyvisio: will crate issue in that case on github thank you
<holo[m]>
<AdamHott[m]> "This is what I've found as well,..." <- I have ordered Pico W too and waiting for delivery so will be testing with it soon, just wanted to start on what i allredy had. Will try to ask carate owner on gihub