Read and write data from flash memory using this sample.
Use any board that supports Zephyr RTOS. This example uses BeagleConnect Freedom.
For setup, refer to the documentation.
Follow these steps to set up and run the sample in the arduino-workspace directory:
Set up the virtual environment:
source .venv/bin/activate
Build the EEPROM operations sample:
west build -b beagleconnect_freedom modules/lib/Arduino-Zephyr-API/samples/eeprom_operations -p
Flash the code after connecting BeagleConnect Freedom to your device:
west flash
Open the serial console to view the output:
tio /dev/ttyACM0
Run the code and observe the following output:
Serial communication initialized
NVS initialized
Data written successfully
Data read: 1234