nRF5 SDK v12.1.0
Flash Write Example

The Flash Write Example reads characters from UART, writes them to flash, and echos them.

The application first erases a page in flash. Next, it reads a character from the UART port. If a new character is detected, the character is written to flash and the flash address is incremented. The value is then read again from flash and output using UART. This output can be tracked in a COM listener (for example PUTTY).

You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\peripheral\flashwrite

Testing

Test the Flash Write Example application by performing the following steps:

  1. Compile and program the application.
  2. Start a terminal emulator like PuTTY and connect to the used COM port with the following UART settings:
    • Baud rate: 115.200
    • 8 data bits
    • 1 stop bit
    • No parity
    • HW flow control: RTS/CTS
  3. Write a character and observe the echo.

Documentation feedback | Developer Zone | Subscribe | Updated