Open xiaohuihere opened 1 year ago
I had this same issue, weirdly enough if you switch to Debug (-Og) in sdkconfig it works. Debug without optimization (-O0) option doesn't work. The latter seems to unset CONFIG_OPTIMIZATION_LEVEL_DEBUG and CONFIG_COMPILER_OPTIMIZATION_LEVEL_DEBUG defines
I didn't dig too far into it but I'm guessing there's an issue somewhere down the line switching on debug option
Answers checklist.
General issue report
Development Kit
ESP-WROVER-KIT-VE
Module or chip used
ESP32-WROVER-E
Debug Adapter
FT2232
OpenOCD version
v0.11.0-esp32-20221026
Operating System
window10
Using an IDE ?
espressif IDF
OpenOCD command line
C:\Users\22380.espressif\tools\openocd-esp32\v0.11.0-esp32-20221026\openocd-esp32\bin\openocd.exe -f C:\Users\22380.espressif\tools\openocd-esp32\v0.11.0-esp32-20221026\openocd-esp32\share\openocd\scripts\board\esp32-wrover-kit-3.3v.cfg
JTAG Clock Speed
20000
ESP-IDF version
v4.4.3
Problem Description
When debugging with jtag, all variable values are displayed as when entering the rtos task
While working on a project, I wanted to try to go into one of the rtos tasks to see the value of a variable. However, I found that all the variables in the task showed.
The following is a screenshot of the scenario.
Debug Logs
Expected behavior
It should have shown the value of the variable in the left display bar, like the int variable a, which should have had a value of 1 or 0
Screenshots
task:
Create a task:
I have ever use the -O0, but it doesn't work
By the way, here is the openocd log with -d3 openocd_log.txt
After I changed the logLevel to 5 I get this full output and if it helps to find the problem then I would be very grateful. output.txt