2 May 2022 |
dirbaio | RAM is mirrored, both addrs access the RAM | 13:42:55 |
dirbaio | but I guess since the slave is the same, both addrs trigger the errata :( | 13:43:07 |
James Munns | I don't need to reserve RAM regions for ICODE, right? | 13:58:51 |
dirbaio | as long as you don't use it, it's ok not to | 13:59:32 |
James Munns | I do | 13:59:38 |
James Munns | Or at least, I turn on ICACHE | 13:59:44 |
James Munns | // Enable instruction caches for MAXIMUM SPEED
device.NVMC.icachecnf.write(|w| w.cacheen().set_bit());
cortex_m::asm::isb();
| 14:00:21 |
dirbaio | but you don't run code out of RAM at 0x0800_0000 right? | 14:00:30 |
James Munns | nope | 14:00:36 |
dirbaio | then it's OK | 14:00:39 |
James Munns | word | 14:00:42 |
James Munns | well | 14:00:49 |
James Munns | I might | 14:00:54 |
James Munns | but that's reserved (for the application) | 14:01:03 |
James Munns | ohhh | 14:01:26 |
James Munns | Should I be executing from a different location? | 14:01:56 |
James Munns | I load code to 0x20020000, then run from there, but I don't set the execution to 0x08020000 | 14:02:45 |
dirbaio | you can execute code from ram at 0x2000_0000 just fine. I think the only advantage for 0x0800_0000 is it's faster, because the core can do CODE and DATA fetches at the same time...?? vs if you use 0x2000_0000 for code then you force everything through DATA | 14:03:07 |
dirbaio | * you can execute code from ram at 0x2000_0000 just fine. I think the only advantage for 0x0800_0000 is it's faster, because the core can do DCODE and ICODE fetches at the same time...?? vs if you use 0x2000_0000 for code then you force everything through DCODE | 14:03:50 |
James Munns | huh, interesting | 14:03:51 |
James Munns | I'm not doing enough "perf"y things in "userspace" yet, but I might try that later. | 14:04:20 |
James Munns | so icache really only affects the kernel, which is executing out of on-chip flash | 14:04:36 |
dirbaio | yep | 14:05:21 |
James Munns | Just a fun PSA, for all you nrf folks out there :D | 15:01:06 |
4 May 2022 |
| henrik_alser changed their profile picture. | 18:57:58 |
6 May 2022 |
| Ai Maiga (dajamante) changed their profile picture. | 14:35:36 |
8 May 2022 |
| osvald joined the room. | 05:33:19 |
9 May 2022 |
| dkhayes117 joined the room. | 16:40:19 |
16 May 2022 |
| @idahotokens:matrix.org joined the room. | 11:25:55 |
| @idahotokens:matrix.org left the room. | 16:02:47 |