You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
#include <Arduino.h>
static int solenoidPin = 9;
void setup() {
// write your initialization code here
Serial.begin(115200);
Serial.print("Setup");
pinMode(solenoidPin, OUTPUT); //Sets that pin as an output
}
void loop() {
// write your code here
Serial.print("Loop");
digitalWrite(solenoidPin, HIGH); //Switch Solenoid ON
delay(1000); //Wait 1 Second
digitalWrite(solenoidPin, LOW); //Switch Solenoid OFF
delay(1000); //Wait 1 Second
}
platformio.ini:
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:uno]
platform = atmelavr
board = uno
framework = arduino
debug_tool = simavr
Error:
Failed to process MI record:
>
No module named gdb:
Reading symbols from /Users/rubencartuyvels/Documents/audiokunst/arduino/arduino-pianist/piano-fsm/.pio/build/uno/firmware.elf...done.
PlatformIO Unified Debugger -> https://bit.ly/pio-debug
PlatformIO: debug_tool = simavr
PlatformIO: Initializing remote target...
0x00000000 in __vectors ()
PlatformIO: Initialization completed
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.
The text was updated successfully, but these errors were encountered:
@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.The text was updated successfully, but these errors were encountered: