查看ESP32 JTAG的源代码
←
ESP32 JTAG
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
=== Debug === Open a bash window and run: <source lang=bash> $ cd /path/to/openocd-esp32 $ sudo ./src/openocd -s ./tcl -f $IDF_PATH/docs/quantum.cfg Open On-Chip Debugger 0.10.0-dev-g3098897-dirty (2016-11-06-00:39) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html adapter speed: 200 kHz force hard breakpoints Info : clock speed 200 kHz Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1) Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1) </source> Push the reset buttom on the Quantum board, you can see the openocd output: <source lang=bash> Info : esp32.cpu0: Debug controller was reset (pwrstat=0xFF, after clear 0xFF). Info : esp32.cpu0: Core was reset (pwrstat=0xFF, after clear 0xFF). Info : esp32.cpu1: Debug controller was reset (pwrstat=0xFF, after clear 0xFF). Info : esp32.cpu1: Core was reset (pwrstat=0xFF, after clear 0xFF). Info : esp32.cpu0: Target halted, pc=0x400809C4 esp32.cpu0: target state: halted <---------- JTAG is OK otherwise reset the board again </source> ESP32 is enter JTAG debug mode now. Open a new bash window and run: <source lang=bash> $ cd /path/to/esp-idf/examples/06_wifi_scan $ xtensa-esp32-elf-gdb build/app-template.elf GNU gdb (crosstool-NG 8d95cad) 7.10 Copyright (C) 2015 Free Software Foundation, Inc. ...... ...... Reading symbols from build/wifi-scan.elf...done. (gdb) tar remo localhost:3333 Remote debugging using localhost:3333 ipc_task (arg=0x0) at /work/xwifi/esp-idf/components/esp32/./ipc.c:45 45 { (gdb) i r pc 0x400809c4 0x400809c4 <ipc_task> lbeg 0x0 0 lend 0x0 0 lcount 0x0 0 sar 0x0 0 ps 0x50020 327712 threadptr 0x0 0 br 0x0 0 scompare1 0x0 0 acclo 0x0 0 acchi 0x0 0 m0 0x0 0 m1 0x0 0 m2 0x0 0 m3 0x0 0 expstate 0x0 0 f64r_lo 0x0 0 f64r_hi 0x0 0 f64s 0x0 0 fcr 0x0 0 fsr 0x0 0 a0 0x0 0 a1 0x3ffc1580 1073485184 a2 0x0 0 a3 0x0 0 ...... ...... (gdb) b app_main Breakpoint 1 at 0x400d1af8: file /work/xwifi/esp-idf/examples/06_wifi_scan/main/./app_main.c, line 64. (gdb) c Continuing. esp32.cpu0: Target halted, pc=0x400D1AF8 [New Thread 1073491756] [New Thread 1073493740] [New Thread 1073485304] [Switching to Thread 1073489792] Breakpoint 1, app_main () at /work/xwifi/esp-idf/examples/06_wifi_scan/main/./app_main.c:64 64 { (gdb) i thr Id Target Id Frame 4 Thread 1073485304 (No Name) 0x400820f6 in xQueueGenericReceive (xQueue=0x3ffc1054, pvBuffer=0x0, xTicksToWait=4294967295, xJustPeeking=0) at /work/xwifi/esp-idf/components/freertos/./queue.c:1589 3 Thread 1073493740 (Svc) 0x40083b52 in prvProcessTimerOrBlockTask (xNextExpireTime=0, xListWasEmpty=<optimized out>) at /work/xwifi/esp-idf/components/freertos/./timers.c:487 2 Thread 1073491756 (No Name) prvIdleTask (pvParameters=0x0) at /work/xwifi/esp-idf/components/freertos/./tasks.c:3220 * 1 Thread 1073489792 (No Name : Running) app_main () at /work/xwifi/esp-idf/examples/06_wifi_scan/main/./app_main.c:64 </source> Welcome to GDB world :) <br><br>
返回到
ESP32 JTAG
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面