Hey there,
I am a little bit lost while I’m trying to debug my Arduino code. I have added the avr-debugger project to my platformio.ini but alway get the following error message and don’t know to handle it.
Error:
undefinedPython Exception <type ‘exceptions.ImportError’> No module named gdb:
warning:
Could not load the Python gdb module from `/Users/jenkins/jenkins/workspace/avr-gcc-staging/label/mac-mini/objdir/share/gdb/python’.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.
platformio.ini
[env:megaatmega2560]
platform = atmelavr
board = megaatmega2560
framework = arduino
monitor_speed = 115200
debug_tool = avr-stub
debug_port = /dev/cu.usbserial-14220
; GDB stub implementation
lib_deps =
jdolinay/avr-debugger@^1.5
I’m on macOS 10.15.7 Catalina and copied the Serial port from the device list in platofrmIO.
It would be nice if someone could help me to get it work.