19 Apr 2024 |
henrik_alser | Also remember to unlock the spinlock 31 first thing in main | 19:35:31 |
Jomer Dev | How would I do that? That may explain some issues I had sometimes flashing. But that happened even before I played with running vom RAM | 19:36:11 |
henrik_alser | Can often cause problems ime | 19:36:16 |
Jomer Dev | Spinlock? 🤔😬 | 19:36:43 |
henrik_alser | embassy_rp::pac::SIO.spinlock(31).write_value(1); | 19:37:27 |
henrik_alser | It’s in the rp2040 errata | 19:38:06 |
henrik_alser | Spinlock 31 is used for the (multicore safe) critical section impl | 19:39:40 |
Jomer Dev | Oh, you mean bootloader mode in the sense of pressing bootselect and reset | 19:40:17 |
dirbaio | 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 | But however, when using core 1 i 80% of the time need to put it in boot mode before flashing | 19:41:02 |
henrik_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 | ¯\_(ツ)_/¯ | 19:41:44 |
dirbaio | if you reset the core, sio doesn't get reset because it's not part of the core 🤷 | 19:42:04 |
dirbaio | you have to reset sio at startup | 19:42:09 |
dirbaio | oh it's unsound to reset at startup because the user might do it inside a CS? soundness, what's that? we're C devs | 19:42:36 |
dirbaio | * 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 | 19:42:46 |
Jomer Dev | henrik_alser: I added the spinlock line and used the boot mode, sadly no change | 19:43:51 |
henrik_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 | "it's just a skill issue" | 19:48:14 |
Jomer Dev | I can also tell that my program is not running (correctly) since it's additionally supposed to blink a connected led | 19:52:00 |
henrik_alser | At what does it break? I mean if you comment out everything and add one thing at a time | 19:57:00 |
henrik_alser | Does it ever work? | 19:57:30 |
Jomer Dev | So far no. If I either add the changed memory layout or add the RAM AT lines to the linker file it stops working | 20:03:05 |
Jomer Dev | Though 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 |
James Munns | I have a bootloader project for Erdnuss that runs out of RAM, but it's loaded by another bootloader | 20:05:42 |
James Munns | Didn't try to get RTT working | 20:05:55 |
James Munns | I'll push it up tomorrow if it helps :p | 20:06:16 |
Jomer Dev | Can't hurt :p | 20:08:22 |
Jomer Dev | I aslo just saw that you changed the addresses in the memory layout after I copied it. Sadly making that change also didn't help | 20:44:45 |
Jomer 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 help | 20:44:57 |