Started getting this error when clicking PIO Debug. Used to work fine just a few days ago.
The compile phase completes successfully, but when the DEBUG window opens the error occurs and it erases the contents that the compiler put in the .pio\build\LPC1769 DEBUG folder. Then of course a following error about not finding “idedata.json” occurs since the compiled output folder was erased.
Odd thing is that other projects compile and debug just fine.
I don’t know where to start in fixing this. What does undefinedError: mean and how can I find out what caused it?
The full output is:
undefinedError: Processing LPC1769 DEBUG (platform: https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.3.zip; board: nxp_lpc1769; framework: arduino)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/nxplpc-arduino-lpc176x/nxp_lpc1769.html
PLATFORM: NXP Arduino LPC176x (0.1.3) > NXP LPC1769
HARDWARE: LPC1769 120MHz, 31.97KB RAM, 464KB Flash
DEBUG: Current (custom) On-board (cmsis-dap) External (blackmagic, jlink)
PACKAGES:
- framework-arduino-lpc176x 0.2.9
- toolchain-gccarmnoneeabi 1.90301.200702 (9.3.1)
Converting Marlin.ino
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ off, Compatibility ~ strict
Found 2 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <U8glib-HAL> 0.4.5
Building in debug mode
FileNotFoundError: [Errno 2] No such file or directory: 'c:\\Users\\tony\\Documents\\CNC\\MAINBOARD\\MKS-SGEN\\Marlin-2.0.8-052521-SGEN\\.pio\\build/LPC1769 DEBUG/debug\\idedata.json':
File "C:\Users\tony\.platformio\penv\lib\site-packages\platformio\builder\main.py", line 230:
with open(
========================== [FAILED] Took 1.33 seconds ==========================
Environment Status Duration
------------- -------- ------------
LPC1769 DEBUG FAILED 00:00:01.335
==================== 1 failed, 0 succeeded in 00:00:01.335 ====================