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
crabbedhaloablut has quit [*.net *.split]
waveguide[m] has quit [*.net *.split]
Lumpio- has quit [*.net *.split]
jr-oss_ has quit [*.net *.split]
hifi has quit [*.net *.split]
notgull has quit [*.net *.split]
kenny has quit [*.net *.split]
inara has quit [*.net *.split]
pbsds has quit [*.net *.split]
crabbedhaloablut has joined #rust-embedded
Lumpio- has joined #rust-embedded
kenny has joined #rust-embedded
waveguide[m] has joined #rust-embedded
notgull has joined #rust-embedded
jr-oss has joined #rust-embedded
hifi has joined #rust-embedded
inara has joined #rust-embedded
IlPalazzo-ojiisa has quit [Quit: Leaving.]
crabbedhaloablut has quit []
neceve has quit [Ping timeout: 240 seconds]
starblue has quit [Ping timeout: 255 seconds]
starblue has joined #rust-embedded
pbsds has joined #rust-embedded
notgull has quit [Ping timeout: 240 seconds]
notgull has joined #rust-embedded
emerent has quit [Ping timeout: 240 seconds]
emerent_ has joined #rust-embedded
emerent_ is now known as emerent
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
neceve has joined #rust-embedded
crabbedhaloablut has joined #rust-embedded
Guest7221 has joined #rust-embedded
Guest7221 has quit [Changing host]
Guest7221 has joined #rust-embedded
<JamesMunns[m]> Before I open an issue, is this a bug?... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/WtESAHxNGOJeMcOHjZjlnVbB>)
<JamesMunns[m]> so __RESET_VECTOR is at offset 4 (correct!), but __reset_vector is at offset 8 (not correct!)
<JamesMunns[m]> the layout itself is right, I think the __reset_vector symbol is just wrong for some reason.
<JamesMunns[m]> I tried adding an NMI (the vector table goes SP, Reset, NMI), and it was in the right place.
<JamesMunns[m]> There's even an assert for the (IMO wrong) value 🙃... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/VCAPYUGpOodToKJEvmaBVCiP>)
<JamesMunns[m]> git blame says it's been like that since Aug 7th, 2018 lol
<dirbaio[m]> lol
<dirbaio[m]> is __reset_vector actually used from any core?
<dirbaio[m]> * is __reset_vector actually used from any code?
<dirbaio[m]> perhaps it's just a bad name
<JamesMunns[m]> nope, it's just that assert AFAICT
<JamesMunns[m]> and that assert is really only checking that the vector table exists
<JamesMunns[m]> the __ symbols are considered private, and the lowercase ones aren't even discussed: https://docs.rs/cortex-m-rt/latest/cortex_m_rt/#symbols-objdump-nm
<dirbaio[m]> perhaps that's why the confusing name? "I need a symbol to check the reset vector exists, so I'll name it __reset_vector"
<JamesMunns[m]> yeah, I don't think this is likely to cause any real problems, it's mostly confusing IMO
<dirbaio[m]> perhaps rename it __exceptions
<JamesMunns[m]> esp since we have both __RESET_VECTOR and __reset_vector and they have different values lol
<JamesMunns[m]> dirbaio[m]: I'll add that as a comment
<dirbaio[m]> or perhaps remove it and make the assert ASSERT(__EXCEPTIONS == ADDR(.vector_table) + 0x8, "
<JamesMunns[m]> or move it to above the KEEP, so it actually points there
<dirbaio[m]> but then you're not checking that there's a reset vector with the assert
<JamesMunns[m]> Yeah, probably good to discuss on Tuesday in the meeting and pick something, I think there are lots of "right" options, the goal is to just make it not confusing
<JamesMunns[m]> if it hasn't bothered anyone in 5 years tho, I doubt it's urgent lol
AdamHott[m] has joined #rust-embedded
<AdamHott[m]> hey all, just wanted to introduce myself. I'm Adam Hott. I've been programming web and cloud (AWS) for quite some time. Started studying Rust about 6 months ago and really love it. I'm down the rabbit hole now and decided I want to focus on embedded systems. I'm not sure I'll have much to contribute at this point, I'd like to help if I can.
<AdamHott[m]> If there are any small tasks that could be helpful, or research needed, I'd be happy to assist.
<AdamHott[m]> You can learn more about me here: https://www.adamhott.io/
IlPalazzo-ojiisa has joined #rust-embedded
fu5ha[m] has quit [Quit: Idle timeout reached: 172800s]
cr1901_ has quit [Quit: Leaving]
cr1901 has joined #rust-embedded
<adamgreig[m]> <JamesMunns[m]> "Opened https://github.com/rust-..."; <- lol, talk about a scary issue title
jasperw has quit [Quit: Byeeeeeeeeeeeeeeee!]
jasperw has joined #rust-embedded
firefrommoonligh has joined #rust-embedded
<firefrommoonligh> Hey - oddball question. I recently reinstalled my PC; clean Windows install. I can no longer compile CMSIS-DSP using bindgen; I receive this error:... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/ffpOsZKqhosLlSncjOuMOxcz>)
<firefrommoonligh> In general, for me, FFI and linker errors are at the extreme ends of difficulty and inscrutability
<firefrommoonligh> s/ends of/-/, s/and inscrutability/level/
<thejpster[m]> I would go to where you installed arm gcc and grep for those functions
<firefrommoonligh> Thank you. I don't think I did that, to my knowledge
<firefrommoonligh> My understanding is, on Linux, the install is apt install build-essential, and on Windows, it's install VisualStudioCommunity 2022, and enable Windows11SDK + v143 C/C++ build tools. And maybe LLVM, with the LIBCLANG_PATH environment variable pointing to its bin folder
<firefrommoonligh> * My understanding is, on Linux, the install is apt install build-essential, and on Windows, it's install VisualStudioCommunity 2022, and enable Windows11SDK + v143 C/C++ build tools. And maybe download/install LLVM, with the LIBCLANG_PATH environment variable pointing to its bin folder
<firefrommoonligh> Ok, solved. (Coincidence?) after comparing my tablet where it compiles to Desktop: LLVM needs to be version=15. 17 doesn't work. I don't know about 16
<firefrommoonligh> Hey so, moment to contrast the biggest thing I love about Rust (When pure rust, I guess). Great user experience. cargo build just works. C/C++/linker errors always seem to be long and inscrutable.
<firefrommoonligh> Like, why can't it just say "Incompatible LLVM version installed. Please downgrade to LLVM v15.x"
<firefrommoonligh> Adding an error about sqrt is orthogonal to the problem
<firefrommoonligh> s/Adding/Displaying/, s//`/, s//`/
<firefrommoonligh> And don't get me started in blocks and blocks of text followed by LINK ERROR 69
sigmaris has quit [Ping timeout: 255 seconds]
sigmaris has joined #rust-embedded
PhilMarkgraf[m] has quit [Quit: Idle timeout reached: 172800s]
Guest7221 has left #rust-embedded [Error from remote client]
Guest7221 has joined #rust-embedded
jamwaffles[m] has quit [Quit: Idle timeout reached: 172800s]
HumanG33k has quit [Ping timeout: 240 seconds]
kenny has quit [Ping timeout: 240 seconds]
sourcebox[m] has quit [Quit: Idle timeout reached: 172800s]
kenny has joined #rust-embedded
barafael[m] has quit [Quit: Idle timeout reached: 172800s]
neceve has quit [Ping timeout: 240 seconds]
diondokter[m] has quit [Quit: Idle timeout reached: 172800s]
JonatanMagnusson has joined #rust-embedded
<JonatanMagnusson> Hi! I wonder if anyone is familiar with STM32F030 using the stm32f0xx-hal crate? I have a device with SPI, but the device is MOSI only - there's no MISO pin. There was a PR that added support for `NoMiso`, as there are in some other HAL's, but it was rejected.
<JonatanMagnusson> Any idea how to initialize SPI with MOSI only with this HAL?