乐鑫技术交流
直播中

尤立虔

7年用户 978经验值
擅长:控制/MCU
私信 关注
[问答]

预计调用esp_wifi_start后内置的jtag会掉线吗?

预计调用esp_wifi_start后内置的jtag会掉线吗?

在我的软件中,调试工作正常,直到那时。我也可以进入 esp_wifi_start,但是在没有断点的情况下检查它会断开 USB jtag 连接。停在 esp_wifi_start 似乎打破了函数的时间。

这是在 esp_wifi_start 上设置断点时:
代码:全选
(gdb) target extended-remote :3333
Remote debugging using :3333
0x420081c6 in app_main () at ../main/startup.cpp:389
389                while (WaitStartup == 0);
(gdb) break esp_wifi_start
Breakpoint 1 at 0x42096480: file ../main/startup.cpp, line 555.
(gdb) set WaitStartup =1
(gdb) c
Continuing.
Note: automatically using hardware breakpoints for read-only addresses.
[esp32s3.cpu0] Target halted, PC=0x42096480, debug_reason=00000001
Set GDB target to 'esp32s3.cpu0'
[esp32s3.cpu1] Target halted, PC=0x40043A40, debug_reason=00000000
[New Thread 1070544848]
[New Thread 1070524092]
[New Thread 1070551216]
[New Thread 1070559892]
[New Thread 1070555096]
[New Thread 1070519636]
[New Thread 1070547256]
[New Thread 1070538432]
[Switching to Thread 1070542952]

Thread 1 "main" hit Breakpoint 1, 0x42096480 in esp_wifi_start ()
    at ../main/startup.cpp:555
555                event_trigger(event_id("init`done"));
(gdb) where
#0  0x42096480 in esp_wifi_start () at ../main/startup.cpp:555
#1  0x42019dea in wifi_start_station (ssid=,
    pass=) at ../main/wifi.cpp:499
#2  0x42034cb2 in cfg_activate () at ../components/streams/estring.h:71
#3  0x4200827a in app_main () at ../main/startup.cpp:477
#4  0x420e6a16 in main_task (args=0x0)
    at ../idf/idf-esp32/components/freertos/port/port_common.c:141
#5  0x40381948 in vPortTaskWrapper (pxCode=0x420e69c4 ,
    pvParameters=0x0)
    at ../idf/idf-esp32/components/freertos/port/xtensa/port.c:131
(gdb) n
xTaskGetCurrentTaskHandle ()
    at ../idf/idf-esp32/components/freertos/tasks.c:4650
4650            {
(gdb) n
4654                state = portSET_INTERRUPT_MASK_FROM_ISR();
(gdb) where
#0  xTaskGetCurrentTaskHandle ()
    at ../idf/idf-esp32/components/freertos/tasks.c:4654
#1  0x4209ca5a in current_task_is_wifi_task () at ../main/settings.cpp:595
#2  0x42095d07 in wifi_api_lock () at ../main/settings.cpp:595
#3  0x42095d66 in wifi_init_completed () at ../main/settings.cpp:595
#4  0x42096486 in esp_wifi_start () at ../main/settings.cpp:595
#5  0x42019dea in wifi_start_station (ssid=,
    pass=) at ../main/wifi.cpp:499
#6  0x42034cb2 in cfg_activate () at ../components/streams/estring.h:71
#7  0x4200827a in app_main () at ../main/startup.cpp:477
#8  0x420e6a16 in main_task (args=0x0)
    at ../idf/idf-esp32/components/freertos/port/port_common.c:141
#9  0x40381948 in vPortTaskWrapper (pxCode=0x420e69c4 ,
    pvParameters=0x0)
    at ../idf/idf-esp32/components/freertos/port/xtensa/port.c:131
(gdb)




更多回帖

发帖
×
20
完善资料,
赚取积分