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
sevostyanov97[m] has quit [Quit: Idle timeout reached: 172800s]
GrantM11235[m] has quit [Quit: Idle timeout reached: 172800s]
crabbedhaloablut has joined #rust-embedded
vrakaslabs[m] has quit [Quit: Idle timeout reached: 172800s]
nex8192 has left #rust-embedded [Error from remote client]
nex8192 has joined #rust-embedded
emerent has quit [Ping timeout: 245 seconds]
emerent has joined #rust-embedded
nex8192 has left #rust-embedded [Error from remote client]
IlPalazzo-ojiisa has joined #rust-embedded
corecode[m] has joined #rust-embedded
<corecode[m]> is there a way to set a cargo config for examples only? i'd like to set the target to embedded for examples, but leave dev target at host for unit testing
marmrt[m] has quit [Quit: Idle timeout reached: 172800s]
nex8192 has joined #rust-embedded
Emre[m] has quit [Quit: Idle timeout reached: 172800s]
tr09[m] has joined #rust-embedded
<tr09[m]> <whitequark[cis]> "that will show all of the TCP..." <- It’s quite embarrassing but I was not launching the LF clock in init, so timestamp value was always 0.
<tr09[m]> Working as expected now.
cr1901__ has joined #rust-embedded
cr1901_ has quit [Ping timeout: 246 seconds]
cr1901_ has joined #rust-embedded
cr1901__ has quit [Ping timeout: 244 seconds]
kericsson has joined #rust-embedded
BenoitLIETAER[m] has joined #rust-embedded
<BenoitLIETAER[m]> Hello, having a rustup toolchain version issue again
<BenoitLIETAER[m]> cargo-embed requires 1.65.0 but for some reasons, it looks the thumbv7em-none-eabihfis stuck on 1.63.0 ?
<BenoitLIETAER[m]> not sure how to override and if/how I should use nightly here ?
<BenoitLIETAER[m]> (this time I don't mix OS packages with a clean rustup install only, I swear 😅)
IlPalazzo-ojiisa has quit [Quit: Leaving.]
marmrt[m] has joined #rust-embedded
<marmrt[m]> <BenoitLIETAER[m]> "cargo-embed requires 1.65.0..." <- It is the `Cargo.toml` file of the pac
Noah[m] has joined #rust-embedded
<Noah[m]> <BenoitLIETAER[m]> "cargo-embed requires 1.65.0..." <- hmm should work just fine on the newest release :)
<BenoitLIETAER[m]> marmrt[m]: AH ! Is that safe to increment this forced version ? 🤔
<BenoitLIETAER[m]> Noah[m]: newest release of `rustup` or the eabihf toolchain or the git repo ? :)
<marmrt[m]> It should be fine. I have no idea why the compiler version would be locked for the PACs
<Noah[m]> BenoitLIETAER[m]: the eabihf toolchain should be available on the 1.72 rustc releas
<Noah[m]> s/releas/release/
<Noah[m]> BenoitLIETAER[m]: yep totally safe I think :)
<Noah[m]> marmrt[m]: yeah, sounds odd to me. maybe someone did not know better?
<Noah[m]> I have never seen compiler lock before other than nightly requirement
<marmrt[m]> I think those Cargo.toml files are all auto generated, so it feels like a detail that just got overlooked rather than an active choice
wassasin[m] has quit [Quit: Idle timeout reached: 172800s]
lsc0x80[m] has quit [Quit: Idle timeout reached: 172800s]
K900 has quit [Quit: Idle timeout reached: 172800s]
cr1901__ has joined #rust-embedded
<jessebraham[m]> The `rust-toolchain` field is the MSRV, it's not locking to a particular compiler version
<jessebraham[m]> s/toolchain/version/
<jessebraham[m]> Unless I've completely misunderstood this conversation and you're talking about something else haha
cr1901_ has quit [Ping timeout: 245 seconds]
<BenoitLIETAER[m]> Actually, just pulling the generic eabihf toolchain triggers the 1.63.0 :/
<BenoitLIETAER[m]> Why ?
<BenoitLIETAER[m]> `$ rustup target add thumbv7em-none-eabihf`
<marmrt[m]> is it rust-toolchain.toml in the root directory?
mameluc[m] has quit [Quit: Idle timeout reached: 172800s]
eZioPan[m] has joined #rust-embedded
<eZioPan[m]> wow, they got update the rust version
<eZioPan[m]> * they got to update the
kericsson has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<eZioPan[m]> hi, is there some way to access a register with u8 size raw pointer?... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/KGcniRXVXnVholrIEqdcKtNk>)
<eZioPan[m]> I guess I need to avoid write to lowest 8 bits of CCR reigster, before I ready to start a transfer.
<eZioPan[m]> * hi, is there some way to access a register with u8 size raw pointer?... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/NZUIQLnqyUkzUClMzTqrpTGQ>)
<adamgreig[m]> are you sure that register supports small writes? maybe you need to use modify() instead of write() to keep INSTRUCTION at the same value
<adamgreig[m]> you probably want more like unsafe { (qspi.ccr.as_ptr() as *mut u8).offset(1).write_volatile(1) };, I think you're currently writing a whole word away from what you want, but you may well not be allowed to do a single byte write, that's quite rare for mmio registers
<eZioPan[m]> uhm, I try the code you provide, but it still jump to HardFault
<eZioPan[m]> but the RM seems ask user not to write to INSTRUCTION if they don't want to trigger a transfer
<eZioPan[m]> I use .modify() originally, but it also trigger a transfer
<eZioPan[m]> or, the RM tells user should always set QUADSPI_CCR all in once?
<eZioPan[m]> can confirm write all in once do well
cr1901__ is now known as cr1901
nex8192 has left #rust-embedded [Error from remote client]
IlPalazzo-ojiisa has joined #rust-embedded
meptl[m] has joined #rust-embedded
<meptl[m]> <meptl[m]> "I'm having issues creating a USB..." <- This was because I misconfigured the clock: I had 84.kHz() instead of 84.MHz() for sysclk.
<burrbull[m]> <eZioPan[m]> "hi, is there some way to..." <- > <@ezio_pan:matrix.org> hi, is there some way to access a register with u8 size raw pointer?... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/dtRGhqCdLcVjEEutnNIUJUNQ>)
adinack[m] has quit [Quit: Idle timeout reached: 172800s]
WSalmon has quit [Read error: Connection reset by peer]
kericsson has joined #rust-embedded
WSalmon has joined #rust-embedded
<thejpster[m]> There’s a discussion about pushing unmaintained targets down to Tier 3. This would mean no more support in rustup for fetching prebuilt libcore. This was prompted by codegen bugs in sparc64 Linux.
<thejpster[m]> https://rust-lang.zulipchat.com/#narrow/stream/131828-t-compiler/topic/Demote.20target.20.60sparc64-unknown-linux-gnu.60.20Tier.202.20-.3E.203
<thejpster[m]> If you want to maintain a Tier 2 target and keep it there, please do reach out on zulip.
<thejpster[m]> I note that all of the Cortex-M targets are currently unmaintained.
crabbedhaloablut has quit []
<adamgreig[m]> Perhaps the wg cortex-m team should be the maintainer
<eZioPan[m]> <burrbull[m]> "> <@ezio_pan:matrix.org> hi..." <- I’ve read the RM again, and it seems not possible to write CCR in u8 size…
<corecode[m]> does anybody here use jlinkgdbserver and itm logging? i just don't see any output (using itm-logger.rs)
kericsson has quit [Quit: Textual IRC Client: www.textualapp.com]
M9names[m]1 has quit [Quit: Idle timeout reached: 172800s]
starblue has quit [Quit: WeeChat 3.8]
nex8192 has joined #rust-embedded
likewise[m] has quit [Quit: Idle timeout reached: 172800s]
<Noah[m]> Maybe I should do another survey what is lacking that people still use segger stuff ^^
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
Jonas[m]1 has joined #rust-embedded
<Jonas[m]1> I see that there is a Rust HAL for NRF 52840 in the nrf-rs repo. Anyone here that has some experience working with this HAL? I have not used any NRF board yet, only RP Pico 2040. NRF 52840 has interesting radio features, but as what I can see only a part of it is in the HAL yet, not so much of the Bluetooth? as of what I can see. Does the hardware have good documentation of the Bluetooth part, so that it is possible to use with Rust
<Jonas[m]1> or are there any hidden/difficult part that requires C libraries or BLOBs?
adinack[m] has joined #rust-embedded
<adinack[m]> check out embassy:
<adinack[m]> they have their own HAL and BLE support via nrf-softdevice
<IlPalazzo-ojiisa> Could anyone offer any quick help about how to power down an Arduino Nano using Rust?
ilpalazzo-ojiis4 has joined #rust-embedded
<ilpalazzo-ojiis4> (Just did it using unsafe, but I'd prefer something more readable if anyone has anything)
IlPalazzo-ojiisa has quit [Remote host closed the connection]
duderonomy has joined #rust-embedded