Define memory slot in zephyr

Hi,

I have a proyect with the following memory requirements.

  • The current project has a propietary bootloader and bare-metal application. Therefore there is no Zephyr implementation.
  • The propietary bootloader memory range is from to 0x0 to 0x2E13 and the bare-metal application from 0x4000 to 0xE453. T
  • There is a requirement to start porting some of the functionalities from the bare-metal application into zephyr but not all. So I would like to keep the same ROM memory allocation as it is now and add a Zephyr release on top of that using the memory range starting at 0xF000.
  • The idea is that the propietary bootloader will still update for now both the bare metal application and the Zephyr code.

I have been researching the best options to arrange the memory for this specific project. I come up with two options although it might be more. My options so far is to use the Partition manager defined via Cmake or modify the dts flash controller section with an overlay. I would appreciate your views on the best way to approach this issue and how to execute it.

I would also appreciate an indication on how to jump from zephyr application code into the bare-metal application. This is a modification on the program counter under zephyr.

Thanks

Parents Reply Children
No Data
Related