I am currently using the following setup for PIO:
[env:nucleo_l4r5zi] platform = ststm32 board = nucleo_l4r5zi framework = arduino upload_protocol = mbed lib_deps = 5504, 5502
I am having trouble with debugging, I have debugged this board before using platformIO but I am having trouble now I am using a different platform (was using mbed before and had success).
I get the following error when trying to debug:
/Users/nic/.gdbinit:1: Error in sourced command file: No symbol table is loaded. Use the "file" command. Error: init mode failed (unable to connect to the target) .pioinit:10: Error in sourced command file:
Sometimes I get a popup saying that it failed to launch GDB. I should mention that uploading via STLink does not work either. I assume that PIO uses a local GDB executable and doesnt rely on a system installation?
Thanks for your help in advance.