In terminal window 1 ———————————— run the command "pyocd-gdbserver" to obtain this session tpwmac12:~ tpw$ pyocd-gdbserver INFO:root:new board id detected: 02400221AA524E54578CB3EC INFO:root:board allows 5 concurrent packets INFO:root:DAP SWD MODE initialised INFO:root:IDCODE: 0x2BA01477 INFO:root:K64F not in secure state INFO:root:6 hardware breakpoints, 4 literal comparators INFO:root:CPU core is Cortex-M4 INFO:root:FPU present INFO:root:4 hardware watchpoints INFO:root:GDB server started at port:3333 INFO:root:One client connected! [====================] 100% <--*NOTE* You will not see the lines denoted in RED when you first run the command it will say "none" and wait for the other terminal...

In terminal window 2

run arm-none-eabi-gdb on your compiled elf file for your project as follows

————————————

Windows user will need to recall or search for where the ".platformio" directory is stored on their PC and use the following command (sometimes it happens to be in a directory called "SPB_Data" but your directory location may be different).



C:\Windows\system32\

C:\SPB_Data\.platformio\packages\toolchain-gccarmnoneeabi\bin\arm-none-eabi-gdb "C:\Users\USERNAME\Desktop\blink_pe\.pioenvs\frdm_k64f\firmware.elf"

If you cannot find the directory for the “arm-none-eabi-gdb” simply download and extract it from here:



https://launchpad.net/gcc-arm-embedded



