I usually work with VSCode and PlatformIO for my arduino projects.
I have use avr_debug before with VSCode, PlatformIO and Windows 10 and 11 without any problem. But it’s imposible for me to make it work with my MBP with Apple Silicon.
The debugger never starts and the error I get in the debug console is:
undefineddyld: Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.7/Python
Referenced from: /Users/xxxxx/.platformio/packages/toolchain-atmelavr/bin/avr-gdb
Reason: tried: ‘/System/Library/Frameworks/Python.framework/Versions/2.7/Python’ (no such file), ‘/Library/Frameworks/Python.framework/Versions/2.7/Python’ (no such file)
There is not Python 2.7 for Apple silicon, and installing it with brew under Rosetta 2 don’t solve the problem.
The software I’m using is:
MacOS Monterey 12.4
PlatformIO Core 6.0.0 and Home 3.4.1
MacBook Pro M1
Arduino Mega 2560
Am I the only one with this problem?
Thank you in advance.