Hello everyone, I’m trying to debug the ESP32-Ethernet-Kit V1.2 Board using gnrc_networking
example.
Flashing and starting RIOT itself with PROGRAMMER=openocd USEMODULE=esp_jtag BOARD=esp32-ethernet-kit-v1_2 make all flash term PORT=/dev/ttyUSB1
works fine.
But when I’m trying to start debugging with PROGRAMMER=openocd USEMODULE=esp_jtag BOARD=esp32-ethernet-kit-v1_2 make debug PORT=/dev/ttyUSB1
it throws this warnings:
Warning: while parsing target description (at line 4): Target description specified unknown architecture "xtensa"
Warning: Could not load XML target description; ignoring
and just crashes afterwards.
Then I tried to start OpenOCD manually and it throws following errors:
Info : [esp32.cpu0] Examination succeed Error: Unexpected OCD_ID = 00000000 Error: [esp32.cpu1] Examination failed
Then I can start GDB and somehow connect to cpu0 to start actual debugging. But then there is always only one thread. Sometimes after connecting, OpenOCD throws error which says something like Couldn't determine the number of threads for FreeRTOS
but I cannot always recreate it.
I am newbie here and really confused about it and about cpu0 and cpu1. Is there a way to switch somehow to another target? I feel that I might be missing something.
Does anyone here have any experience in debugging with OpenOCD/GDB or in working with ESP32 and might have any idea how to solve this? I would be really grateful for any clues. Thanks in advance for your support!