Skip to content

Latest commit

 

History

History
65 lines (50 loc) · 2.18 KB

README.md

File metadata and controls

65 lines (50 loc) · 2.18 KB

nRF5340DK

Documents

Zephyr OS

Installation (2022/06, v2.0.0)

  1. Install: https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-desktop
  2. Setup python3 virtualenv (do-oh!)
  3. Use manual install process (since desktop app doesn't work): https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/gs_installing.html
  4. Install commmand-line utils: https://www.nordicsemi.com/Products/Development-tools/nrf-command-line-tools
  5. Install Segger J-Link: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/zephyr/develop/flash_debug/nordic_segger.html

Application and add-ons

Building sample 'multicore'

Uses nrf5340dk_nrf5340_cpuapp (application core, app) and nrf5340dk_nrf5340_cpunet (network core, net)

Compile and flash:

source <python env>/bin/activate
cd $SDK_HOME/ncs/nrf/samples/nrf5340/multicore

# multicore target (app + net), use '--sysbuild' for build all cores, use pristine to build every time from scratch:
west build --pristine -b nrf5340dk_nrf5340_cpuapp --sysbuild

# then erase and flash all cores (app+net)
west flash --erase

# do flash only app core of multicore app, use
# west flash --domain hello_world

Open terminal outputs - one for app (ttyACM2) and one for net (ttyACM0):

screen /dev/ttyACM0 
screen /dev/ttyACM2

Press 'RESET'-button from motherboard and observe terminals

...
*** Booting Zephyr OS build v3.0.99-ncs1 ***
Hello world from nrf5340dk_nrf5340_cpunet
...
...
*** Booting Zephyr OS build v3.0.99-ncs1 ***
Hello world from nrf5340dk_nrf5340_cpuapp
...

Building using custom combos (menu selections)

west build -b nrf5340dk_nrf5340_cpuapp -t menuconfig

## opens TUI to configure application -> select/remove components into build