22 lines
992 B
Markdown
22 lines
992 B
Markdown
Complete echo_bot build/flash/reset/UART workflow (user-provided commands):
|
|
|
|
# 1. Build
|
|
cd ~/ncs/v3.0.2 && nrfutil toolchain-manager launch --ncs-version v3.0.2 -- west build --build-dir /home/paul/Documents/echo_bot/build /home/paul/Documents/echo_bot --board Scout/nrf5340/cpuapp -- -DBOARD_ROOT="/home/paul/Documents/custom_boards_nrf"
|
|
|
|
# 2. Flash
|
|
cd ~/ncs/v3.0.2 && nrfutil toolchain-manager launch --ncs-version v3.0.2 -- west flash --build-dir /home/paul/Documents/echo_bot/build
|
|
|
|
# 3. Reset device
|
|
nrfutil device reset --serial-number <SERIAL_NUMBER>
|
|
|
|
# 4. UART capture (30s timeout)
|
|
We use Uart for logging!
|
|
timeout 30 minicom --device /dev/serial/by-id/<id> --baudrate 115200
|
|
|
|
Notes:
|
|
- Use nrfutil toolchain-manager launch wrapper for NCS v3.0.2
|
|
- Board: Scout/nrf5340/cpuapp with custom BOARD_ROOT
|
|
- Serial number for reset: <SERIAL_NUMBER>
|
|
- UART device: /dev/serial/by-id/<id>
|
|
- Timeout 30s on minicom to auto-exit
|
|
- Start the UART and directly after that reset, to get the output |