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
zaven[m] has joined #rust-embedded
<zaven[m]> hi folks, is is possible to use stm32f1xx-hal crate with embedded-hal 1.0 ? not sure if i am missing something, just trying to see about upgrading our code from 0.2.7 for the first time.
<zaven[m]> s/is/it/
M9names[m] has joined #rust-embedded
<M9names[m]> they have support for it in the git repo but it looks like there hasn't been a crates.io release of stm32f1xx-hal since the end of 2022.
<M9names[m]> if you're okay with a git dependency the answer is yes, otherwise no.
<M9names[m]> also: you could help prepare a release if you would like one. i'm sure the maintainers would be happy to push the release button once any other release work is already done.
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duderonomy has joined #rust-embedded
hicklin[m] has quit [Quit: Idle timeout reached: 172800s]
pbsds37 has joined #rust-embedded
pbsds3 has quit [Ping timeout: 260 seconds]
pbsds37 is now known as pbsds3
pbsds3 has quit [Ping timeout: 246 seconds]
AndoThorNando[m] has quit [Quit: Idle timeout reached: 172800s]
AlexandrosLiarok has quit [Quit: Idle timeout reached: 172800s]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
burrbull[m] has quit [Quit: Idle timeout reached: 172800s]
bogdan[m] has joined #rust-embedded
<bogdan[m]> <thejpster[m]> "Rusty Bits dropped another..." <- This one really helped me understand async/await : https://www.youtube.com/watch?v=wni5h5vIPhU
<bogdan[m]> Excellent channel!
danielb[m] has quit [Quit: Idle timeout reached: 172800s]
<thejpster[m]> you're supposed to mark 0x400..0x40D and 0x800..0x803 as not for program code, and you are supposed to put magic data there
<thejpster[m]> who does that, I mean really
<diondokter[m]> What's mapped inbetween those?
<thejpster[m]> nothing, the flash copy of .data starts at 0x0804, and .text is after tat
<thejpster[m]> s/tat/that/
<diondokter[m]> Weird
<thejpster[m]> the gaps are just wasted. Before 0x0400 is the vector table
<thejpster[m]> also I don't think the first 4KB of RAM works until you've initialised the ECC engine
<diondokter[m]> Why complicate it so much? It's not like they need to squeeze everything in a 16-bit address space. Just take the space you need!
<thejpster[m]> I've never seen anything like it
<thejpster[m]> at least with a PIC or an AtMega you really know when you're setting the config bits
<thejpster[m]> I'm going to try and RMA it but I doubt they'll do it
jason-kairos[m] has joined #rust-embedded
<jason-kairos[m]> Has anyone ever got LLVM's debugger to work with STM32's gdb server?
<jason-kairos[m]> I've been using a recently compiled version gdb-multiarch, in text mode, and it's "fine" - but I think LLVM's debugger would crash less and have better support for displaying rust types
<whitequark[cis]1> lldb is famously... difficult to use
<whitequark[cis]1> i know it's been improved over the years but i've never really managed to do anything useful with it
<whitequark[cis]1> the support for the embedded subset of the gdb server protocol is particularly sketchy
<whitequark[cis]1> <thejpster[m]> "Can I just concatenate an ihex..." <- i have a permissive ihex parser in glasgow/libfx2
<whitequark[cis]1> > <@thejpster:matrix.org> Can I just concatenate an ihex or do I need to parse it? I used to know the various header bytes off the top of my head.
<whitequark[cis]1> * i have a permissively licensed ihex parser in glasgow/libfx2
<thejpster[m]> neat, thanks
<thejpster[m]> I could add a bit dependency tree to my Rust project, or ...
<thejpster[m]> let mut command = std::process::Command::new("curl");
<thejpster[m]> unless you're on windows of course
<thejpster[m]> let mut command = std::process::Command::new("powershell.exe");
<thejpster[m]> `command.arg("& { Invoke-RestMethod ... }")`
<thejpster[m]> s/bit/big/
FrreJacques[m] has joined #rust-embedded
<FrreJacques[m]> Hey folks, I bothered you last year with a lot of noob questiins and continued last week with that.... (full message at <https://catircservices.org/_irc/v1/media/download/AXMFT-50aJcfG3HjqFWSn-zHYCBvjsB3Kz5X6yt8XxJv_Zcjg3w0YriNTKyqhJ_fYEFxweS2sNr1fhVhpxQFe4O_8AAAAAAAAGNhdGlyY3NlcnZpY2VzLm9yZy9xZFJhYXBoTGVsa2h4SGlCdUpGUnVPcmQ>)
<FrreJacques[m]> I hope it's not too ugly. Feedback is highly welcome!
dngrs[m] has joined #rust-embedded
<dngrs[m]> if anyone besides me has a use for [fixed-exp](https://crates.io/crates/fixed-exp) functionality: I manually forked that crate (by copying from cargo cache), since the repo + author have vanished and it doesn't build anymore (the `fixed` dependency broke semver). Fixed a few bugs, too. I'm still trying to chase the author down to get everything upstreamed and will probably publish under a new name if unsuccessful. For now, git repo
duderonomy has joined #rust-embedded
<FrreJacques[m]> Is anyone here familar with the bluepill?
<FrreJacques[m]> I want to use 5V on my test setup and therefor wanted to switch all the pins to the 5V tolerant ones. But that does not seem to work. I thought pins 25 to 39 should be usable as inputs, outputs or ouput open drain.
<JamesMunns[m]> <thejpster[m]> "I could add a bit dependency..." <- Someone makes a pretty simple wrapper crate over libcurl iirc
GrantM11235[m] has joined #rust-embedded
<GrantM11235[m]> <FrreJacques[m]> "Is anyone here familar with..." <- Which pins did you try? PA15, PB3, and PB4 don't work by default because they are used for jtag
<dngrs[m]> <thejpster[m]> "unless you're on windows of..." <- strictly speaking powershell is portable 😬
<dngrs[m]> (no, I don't know anyone that actually uses it on !windows, but I *did* briefly consider it)
<FrreJacques[m]> GrantM11235[m]: Yeah, used them so I will skip them thx!
<FrreJacques[m]> It works now with 5V tolerant pins.
<FrreJacques[m]> Tried to design a small ferris. The blank lines between the characters are a bummer.
<thejpster[m]> <JamesMunns[m]> "Someone makes a pretty simple..." <- I'd think I'd rather write five lines of `command.arg(...)` than pull in a dependency, especially for an xtask.
<dngrs[m]> FrreJacques[m]: oh no Ferris is behind bars
<FrreJacques[m]> He will snap them open with his claws ;)
ello has quit [Read error: Connection reset by peer]
ello has joined #rust-embedded