This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Store the application in external flash

Hello, If I use the nRF51822 with 128KB ROM and I connect to a external flash via SPI.

The SoftDevice and bootloader are stored in the internal 128K ROM.

Is it possible that I store my code(application) in the external flash and the nRF51822 works normally?

Does the CPU get code from external flash on run time?

If it is possible, how to do it?

If it doesn't make sense, why?

Thanks.

Parents
  • Hello Stanley,

    I guess you have a problem with MCU architecture: it must run the code from some valid memory address and you cannot map external flash to the memory model. So the only options is to boot from internal flash (ROM as you call it for whatever reason) and load the code to RAM. And because you have most probably less available RAM then internal flash there seems to be no benefit of doing it.

    Cheers Jan

Reply
  • Hello Stanley,

    I guess you have a problem with MCU architecture: it must run the code from some valid memory address and you cannot map external flash to the memory model. So the only options is to boot from internal flash (ROM as you call it for whatever reason) and load the code to RAM. And because you have most probably less available RAM then internal flash there seems to be no benefit of doing it.

    Cheers Jan

Children
Related