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

nrf52840 protect code from reading some ram

I have a nRF52840 application that needs to take a complex list of commands from a server.

I have a few options. I could:

  • code a basic language myself for these commands
  • accept some sort of script in (python?) which means I need an interpreter
  • compile my commands into bytecode and ship that off to be run in ram

The scripting seems dangerous enough, but the running foreign commands in ram is risky, even if I encrypt everything the whole way.

Say I did want to use load code into ram and execute it, is it possible to read/write protect some of the RAM from this code? Can I define those blocks?

Related