Skip to content

Latest commit

 

History

History
58 lines (34 loc) · 1.24 KB

File metadata and controls

58 lines (34 loc) · 1.24 KB

EEPROM Operations

Overview

Read and write data from flash memory using this sample.

Prerequisites and Setup

Use any board that supports Zephyr RTOS. This example uses BeagleConnect Freedom.

For setup, refer to the documentation.

Build and Test

Follow these steps to set up and run the sample in the arduino-workspace directory:

  1. Set up the virtual environment:

    source .venv/bin/activate
  2. Build the EEPROM operations sample:

    west build -b beagleconnect_freedom modules/lib/Arduino-Zephyr-API/samples/eeprom_operations -p
  3. Flash the code after connecting BeagleConnect Freedom to your device:

    west flash
  4. Open the serial console to view the output:

    tio /dev/ttyACM0

Sample Output

Run the code and observe the following output:

Serial communication initialized
NVS initialized
Data written successfully
Data read: 1234