i’m trying to debug my sketch on ESP8266 with
gdbstub since this seems to be the only available solution aside the serial outputs.
I’ve started according the information on esp8266 & gdb. the sample sketch worked fine with the following
[env:d1_mini_pro] platform = espressif8266 board = d1_mini_pro framework = arduino upload_speed = 460800 build_flags = -ggdb -Og
and starting gdb from cmd line.
However when i do the same procedure - obviously not the same code - i get the following error while trying to attach to USB:
(gdb) target remote /dev/ttyUSB0 Remote debugging using /dev/ttyUSB0 0x00010100 in ?? () Cannot access memory at address 0x10100
below is my
[platformio] default_envs = d1_mini_pro [env] lib_deps = Wire adafruit/Adafruit GFX Library @ ^1.10.7 adafruit/Adafruit ST7735 and ST7789 Library @ ^1.7.1 adafruit/Adafruit BusIO @ ^1.7.3 bblanchon/ArduinoJson @ ^6.17.3 bblanchon/StreamUtils @ ^1.6.1 paulstoffregen/Time @ ^1.6 [env:d1_mini_pro] platform = espressif8266 framework = arduino board = d1_mini_pro upload_speed = 921600 build_flags = -ggdb -Og
Any hints to the right direction would be appreciated