查看ESP32 JTAG的源代码
←
ESP32 JTAG
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
== Example == Show how to check the parameter of the printf in examples/wifi-scan: <source lang=bash> comcat@jackslab:/work/xwifi/esp-idf/examples/06_wifi_scan$ xtensa-esp32-elf-gdb build/wifi-scan.elf ...... ...... 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) 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 Breakpoint 1, app_main () at /work/xwifi/esp-idf/examples/06_wifi_scan/main/./app_main.c:64 64 { (gdb) l 59 esp_wifi_set_mode(WIFI_MODE_STA); 60 esp_wifi_start(); 61 } 62 63 void app_main() 64 { 65 nvs_flash_init(); 66 system_init(); 67 wifi_init(); 68 printf("Welcome to Noduino Quantum\r\n"); (gdb) b 68 Breakpoint 2 at 0x400d1b04: file /work/xwifi/esp-idf/examples/06_wifi_scan/main/./app_main.c, line 68. (gdb) c Continuing. esp32.cpu0: Target halted, pc=0x400D1AFB esp32.cpu0: Target halted, pc=0x400D1B04 [New Thread 1073500260] [New Thread 1073504324] [New Thread 1073514676] [New Thread 1073497156] Breakpoint 2, app_main () at /work/xwifi/esp-idf/examples/06_wifi_scan/main/./app_main.c:68 68 printf("Welcome to Noduino Quantum\r\n"); (gdb) x /4i $pc => 0x400d1b04 <app_main+12>: l32r a10, 0x400d0208 <_stext+496> 0x400d1b07 <app_main+15>: call8 0x400ef3b4 <puts> 0x400d1b0a <app_main+18>: l32r a10, 0x400d020c <_stext+500> 0x400d1b0d <app_main+21>: call8 0x400ef3b4 <puts> (gdb) si esp32.cpu0: Target halted, pc=0x400D1B07 0x400d1b07 68 printf("Welcome to Noduino Quantum\r\n"); (gdb) si esp32.cpu0: Target halted, pc=0x400EF3B4 puts (s=0x0) at ../../../.././newlib/libc/stdio/puts.c:137 ...... (gdb) x /4i $pc => 0x400ef3b4 <puts>: entry a1, 32 0x400ef3b7 <puts+3>: call8 0x400828fc <__getreent> 0x400ef3ba <puts+6>: or a11, a2, a2 0x400ef3bd <puts+9>: call8 0x400ef31c <_puts_r> (gdb) i r a10 a10 0x3f4013c8 1061163976 (gdb) x /s 0x3f4013c8 0x3f4013c8: "Welcome to Noduino Quantum\r" (gdb) (gdb) si esp32.cpu0: Target halted, pc=0x400EF3B7 138 in ../../../.././newlib/libc/stdio/puts.c (gdb) si esp32.cpu0: Target halted, pc=0x400828FC __getreent () at /work/xwifi/esp-idf/components/freertos/./tasks.c:2030 2030 struct _reent* __getreent() { (gdb) x /8i $pc => 0x400828fc <__getreent>: entry a1, 32 0x400828ff <__getreent+3>: rsr.prid a2 0x40082902 <__getreent+6>: extui a2, a2, 13, 1 0x40082905 <__getreent+9>: l32r a8, 0x400804f0 0x40082908 <__getreent+12>: addx4 a2, a2, a8 0x4008290b <__getreent+15>: memw 0x4008290e <__getreent+18>: l32i.n a2, a2, 0 0x40082910 <__getreent+20>: bnez.n a2, 0x40082919 <__getreent+29> (gdb) return Make __getreent return now? (y or n) y #0 0x400ef3ba in puts (s=0x3f4013c8 "Welcome to Noduino Quantum\r") at ../../../.././newlib/libc/stdio/puts.c:138 (gdb) x /4i $pc => 0x400ef3ba <puts+6>: or a11, a2, a2 0x400ef3bd <puts+9>: call8 0x400ef31c <_puts_r> 0x400ef3c0 <puts+12>: or a2, a10, a10 0x400ef3c3 <puts+15>: retw (gdb) return Make puts return now? (y or n) y #0 app_main () at /work/xwifi/esp-idf/examples/06_wifi_scan/main/./app_main.c:69 69 printf("WiFi AP SSID Scanning... \r\n"); (gdb) x /4i $pc => 0x400d1b0a <app_main+18>: l32r a10, 0x400d020c <_stext+500> 0x400d1b0d <app_main+21>: call8 0x400ef3b4 <puts> 0x400d1b10 <app_main+24>: movi a15, 0 0x400d1b13 <app_main+27>: s32i a15, a1, 0 (gdb) </source> <br><br>
返回到
ESP32 JTAG
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面