Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Adding MMIO RAM On The RP2040
Author | Message | ||||
lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1702 |
The Answer Towards a solution First of all, how would you boot without persistent memory? I solved this by having both a flash and a RAM onboard. RP2040 only has a single nCS pin for SSI and only a single memory mapped address range, so we'll not be able to use them both. The idea is to boot from flash, copy flash to the start of RAM, and continue running from RAM. How do we make all of this work? It does not take much the rest is in the article |
||||
Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 4247 |
When I understand correctly using external RAM for variables is not very efficient. It takes 363 cyles (at 133MHz that is 3usec) to write a single 32 bit value ot RAM. Block writes are seriously faster (up to 36Mbyte/second whis is around 0.25usec per word). But it is a nice "proof of concept". Nobody thought it could be done, and someone proves...it can be done.. PicomiteVGA PETSCII ROBOTS |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6798 |
This is a "because it's there" project. :) How usable it would be with those restrictions on write speed is something else. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
Print this page |