Below is the content of the debug console after the following actions:
Build, proceed at main(), halt at NVIC_SetPriority, and an attempt to proceed and another halt at halt at NVIC_SetPriority
At the end of the listing is the reply to “info breakpoints” (says there are no breakpoints).
The PIO Breakpoints section is empty.
Debug console output:
Processing adafruit_feather_nrf52840 (platform: nordicnrf52; board: adafruit_feather_nrf52840; framework: arduino)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https:/ /docs.platformio.org/page/boards/nordicnrf52/adafruit_feather_nrf52840.html
PLATFORM: Nordic nRF52 4.0.0 > Adafruit Feather nRF52840 Express
HARDWARE: NRF52840 64MHz, 243KB RAM, 796KB Flash
DEBUG: Current (jlink) External (jlink, stlink)
PACKAGES:
- framework-arduinoadafruitnrf52 1.1405.191023 (14.5)
- tool-sreccat 1.164.0 (1.64)
- toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> http:/ /bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 12 compatible libraries
Scanning dependencies...
No dependencies
Building in debug mode
Checking size .pio/build/adafruit_feather_nrf52840/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 2.4% (used 5976 bytes from 248832 bytes)
Flash: [ ] 4.2% (used 34164 bytes from 815104 bytes)
========================= [SUCCESS] Took 1.16 seconds =========================
SEGGER J-Link GDB Server V6.52 Command Line Version
JLinkARM.dll V6.52 (DLL compiled Sep 27 2019 17:51:01)
Command line: -singlerun -if SWD -select USB -device nRF52840_xxAA -port 2331
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 2331
SWO raw output listening port: 2332
Terminal I/O port: 2333
Accept remote connection: yes
Generate logfile: off
Verify download: off
Init regs on start: off
Silent mode: off
Single run mode: on
Target connection timeout: 0 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: nRF52840_xxAA
Target interface: SWD
Target interface speed: 4000kHz
Target endian: little
Connecting to J-Link...
Reading symbols from /Users/chrisgr/Documents/PlatformIO/Projects/Test Jtag/.pio/build/adafruit_feather_nrf52840/firmware.elf...
done.
PlatformIO Unified Debugger -> http:/ /bit.ly/pio-debug
PlatformIO: debug_tool = jlink
PlatformIO: Initializing remote target...
J-Link is connected.
Firmware: J-Link V10 compiled Aug 27 2019 09:24:55
Hardware: V10.10
S/N: 260117951
OEM: SEGGER-EDU
Feature(s): FlashBP, GDB
Checking target voltage...
Target voltage: 3.31 V
Listening on TCP/IP port 2331
Connecting to target...
Connected to target
Waiting for GDB connection...
Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x0002A04C (Data = 0x3D04F84D)
0x0002a04c in PendSV_Handler () at /Users/chrisgr/.platformio/packages/framework-arduinoadafruitnrf52/cores/nRF5/freertos/portable/GCC/nrf52/port.c:104
104 __asm volatile
Received monitor command: clrbp
Received monitor command: speed auto
Select auto target interface speed (2000 kHz)
Select auto target interface speed (2000 kHz)
Received monitor command: reset
Resetting target
Resetting target
Received monitor command: halt
Halting target CPU...
...Target halted (PC = 0x00000A80)
Loading section .text, size 0x832c lma 0x26000
Downloading 16032 bytes @ address 0x00026000
Downloading 15984 bytes @ address 0x00029EA0
Downloading 1564 bytes @ address 0x0002DD10
Loading section .ARM.exidx, size 0x8 lma 0x2e32c
Downloading 8 bytes @ address 0x0002E32C
Loading section .data, size 0x240 lma 0x2e334
Downloading 576 bytes @ address 0x0002E334
Start address 0x262b8, load size 34164
Writing register (PC = 0x 262b8)
Transfer rate: 16681 KB/sec, 6832 bytes/write.
Read 4 bytes @ address 0x000262B8 (Data = 0x4A0B490A)
Read 2 bytes @ address 0x000262B8 (Data = 0x490A)
Read 2 bytes @ address 0x00026334 (Data = 0xB500)
Temporary breakpoint 1 at 0x26334: file /Users/chrisgr/.platformio/packages/framework-arduinoadafruitnrf52/cores/nRF5/main.cpp, line 69.
PlatformIO: Initialization completed
PlatformIO: Resume the execution to `debug_init_break = tbreak main`
PlatformIO: More configuration options -> http:/ /bit.ly/pio-debug
Setting breakpoint @ address 0x00026334, Size = 2, BPHandle = 0x0001
Starting target CPU...
...Breakpoint reached @ address 0x00026334
Reading all registers
Removing breakpoint @ address 0x00026334, Size = 2
Read 4 bytes @ address 0x00026334 (Data = 0xB083B500)
Temporary breakpoint 1, main () at /Users/chrisgr/.platformio/packages/framework-arduinoadafruitnrf52/cores/nRF5/main.cpp:69
69 {
info breakpoints
No breakpoints or watchpoints.
{"token":17,"outOfBandRecord":[],"resultRecords":{"resultClass":"done","results":[]}}