[Closed] JTAG - Watchpoint, value unavailable
Posted: Mon Jun 11, 2018 2:00 pm
Hi,
I'm working on ESP32 WROOM and now using JTAG to flash and debug.
I manage to get it working but i can't get watchpoint working.
Here's the output on gdb :
I have the same problem using eclipse, where the value is written as unavailable.
I have the compiler setup for debug (-Og).
Here's my config files :
openocd config file:
gdbinit:
What am i missing ?
Thanks,
Tony
I'm working on ESP32 WROOM and now using JTAG to flash and debug.
I manage to get it working but i can't get watchpoint working.
Here's the output on gdb :
Code: Select all
Temporary breakpoint 1, app_main ()
at C:/OneDrive/ABL_new/p1/workspace_esp32/WiFi/main/src/app_main.c:490
490 {
(gdb) watch data_rx
No symbol "data_rx" in current context.
(gdb) break 406
Breakpoint 2 at 0x400df965: file C:/OneDrive/ABL_new/p1/workspace_esp32/WiFi/main/src/app_main.c, line 406.
(gdb) continue
Continuing.
Target halted. PRO_CPU: PC=0x400DF965 (active) APP_CPU: PC=0xF8001080
[New Thread 1073574440]
[New Thread 1073579740]
[New Thread 1073534172]
[New Thread 1073545792]
[New Thread 1073539176]
[New Thread 1073565312]
[Switching to Thread 1073574440]
Breakpoint 2, com_mcu_task ()
at C:/OneDrive/ABL_new/p1/workspace_esp32/WiFi/main/src/app_main.c:406
406 ESP_LOGI("UART", "Received %s", data_rx);
(gdb) watch data_rx
Watchpoint 3: data_rx
(gdb) continue
Undefined command: "". Try "help".
(gdb) continue
Continuing.
Target halted. PRO_CPU: PC=0x40082454 (active) APP_CPU: PC=0xF8001080
Error evaluating expression for watchpoint 3
value is not available
I have the compiler setup for debug (-Og).
Here's my config files :
openocd config file:
Code: Select all
interface jlink
adapter_khz 10000
set ESP32_RTOS FreeRTOS
transport select jtag
source [find share/openocd/scripts/target/esp32.cfg]
Code: Select all
target remote :3333
mon reset halt
flushregs
thb app_main
Thanks,
Tony