We try to simulate on QEMU a program running Zephyr RTOS with a flash memory. We need to have persistence since between reboots the system must access parameters dynamically changed and stored in flash.
We use QEMU (pc) as the architecture to simulate our system, however we ran into the following problem using NVDIMM device:
the first memory address available is above 4GB (2^32) and in the QEMU/Zephyr configuration we must use, pointers are smaller than 32bitsĀ (We have segfault using BLE Zephyr drivers with QEMU 64bit).
However the simulated system being a small microcontroller we require less than 4MB of RAM and less than 8MB of flash.
Therefore, we would like to know if it is possible to configure QEMU such that the NVDIMM device has first address well below the 4GB mark ?
- all the best,