Using NRF52840 to run code, out of memory, how to use Norflash to expand memory
Using NRF52840 to run code, out of memory, how to use Norflash to expand memory
The only way to add more space for holding program code is to use the QSPI flash controller and an external QSPI flash chip. The Nordic NRF52840 DK reference board includes an 8MB QSPI flash, and I'm pretty sure the Nordic SDK has an example in it somewhere that uses it. You need to enable eXecute In Place (XIP) mode so that the flash is mapped into the CPU's physical address space.
(Note: yes, it's actually an 8 megabyte QSPI flash chip. It says 64Mb in the specs, but the lower case 'b' means 64 megabits, which is equivalent to 8 megabytes. You can use a larger chip in your own design.)
-Bill
Hi
What Bill is saying is absolutely correct. You can check out the QSPI example on the Infocenter to see how you can use the QSPI peripheral as memory. The application initializes the peripheral and sends configuration commands to memory.
Best regards,
Simon
Thanks, the problem has been solved by referring to the QSPI example
Thanks, the problem has been solved by referring to the QSPI example