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
<re_irc> <@laura7089:matrix.org> Is there a way to get "eh" alpha-compatible stuff out of the "cortex-m" crate?
<re_irc> <@dirbaio:matrix.org> what do you mean with "get stuff"? :)
<re_irc> <@laura7089:matrix.org> I'm developing a driver for an altimeter, and the only hardware I have for it has it soldered to a board with an RP2040, so my "self-tests" test sub-crate for on-device testing relies on "cortex-m" to create a "Delay" object to wait for the altimeter's boot-up time and sample time, but the altimeter driver is targeting the latest "embedded-hal" alpha whereas "cortex-m" is using the non-alpha releases, so getting it to work...
<re_irc> ... previously used "embedded-hal-compat" to glue them together, but that's fallen out of step with the latest eh alphas
<re_irc> <@laura7089:matrix.org> So I thought I'd ask if there's a way to cut out the middle man and get compatible delays directly from "cortex-m"
<re_irc> <@laura7089:matrix.org> I don't actually have any functions in the driver expecting a delay though, only in the tests, so I suppose I could depend on two different versions of EH and rename one (does rust let me do that?)
<re_irc> <@dirbaio:matrix.org> ahhhokay
<re_irc> <@dirbaio:matrix.org> yes, cortex-m doesn't support the alphas
<re_irc> <@firefrommoonlight:matrix.org> I would set up the altimeter in a way so that's not required
<re_irc> <@dirbaio:matrix.org> > I could depend on two different versions of EH and rename one (does rust let me do that?)
<re_irc> yep, you can do it like this:
<re_irc> embedded-hal-02 = { package = "embedded-hal", version = "0.2.6", features = ["unproven"] }
<re_irc> embedded-hal-1 = { package = "embedded-hal", version = "=1.0.0-alpha.10" }
<re_irc> <@dirbaio:matrix.org> from the code use "embedded_hal_02" or "embedded_hal_1"
<re_irc> <@firefrommoonlight:matrix.org> Make a setup fn to write the config, set up a buffer for readings, and write the start/stop ISRs
<re_irc> <@dirbaio:matrix.org> (you can also rename only one of them too, if you want to keep the 1.0 as the "main" one for example)
<re_irc> <@firefrommoonlight:matrix.org> What altimeter, btw?
<re_irc> <@laura7089:matrix.org> : to clarify, the altimeter doesn't require that you pass it a "delay" object (because I anticipated this problem), it requires that the caller wait themselves or block on the device's ready flag
<re_irc> <@laura7089:matrix.org> : it's an HP203B
<re_irc> <@laura7089:matrix.org> The code's here: https://github.com/Laura7089/hp203b-rs
starblue2 has quit [Ping timeout: 246 seconds]
starblue2 has joined #rust-embedded
nohit has quit [Server closed connection]
nohit has joined #rust-embedded
sknebel has quit [*.net *.split]
m5zs7k has quit [*.net *.split]
sknebel has joined #rust-embedded
m5zs7k has joined #rust-embedded
sknebel has quit [*.net *.split]
m5zs7k has quit [*.net *.split]
sknebel has joined #rust-embedded
m5zs7k has joined #rust-embedded
Dr_Who has quit [*.net *.split]
Dr_Who has joined #rust-embedded
Ekho has quit [*.net *.split]
ni has quit [*.net *.split]
dnm has quit [*.net *.split]
Abhishek_ has quit [*.net *.split]
Amanieu has quit [*.net *.split]
Socker has quit [*.net *.split]
sauce has quit [*.net *.split]
sauce has joined #rust-embedded
Abhishek_ has joined #rust-embedded
Ekho has joined #rust-embedded
ni has joined #rust-embedded
dnm has joined #rust-embedded
Socker has joined #rust-embedded
Amanieu has joined #rust-embedded
Ekho has quit [*.net *.split]
ni has quit [*.net *.split]
dnm has quit [*.net *.split]
Abhishek_ has quit [*.net *.split]
Amanieu has quit [*.net *.split]
Socker has quit [*.net *.split]
sauce has quit [*.net *.split]
Dr_Who has quit [*.net *.split]
sknebel has quit [*.net *.split]
m5zs7k has quit [*.net *.split]
nohit has quit [*.net *.split]
duderonomy has quit [*.net *.split]
emerent has quit [*.net *.split]
Darius has quit [*.net *.split]
diagprov has quit [*.net *.split]
starblue2 has quit [*.net *.split]
jr-oss has quit [*.net *.split]
Foxyloxy has quit [*.net *.split]
agg has quit [*.net *.split]
xnor has quit [*.net *.split]
edm has quit [*.net *.split]
richardeoin has quit [*.net *.split]
nadja has quit [*.net *.split]
NishanthMenon has quit [*.net *.split]
Rahix has quit [*.net *.split]
sigmaris has quit [*.net *.split]
WSalmon_ has quit [*.net *.split]
corecode has quit [*.net *.split]
inara has quit [*.net *.split]
Michael[m] has quit [*.net *.split]
hmw has quit [*.net *.split]
fooker has quit [*.net *.split]
zagura has quit [*.net *.split]
mrtazz has quit [*.net *.split]
Lumpio- has quit [*.net *.split]
Shell has quit [*.net *.split]
DisconSented has quit [*.net *.split]
GenTooMan has quit [*.net *.split]
dne has quit [*.net *.split]
stephe has quit [*.net *.split]
dreamcat4 has quit [*.net *.split]
cyrozap has quit [*.net *.split]
hifi has quit [*.net *.split]
SanchayanMaity has quit [*.net *.split]
limpkin has quit [*.net *.split]
vancz has quit [*.net *.split]
sauce has joined #rust-embedded
emerent has joined #rust-embedded
Darius has joined #rust-embedded
diagprov has joined #rust-embedded
Amanieu has joined #rust-embedded
Socker has joined #rust-embedded
Abhishek_ has joined #rust-embedded
dnm has joined #rust-embedded
ni has joined #rust-embedded
Dr_Who has joined #rust-embedded
Ekho has joined #rust-embedded
m5zs7k has joined #rust-embedded
Shell has joined #rust-embedded
sknebel has joined #rust-embedded
dreamcat4 has joined #rust-embedded
cyrozap has joined #rust-embedded
SanchayanMaity has joined #rust-embedded
hifi has joined #rust-embedded
GenTooMan has joined #rust-embedded
fooker has joined #rust-embedded
hmw has joined #rust-embedded
inara has joined #rust-embedded
corecode has joined #rust-embedded
vancz has joined #rust-embedded
Michael[m] has joined #rust-embedded
Lumpio- has joined #rust-embedded
WSalmon_ has joined #rust-embedded
NishanthMenon has joined #rust-embedded
nadja has joined #rust-embedded
sigmaris has joined #rust-embedded
stephe has joined #rust-embedded
mrtazz has joined #rust-embedded
DisconSented has joined #rust-embedded
zagura has joined #rust-embedded
limpkin has joined #rust-embedded
richardeoin has joined #rust-embedded
dne has joined #rust-embedded
edm has joined #rust-embedded
Rahix has joined #rust-embedded
xnor has joined #rust-embedded
jr-oss has joined #rust-embedded
Foxyloxy has joined #rust-embedded
duderonomy has joined #rust-embedded
starblue2 has joined #rust-embedded
nohit has joined #rust-embedded
agg has joined #rust-embedded
crabbedhaloablut has quit [Max SendQ exceeded]
loki_val has joined #rust-embedded
IlPalazzo-ojiisa has joined #rust-embedded
<re_irc> <@diondokter:matrix.org> Oh this is cool!
<re_irc> Anyone fancy a cortex-m3 that can connect to the satellite communication system? :D
cyrozap has quit [Server closed connection]
cyrozap has joined #rust-embedded
jsolano has quit [Remote host closed the connection]
jsolano has joined #rust-embedded
vancz has quit []
vancz has joined #rust-embedded
starblue2 has quit [Ping timeout: 245 seconds]
starblue2 has joined #rust-embedded
starblue2 has quit [Ping timeout: 264 seconds]
starblue2 has joined #rust-embedded
<re_irc> <@dkhayes117:matrix.org> I had ideas about a device with this capability, I didn't know they existed. I wonder what the power consumption is.
<re_irc> <@dkhayes117:matrix.org> Hmm. Advertised as ultra low power.
<re_irc> <@jamesmunns:beeper.com> Gotta be careful with that, sometimes "ultra low power" only means when you're powered off, and then it's 300mA to associate/send/receive data :D
<re_irc> <@jamesmunns:beeper.com> which is _fine_ if your plan is "wake up once a day to send data", not so much if you are trying to do something fancier :D
<re_irc> <@jamesmunns:beeper.com> (I have no idea about this specific chip tho, but that seems to be par for the course for any radio really like cellular, wifi, or even some of the lora-ish stuff)
<re_irc> <@ryan-summers:matrix.org> Yeah, anything that goes farther than BT LE range (20-30m) tends to have a pretty high power consumption when on
<re_irc> <@ryan-summers:matrix.org> But "low power" and "high power" are incredibly relative terms. For some caes, <10 mA is super low power, but some systems define that as pA ;)
<re_irc> <@diondokter:matrix.org> LoRa isn't too bad either because you can get away with a signal strength at the receiver that is a couple of decibels under the noise floor
<re_irc> <@jamesmunns:beeper.com> add "portable" to that list
<re_irc> <@jamesmunns:beeper.com> sometimes it means "fits in a pocket". Sometimes it means "can be towed by a truck" :D
HumanGeek has joined #rust-embedded
<re_irc> <@pollyglot:pyjam.as> On this page https://docs.rust-embedded.org/embedonomicon/exceptions.html it says the following
<re_irc> > The address of the Reset handler can be seen in the disassembly above, being 0x44.
<re_irc> > However I can't see where the address 0x44 is written. It's in the GDB output, but not the dissassembly.
<re_irc> <@pollyglot:pyjam.as> On this page https://docs.rust-embedded.org/embedonomicon/exceptions.html it says the following
<re_irc> > The address of the Reset handler can be seen in the disassembly above, being 0x44.However I can't see where the address 0x44 is written. It's in the GDB output, but not the dissassembly.
<re_irc> <@pollyglot:pyjam.as> On this page https://docs.rust-embedded.org/embedonomicon/exceptions.html it says the following
<re_irc> > The address of the Reset handler can be seen in the disassembly above, being 0x44.
<re_irc> > However I can't see where the address 0x44 is written. It's in the GDB output, but not the dissassembly.
<re_irc> <@pollyglot:pyjam.as> ->
emerent has quit [Ping timeout: 246 seconds]
emerent has joined #rust-embedded
starblue2 has quit [Quit: WeeChat 3.8]
<re_irc> <@pollyglot:pyjam.as> am i just blind or is this a mistkae
<re_irc> <@pollyglot:pyjam.as> * mistake
<re_irc> <@ryan-summers:matrix.org> Looks like a mistake to me, I also don't see any reference to 0x44
<re_irc> <@pollyglot:pyjam.as> if you ctrl+f 0x44 it shows up in the statement I copy pasted, and at the bottom when setting a breakpoint at HardFault,,, which I realise as I'm typing this isn't relevant lol
<re_irc> <@pollyglot:pyjam.as> I'll report it
<re_irc> <@pronvis:matrix.org> Hello mates!
<re_irc> Is there any rust projects for BigTreeTech boards?
<re_irc> <@pronvis:matrix.org> Hello mates! Is there any rust projects for BigTreeTech boards?
dreamcat4 has quit [Server closed connection]
dreamcat4 has joined #rust-embedded
<re_irc> <@jamesmunns:beeper.com> pronvis: Haven't seen those boards specifically, if you know the chips on them, you might be able to find some more general building blocks out there though!
<re_irc> <@pronvis:matrix.org> : that one: https://github.com/bigtreetech/BIGTREETECH-SKR-E3-DIP-V1.0/blob/master/Hardware/SKR%20E3-DIP-V1.1-PIN.pdf Ye, I know the chip, but it is a lot of hardware there. I am not sure that I am able to build software for that board by my own
<re_irc> <@ryan-summers:matrix.org> It looks like they use standard MARLIN 3D printer firmware for that board. Are there any Rust MARLIN project equivalents?
<re_irc> <@ryan-summers:matrix.org> That'd be a good start. Those 3D printer boards are actually all really standardized surprisingly
<re_irc> <@jamesmunns:beeper.com> Gotcha! Seems to be running an STM32F103, which there are lots of projects here - but I don't think I've seen someone set up a project with all the external parts and logic and things
<re_irc> <@pronvis:matrix.org> : Rust Marlin equivalent would be awesome to find. Cause my project is similar in some case (have 4 stepper drivers).
<re_irc> <@jamesmunns:beeper.com> If you find something, definitely add it to https://github.com/rust-embedded/awesome-embedded-rust
<re_irc> <@jamesmunns:beeper.com> that's usually where I look for "does this exist" first :)
<re_irc> <@ryan-summers:matrix.org> https://github.com/nviennot/turbo-resin ?
<re_irc> <@pronvis:matrix.org> : looking into it right now :), tjamls
<re_irc> <@pronvis:matrix.org> * thanks
GenTooMan has quit [Server closed connection]
GenTooMan has joined #rust-embedded
sigmaris has quit [Ping timeout: 240 seconds]
sigmaris has joined #rust-embedded
<re_irc> <@jamesmunns:beeper.com> Anyone here worked with stuff like IP blobs from companies like Mentor Graphics?
<re_irc> I'm planning on USB OTG support for the allwinner D1, which _appears_ to use some MG IP (link to kernel docs (https://github.com/torvalds/linux/blob/8a28a0b6f1a1dcbf5a834600a9acfbe2ba51e5eb/drivers/usb/musb/musb_core.c#L11-L21).
<re_irc> I might end up working backwards from the linux kernel impl, but I was wondering are there usually reference manuals for this stuff, either:
<re_irc> - From the designer (MG)
<re_irc> - From the implementer (Allwinner)
<re_irc> The Allwinner user manual doesn't have anything (including register defs!) in it regarding usb-otg, I was wondering if there is some PDF out there that I could find, like if someone with an NDA happened to leave it somewhere indexable :D
<re_irc> <@jamesmunns:beeper.com> not sure if you're in the USB game still, or if you happened to know how these IP blocks work :D
<re_irc> <@jamesmunns:beeper.com> Oh look, a pdf that fell off the truck: https://linux-sunxi.org/images/7/73/Musbmhdrc.pdf
<re_irc> <@jamesmunns:beeper.com> :D
<cr1901> Better not right-click save that PDF before putting it back on the truck
dc740 has joined #rust-embedded
sutra has joined #rust-embedded
sutra has quit [Ping timeout: 264 seconds]
IlPalazzo-ojiisa has quit [Remote host closed the connection]