Skip to content

Why not run kernel from flash on Pi Pico #1053

Answered by davidgiven
veremenko-y asked this question in Q&A
Discussion options

You must be logged in to vote

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...

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@veremenko-y
Comment options

Answer selected by veremenko-y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants