Hi,
When debugging (platformio-debug type) a simple example on nRF52 DK I get immediate error in section 2. The code seems to run fine if not being debugged. Tools fully updated as per section 1. Debug conf in section 3. Any help would be appreciated.
Section 1
$ pio system info -------------------------- --------------------------------------------------- PlatformIO Core 5.1.1 Python 3.9.2-final.0 System Type linux_x86_64 Platform Linux-5.10.23-200.fc33.x86_64-x86_64-with-glibc2.32 File System Encoding utf-8 Locale Encoding UTF-8 PlatformIO Core Directory /home/xpto/.platformio PlatformIO Core Executable /home/xpto/.platformio/penv/bin/platformio Python Executable /home/xpto/.platformio/penv/bin/python Global Libraries 0 Development Platforms 1 Tools & Toolchains 59
Section 2
[00:00:00.492,858] â[1;31m<err> os: ***** USAGE FAULT *****â[0m [00:00:00.492,858] â[1;31m<err> os: Illegal use of the EPSRâ[0m [00:00:00.492,889] â[1;31m<err> os: r0/a1: 0x00000000 r1/a2: 0xe000ed00 r2/a3: 0x20001d54â[0m [00:00:00.492,889] â[1;31m<err> os: r3/a4: 0x00000000 r12/ip: 0x00000000 r14/lr: 0xfffffffdâ[0m [00:00:00.492,889] â[1;31m<err> os: xpsr: 0x6000000eâ[0m [00:00:00.492,889] â[1;31m<err> os: Faulting instruction address (r15/pc): 0x0000be00â[0m [00:00:00.492,889] â[1;31m<err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0â[0m [00:00:00.492,889] â[1;31m<err> os: Fault during interrupt handling â[0m [00:00:00.492,919] â[1;31m<err> os: Current thread: 0x200007b0 (unknown)â[0m [00:00:01.545,501] â[1;31m<err> os: Halting systemâ[0m
Section 3
{
âtypeâ: âplatformio-debugâ,
ârequestâ: âlaunchâ,
ânameâ: âPIO Debug testâ,
âexecutableâ: â/home/xpto/snipped/.pio/build/nrf52_dk/firmware.elfâ,
âprojectEnvNameâ: ânrf52_dkâ,
âtoolchainBinDirâ: â/home/xpto/.platformio/packages/toolchain-gccarmnoneeabi@1.80201.181220/binâ,
âinternalConsoleOptionsâ: âopenOnSessionStartâ,
âsvdPathâ: â/home/xpto/.platformio/platforms/nordicnrf52/misc/svd/nrf52.svdâ
}