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> https://github.com/cr1901/postcard-infomem/commit/b624d1872f119a3461d3281f49ba9be9cf470671 I am uhhh, surprised this worked. I wonder if it'll work for Linux
IlPalazzo-ojiisa has quit [Remote host closed the connection]
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #rust-embedded
<re_irc> < (@yatekii:matrix.org)> Someone in the rust-embedded talk at fosdem RN and wanna meet up for food and chat after? :) cc
<re_irc> < (@yatekii:matrix.org)> I am not sure if there is "hack"/"work" rooms somewhere ...
<re_irc> < (@lulf_:matrix.org)> Lets meet down by the entrance after the presentation
<re_irc> < (@yatekii:matrix.org)> Sounds good :) All the way downstairs?
<re_irc> < (@yatekii:matrix.org)> Or at the room entrance?
<re_irc> < (@lulf_:matrix.org)> Im sitting on the second row :p but anywhere is fine really
<re_irc> < (@yatekii:matrix.org)> ok lets meet just outside the room door :) left side?
<re_irc> < (@jannic:matrix.org)> Did you find some place to go? I'm in ud2.120 right now.
<re_irc> < (@tiwalun:matrix.org)> : We're in a hidden room in the J building now.
<re_irc> < (@tiwalun:matrix.org)> It's J1.1.06 I think
<re_irc> < (@omar_u8:matrix.org)> Im experimenting with svd2rust and managed to generate all the files I need. However, Im running into an issue where the "critical-section" feature is not being recognized by "lib.rs" so that I can use "take()". I have the "ctirical-section" added as a dependency on the cargo.toml
IlPalazzo-ojiisa has joined #rust-embedded
<re_irc> < (@omar_u8:matrix.org)> * in
<re_irc> < (@9names:matrix.org)> You're probably missing a critical-section impl, you need to pull that in from cortex-m. Check the svd2rust and critical-section docs.
<re_irc> < (@omar_u8:matrix.org)> I'll take another look, thing is it does the same for the "rt" feature.
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
IlPalazzo-ojiisa has quit [Remote host closed the connection]
limpkin has quit [Remote host closed the connection]
limpkin has joined #rust-embedded
IlPalazzo-ojiisa has joined #rust-embedded
<re_irc> <latreche_pi> has anyone here worked as system programming developer or embedded systems engineer what are the necessary skills beside low level programming languages and algorithms to get a job what kind of personal project you advice me to work on, and if you worked as embedded systems engineer before would you please describe what kind of projects or applications you worked on professionally
<re_irc> < (@k900:0upti.me)> Is this for like a school project
<re_irc> < (@k900:0upti.me)> Because this is a lot of questions l
<re_irc> < (@k900:0upti.me)> * lol
<re_irc> <latreche_pi> no it's not for a school project
<re_irc> < (@k900:0upti.me)> To try to give you a more serious answer, there's no universal list of skills you need to get hired
<re_irc> < (@k900:0upti.me)> Especially for junior level jobs
<re_irc> < (@k900:0upti.me)> Especially with embedded stuff there will always be a lot of domain knowledge that you probably won't learn outside of a specific project
<re_irc> < (@omar_u8:matrix.org)> : I've been trying a few things since to no avail. I feel Im missing something trivial, but I guess my eyes are tired from looking at the screen all day :) I tried different things according to documentation but ended up with something like this:
<re_irc> [dependencies]
<re_irc> critical-section = {version = "1.1.1", optional = true}
<re_irc> cortex-m = {version = "0.7.6"}
<re_irc> < (@omar_u8:matrix.org)> I also tried activating "features = "critical-section-single-core"" for the cortex-m but still the same result.
<re_irc> < (@azzentys:matrix.org)> latreche_pi: I'd say have your basic electronics good. It goes a long way. Being able to dive deeper and chase a bug/phenomenon helps too.
<re_irc> < (@omar_u8:matrix.org)> The "take" code remains inactive
<re_irc> < (@azzentys:matrix.org)> I'd say have your basic electronics good. It goes a long way. Being able to dive deeper and chase a bug/phenomenon helps too - it's not a "skill", it's being patient. Gets easier as you get more experience.
<re_irc> Edit: added some more clarification
<re_irc> < (@datdenkikniet:matrix.org)> "stm32-eth"'s "rtic-timestamp" example underway on an H7 👀
<re_irc> < (@datdenkikniet:matrix.org)> * "stm32-eth" (https://github.com/stm32-rs/stm32-eth/pull/70)'s
<re_irc> < (@datdenkikniet:matrix.org)> +(timestamps in TX only for now, though. Context descriptors are going to bite me in the butt!)
<re_irc> < (@datdenkikniet:matrix.org)> * on
<re_irc> < (@datdenkikniet:matrix.org)> * H723 👀 (timestamps on TX only for now, though. Context descriptors are going to bite me in the butt!)
<re_irc> <thejpster> My code has stopped building on my mac. Compiling a thumbv6m-none-eabi binary now says:
<re_irc> <thejpster> +note: rust-lld: error: unable to find library -lc
<re_irc> <thejpster> I can build cortex-m-quickstart OK.
<re_irc> < (@datdenkikniet:matrix.org)> I think "-lc" is "libc". I'm not sure, but embedded projects should probably not need to link against that. Not sure why it would start trying to do that, or what would cause libc to be unfindable
<re_irc> < (@datdenkikniet:matrix.org)> +for linking against
crabbedhaloablut has quit [Ping timeout: 255 seconds]
<re_irc> <thejpster> I can't build my last release either, which definitely did build on this machine. Nor can I build with 1.66, so it's not a compiler upgrade.
<re_irc> < (@datdenkikniet:matrix.org)> I suppose you might be able to find what is trying to link against it by looking for the "libc" crate in "cargo tree"?
<re_irc> <thejpster> It builds fine on github actions too.
crabbedhaloablut has joined #rust-embedded
starblue has quit [Ping timeout: 252 seconds]
<re_irc> <dngrs (spookyvision@{github,cohost})> thejpster: did you maybe do a software update and need to re-auth the Apple compiler toolchain?
<re_irc> <dngrs (spookyvision@{github,cohost})> it used to be "sudo xcode-select -install" I think
<re_irc> <dngrs (spookyvision@{github,cohost})> * --install"
<re_irc> <thejpster> oh no
<re_irc> <thejpster> #[cfg(target_os = "macos")]
<re_irc> println!("cargo:rustc-link-lib=c");
<re_irc> <thejpster> I put in a hack in the build.rs file so it would work when I was building the native dylib version to load the OS in the SDL2 "Desktop" BIOS.
<re_irc> <dngrs (spookyvision@{github,cohost})> whoopstie
<re_irc> < (@datdenkikniet:matrix.org)> xD
<re_irc> <thejpster> And the _target_ of the build.rs is aarch64-apple-darwin
<re_irc> <thejpster> That's the wrong test to apply. I want the _target_ of the _crate I am about to build_ not of _build.rs_
<re_irc> <dngrs (spookyvision@{github,cohost})> sometimes the cargo infrastructure seems a little underpowered
<re_irc> <dngrs (spookyvision@{github,cohost})> that said, can't you put target-specific sections in ".cargo/config.toml"?
<re_irc> <thejpster> Yeah, I guess I could put it in there instead.
<re_irc> <thejpster> I'll just replace that code with:
<re_irc> if let Ok("macos") = env::var("CARGO_CFG_TARGET_OS").as_deref() {
<re_irc> }
<re_irc> println!("cargo:rustc-link-lib=c");
emerent has quit [Ping timeout: 256 seconds]
emerent has joined #rust-embedded
starblue has joined #rust-embedded
<re_irc> <thejpster> paging anyone in rust-embedded-community for a high-five on https://github.com/rust-embedded-community/pc-keyboard/pull/27
<re_irc> <thejpster> (we should set up bors so it can pick people at random)
<re_irc> < (@ryan-summers:matrix.org)> I wouldn't be opposed to that, but review submitted :)
<re_irc> < (@ryan-summers:matrix.org)> Although I don't think I have approval/merge permissions on that repo
starblue has quit [Ping timeout: 252 seconds]
starblue has joined #rust-embedded
<re_irc> <thejpster> Thanks! I realise I need the work laptop to push the change. A job for another day.
<re_irc> < (@9names:matrix.org)> : do you activate those features anywhere?
<re_irc> it's very hard to help when we only get tiny snippets of context to work with. could you push this project to git so we can look at it?