Why not run kernel from flash on Pi Pico #1053
-
It's generally a question to @davidgiven, but I wanted to keep it public for others to chime in if needed. I was wondering if you had specific reasons not to run the kernel from flash directly? It does free up quite a bit of RAM, and seems to work just fine for me, besides few UART glitches on startup. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Should one of those 'flash' be a 'RAM'? I have vague memories that running from flash caused big problems with the secondary core and USB. Writing to the flash requires turning XIP off, which means going through a trampoline in RAM and stalling the secondary core until the write is complete. That would cause the USB thread to stop servicing requests and stuff would time out. I think I tried putting the critical parts in RAM, but I clearly didn't make it work. Ideally the entire kernel should be running from flash in order to maximise precious user-mode RAM... |
Beta Was this translation helpful? Give feedback.
Should one of those 'flash' be a 'RAM'?
I have vague memories that running from flash caused big problems with the secondary core and USB. Writing to the flash requires turning XIP off, which means going through a trampoline in RAM and stalling the secondary core until the write is complete. That would cause the USB thread to stop servicing requests and stuff would time out. I think I tried putting the critical parts in RAM, but I clearly didn't make it work.
Ideally the entire kernel should be running from flash in order to maximise precious user-mode RAM...