!BHcierreUuwCMxVqOf:matrix.org

Rust Embedded

2736 Members
Welcome to the Rust Embedded chat room! | Discuss, coordinate, help: https://github.com/rust-embedded/wg | Code of conduct: https://www.rust-lang.org/conduct.html | Bridge to our IRC channel #rust-embedded on libera.chat | Public logs: https://libera.irclog.whitequark.org/rust-embedded | Old public logs: https://freenode.logbot.info/rust-embedded/ | Other embedded Rust rooms: https://github.com/rust-embedded/awesome-embedded-rust#community-chat-rooms | WG meeting in this room every Tuesday 8PM Berlin time247 Servers

Load older messages


SenderMessageTime
19 Jun 2024
@jamesmunns:beeper.comJames Munns
In reply to @po8:matrix.org

I have not. There are so many Rust resources now I can't keep easy track of 'em all.

Thanks huge for this link!

We should get that on the awesome list if it isn't already
09:20:52
@jordens:matrix.orgRobert JördensThe UB definition tends to refer to data only, not to instructions. So I have no idea. What the assumptions from the LLVM side of things.09:20:55
@jordens:matrix.orgRobert Jördens * The UB definition tends to refer to data only, not to instructions. So I have no idea what the assumptions from the LLVM side of things are.09:21:08
@po8:matrix.orgbartmassey
In reply to @thejpster:matrix.org

Rust does not quite support inline assembly yet.

Maybe they'll take patches for the book.

Yes. Yes we will. 😀
09:21:17
@jamesmunns:beeper.comJames Munns
In reply to @jordens:matrix.org
The UB definition tends to refer to data only, not to instructions. So I have no idea what the assumptions from the LLVM side of things are.
hmmm, yeah, also might be worth pinging Amanieu d'Antras
09:23:33
@thejpster:matrix.orgthejpster bartmassey: ah, I meant maybe Open Titan will take patches. So we can fix the part that says "inline assembly isn't stable yet". 09:28:04
@po8:matrix.orgbartmassey
In reply to @thejpster:matrix.org
bartmassey: ah, I meant maybe Open Titan will take patches. So we can fix the part that says "inline assembly isn't stable yet".
Ah I thought I remembered something like that left in our book. Knew I'd seen it somewhere
09:29:44
@jamesmunns:beeper.comJames Munns

Robert Jördens my current thoughts on this: https://gist.github.com/jamesmunns/4e54d64737b67523cc193578584752c6

Happy to take comments or suggestions. I'd probably say singleton!() could work anywhere StaticCell does

09:32:08
@vollbrecht:matrix.orgvollbrecht
In reply to @jamesmunns:beeper.com

Robert Jördens my current thoughts on this: https://gist.github.com/jamesmunns/4e54d64737b67523cc193578584752c6

Happy to take comments or suggestions. I'd probably say singleton!() could work anywhere StaticCell does

"This is weird, sorta like oncecell but only once per clean boot? Dunno." sounds like waking up from deep-sleep and accessing rtc memory again in esp ;D
09:36:32
@vollbrecht:matrix.orgvollbrecht
In reply to @jamesmunns:beeper.com

Robert Jördens my current thoughts on this: https://gist.github.com/jamesmunns/4e54d64737b67523cc193578584752c6

Happy to take comments or suggestions. I'd probably say singleton!() could work anywhere StaticCell does

* "This is weird, sorta like oncecell but only once per clean boot? Dunno." sounds like waking up from deep-sleep and accessing rtc memory again on esp's ;D
09:38:15
@jamesmunns:beeper.comJames Munnsyeah, that's a fair point!09:38:56
@jamesmunns:beeper.comJames Munns
In reply to @vollbrecht:matrix.org
"This is weird, sorta like oncecell but only once per clean boot? Dunno." sounds like waking up from deep-sleep and accessing rtc memory again on esp's ;D
Added https://gist.github.com/jamesmunns/4e54d64737b67523cc193578584752c6?permalink_comment_id=5093688#gistcomment-5093688, thanks!
09:40:45
@jamesmunns:beeper.comJames MunnsI should probably add "example use cases" for each line item, like "this is when you are doing RTC backed up mem", or "this is when you want uninit buffers for DMA" etc.09:42:46
@vollbrecht:matrix.orgvollbrechtyeah good idea, even if that example doesn't cover the complete usability of an item in the list. 09:43:51
@libera_cr1901_:catircservices.orgcr1901_ joined the room.10:12:43
@libera_cr1901:catircservices.org@libera_cr1901:catircservices.org left the room.10:16:41
@jordens:matrix.orgRobert Jördens
In reply to @jamesmunns:beeper.com

Robert Jördens my current thoughts on this: https://gist.github.com/jamesmunns/4e54d64737b67523cc193578584752c6

Happy to take comments or suggestions. I'd probably say singleton!() could work anywhere StaticCell does

Nice. The "persistent = yes" combos are all either not possible or weird/extra weird...
10:19:54
@jamesmunns:beeper.comJames Munnsyeah, "reboot persistent" is definitely weird, tho a major use case I want to use grounded for (I already do, but inside of the existing uninit types, I need to put a safer API on it)10:21:34
@libera_IlPalazzo-ojiis1:catircservices.orgIlPalazzo-ojiis1 joined the room.10:45:15
@diondokter:matrix.orgdiondokter Is anybody aware of a Rust crate built on top of something like nusb that can talk the PICOTOOL protocol over USB to an RPi Pico? 12:36:48
@diondokter:matrix.orgdiondokterimage.png
Download image.png
13:30:57
@diondokter:matrix.orgdiondokterLol, pi pico docs13:31:00
@amanieu:matrix.orgAmanieu d'Antras
In reply to @jamesmunns:beeper.com
hmmm, yeah, also might be worth pinging Amanieu d'Antras
What is the specific question?
13:37:19
@jamesmunns:beeper.comJames Munns
In reply to @amanieu:matrix.org
What is the specific question?
I think it was roughly "is fence() suitable for soundness around ICTM/Instruction cache initialization/management, or is there something else (portable) we should be doing? Or does it always require platform specific asm barriers? Maybe Robert Jördens can clarify better.
13:52:37
@badyjoke:matrix.orgbadyjokeHello, what do you think of RTIC ? In the case I don't have a supported hal (or only a pac) for embassy is it a good choice ?14:04:32
@jordens:matrix.orgRobert JördensIs the mere presence of uninitialized/invalid instruction memory a problem? Is writing instructions into that memory (copy from flash into MaybeUninit ITCM, proper DMB/DSB/ISB/fence/flushes) and then later executing them OK?14:07:52
@jamesmunns:beeper.comJames Munns
In reply to @badyjoke:matrix.org
Hello, what do you think of RTIC ? In the case I don't have a supported hal (or only a pac) for embassy is it a good choice ?
RTIC is definitely well known here, but you could use either embassy or RTIC with your own custom HAL. Neither has to be a "fallback" choice :)
14:08:45
@diondokter:matrix.orgdiondokterYeah, they each have their strengths14:09:21
@jordens:matrix.orgRobert Jördens
In reply to @jamesmunns:beeper.com
RTIC is definitely well known here, but you could use either embassy or RTIC with your own custom HAL. Neither has to be a "fallback" choice :)
And you can use components of embassy on RTIC as well. They aren't even mutually exclusive.
14:11:50
@amanieu:matrix.orgAmanieu d'Antras
In reply to @jordens:matrix.org
Is the mere presence of uninitialized/invalid instruction memory a problem? Is writing instructions into that memory (copy from flash into MaybeUninit ITCM, proper DMB/DSB/ISB/fence/flushes) and then later executing them OK?
It should be fine. Fundamentally that's not much different than calling dlopen in a Linux process.
14:35:07

There are no newer messages yet.


Back to Room ListRoom Version: 5