Wilfried Chauveau

Results 103 comments of Wilfried Chauveau
trafficstars

> Exactly! You deactivate the clocks, so the USB is stopped, and when you restart your clock the USB resumes. It seems to me that this is the very use...

Hi, I have a hard time reading through the misformatted message but a thing that seems odd to me is the first type in: ```rust rp2040_hal::I2C ``` It should not...

I guess we could add in the examples' `memory.x` areas for `NON_STRIPPED` ram. Would you expect one or two areas?

The other regions are also memory mapped unstripped so I guess we could also expose them as such :shrug: But that seems more like a footgun than anything wet aliasing...

As far as I understand, rust does not require memory region to be initialised in a certain way (see the [nomicon](https://doc.rust-lang.org/nomicon/uninitialized.html#:~:text=All%20runtime%2Dallocated%20memory%20in,inhabit%20that%20location%20of%20memory)). I believe it's fine to just define them in...

Ah, indeed, but then we'd need a slightly more complex pre-main code to setup the other regions. Changing the pre-main loader in all code base for this usecase, I'm not...

I mean, this si currently handled by the [cortex-m-rt](https://github.com/rust-embedded/cortex-m/blob/master/cortex-m-rt/src/lib.rs#L508) crate. I guess it could be done in the [entry wrapper](https://github.com/rp-rs/rp-hal/blob/main/rp2040-hal-macros/src/lib.rs#L18-L25) where we initialize the spinlocks. Feel free to open a...

I think the difference is that the `.data` section is in the general (stripped) RAM section, while placing these ram-func in the extra space on the RP2040 enables some optimized...

This could be worked around by making the example explicitly require the feature to be enabled: https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-required-features-field The down side is that one would still need to pass it to...

We can probably do something similar to what IIRC defmt does with a symbol in linker file that's attempted to be linked if there's something missing.