!YoLPkieCYHGzdjUhOK:matrix.org

Embassy

1124 Members
Welcome to the Embassy matrix channel! -- Next-gen async embedded Rust framework -- https://embassy.dev -- https://github.com/embassy-rs/embassy89 Servers

Load older messages


SenderMessageTime
19 Apr 2024
@henrik_alser:matrix.orghenrik_alserAlso remember to unlock the spinlock 31 first thing in main19:35:31
@jomer_dev:matrix.orgJomer DevHow would I do that? That may explain some issues I had sometimes flashing. But that happened even before I played with running vom RAM19:36:11
@henrik_alser:matrix.orghenrik_alserCan often cause problems ime19:36:16
@jomer_dev:matrix.orgJomer DevSpinlock? 🤔😬19:36:43
@henrik_alser:matrix.orghenrik_alser embassy_rp::pac::SIO.spinlock(31).write_value(1); 19:37:27
@henrik_alser:matrix.orghenrik_alserIt’s in the rp2040 errata19:38:06
@henrik_alser:matrix.orghenrik_alserSpinlock 31 is used for the (multicore safe) critical section impl19:39:40
@jomer_dev:matrix.orgJomer DevOh, you mean bootloader mode in the sense of pressing bootselect and reset19:40:17
@dirbaio:matrix.orgdirbaio
In reply to @henrik_alser:matrix.org
It’s in the rp2040 errata
it's not ACTUALLY listed in the errata, because raspberry pi considers it "working as intended" 🫠
19:40:41
@henrik_alser:matrix.orghenrik_alserBut however, when using core 1 i 80% of the time need to put it in boot mode before flashing19:41:02
@henrik_alser:matrix.orghenrik_alser
In reply to @dirbaio:matrix.org
it's not ACTUALLY listed in the errata, because raspberry pi considers it "working as intended" 🫠
Ahh yes i remember now 🫣
19:41:36
@dirbaio:matrix.orgdirbaio¯\_(ツ)_/¯19:41:44
@dirbaio:matrix.orgdirbaioif you reset the core, sio doesn't get reset because it's not part of the core 🤷19:42:04
@dirbaio:matrix.orgdirbaioyou have to reset sio at startup19:42:09
@dirbaio:matrix.orgdirbaiooh it's unsound to reset at startup because the user might do it inside a CS? soundness, what's that? we're C devs19:42:36
@dirbaio:matrix.orgdirbaio * oh it's unsound to reset sio at startup because the user might do it inside a CS? soundness, what's that? we're C devs19:42:46
@jomer_dev:matrix.orgJomer Dev henrik_alser: I added the spinlock line and used the boot mode, sadly no change 19:43:51
@henrik_alser:matrix.orghenrik_alser
In reply to @dirbaio:matrix.org
oh it's unsound to reset sio at startup because the user might do it inside a CS? soundness, what's that? we're C devs
”…and btw, Rust is only solving problems that don’t exist”
19:47:36
@dirbaio:matrix.orgdirbaio"it's just a skill issue"19:48:14
@jomer_dev:matrix.orgJomer DevI can also tell that my program is not running (correctly) since it's additionally supposed to blink a connected led19:52:00
@henrik_alser:matrix.orghenrik_alserAt what does it break? I mean if you comment out everything and add one thing at a time19:57:00
@henrik_alser:matrix.orghenrik_alserDoes it ever work?19:57:30
@jomer_dev:matrix.orgJomer DevSo far no. If I either add the changed memory layout or add the RAM AT lines to the linker file it stops working20:03:05
@jomer_dev:matrix.orgJomer DevThough with slightly different symptoms. With just the memory layout changed rtt fails to connect, with just the RAM AT changes I don't get that error. In both cases the led isn' blinking so the processor is not running my program (correctly)20:04:34
@jamesmunns:beeper.comJames MunnsI have a bootloader project for Erdnuss that runs out of RAM, but it's loaded by another bootloader20:05:42
@jamesmunns:beeper.comJames MunnsDidn't try to get RTT working20:05:55
@jamesmunns:beeper.comJames MunnsI'll push it up tomorrow if it helps :p20:06:16
@jomer_dev:matrix.orgJomer DevCan't hurt :p20:08:22
@jomer_dev:matrix.orgJomer DevI aslo just saw that you changed the addresses in the memory layout after I copied it. Sadly making that change also didn't help20:44:45
@jomer_dev:matrix.orgJomer Dev* I also just saw that you changed the addresses in the memory layout after I copied it. Sadly making that change also didn't help20:44:57

There are no newer messages yet.


Back to Room ListRoom Version: 6