Open rubencart opened 2 years ago
I can confirm that I get similar errors without defining the debug_tool (using the default parameter = unified debugger).
No matter if I try to use the debugger under macOS ARM or Ubuntu ARM, I will get a similar error. https://community.platformio.org/t/platformio-failes-to-start-debugger-on-arm/31272/2 https://github.com/platformio/platformio-core/issues/4506
Maybe we could try to configure PlatformIO to use own avr-gdb packages instead of preinstalled binaries?
@rubencart You can try to compile gcc, gdb and binutils yourself. Maybe start with an ubuntu VM, which should be easier. Probably you should not compile the latest version of all tools because then gdb will fail because some functions are not implemented yet. But I think this solution is a bit inappropriate because you want to use CLion instead of VSCode, or does CLion have an alternative to Remote SSH?
When I try to debug the following main.cpp in CLion with the platformio.ini listed below, I get the error below, and the debugger stops. main.cpp:
platformio.ini:
Error:
Any ideas on how to solve this? I am on macOS 10.15. As suggested here, I tried running
brew install avr-gdb
after having installed platformio and simavr, but this does not change anything.