windowsair / wireless-esp32-dap Goto Github PK
View Code? Open in Web Editor NEWwireless dap port for esp32
Home Page: https://github.com/windowsair/wireless-esp8266-dap
License: MIT License
wireless dap port for esp32
Home Page: https://github.com/windowsair/wireless-esp8266-dap
License: MIT License
(首先很抱歉连续提出问题可能使您感到困扰,但是作为一个ESP32的学习者,我对您的项目非常感兴趣)
我看到components文件夹的readme中写道PORT_SWD_SETUP未完成,这是否意味着SWD调试的功能未写好
如果是,我将继续等待您开发完成
�[0;32mI (3530) wifi_connect: Connected to wifi_connect: sta�[0m
�[0;32mI (3530) wifi_connect: - IPv4 address: 192.168.199.124�[0m
Socket created
Socket binded
Socket listening
Socket accepted
Handling dev attach request...
Sending header...
Sending device info...
* GET 0x02 CONFIGURATION DESCRIPTOR
Sending only first part of CONFIG
* GET 0x01 DEVICE DESCRIPTOR
* GET 0x02 CONFIGURATION DESCRIPTOR
Sending only first part of CONFIG
* GET 0x02 CONFIGURATION DESCRIPTOR
Sending ALL CONFIG
* GET 0x0F BOS DESCRIPTOR
* GET MSOS 2.0 vendor-specific descriptor
** REQUESTED list of supported languages
* GET STATUS
* SET FEATURE
* SET FEATURE
** REQUESTED list of supported languages
Guru Meditation Error: Core 0 panic'ed (Interrupt wdt timeout on CPU0).
Core 0 register dump:
PC : 0x40141dcf PS : 0x00060834 A0 : 0x80092d64 A1 : 0x3ffbd1f0
A2 : 0x3ffba408 A3 : 0x00000066 A4 : 0x3ffba746 A5 : 0x3ffba3d8
A6 : 0x00000001 A7 : 0x0000008a A8 : 0x00000000 A9 : 0x00000000
A10 : 0x3ffba458 A11 : 0x3ffba746 A12 : 0x00000066 A13 : 0x3ffba434
A14 : 0x3ffba65c A15 : 0x00000005 SAR : 0x00000011 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0x00000000
Backtrace:0x40141dcc:0x3ffbd1f00x40092d61:0x3ffbd220 0x40116bbd:0x3ffbd250 0x40109456:0x3ffbd270 0x4010ab35:0x3ffbd2a0 0x4010ac16:0x3ffbd2e0 0x400e3168:0x3ffbd300 0x401407c1:0x3ffbd320 0x401272d7:0x3ffbd340 0x400f5fc1:0x3ffbd360 0x400f0216:0x3ffbd380 0x400f0502:0x3ffbd3a0 0x400f1449:0x3ffbd3d0 0x400f149d:0x3ffbd410 0x400f14c5:0x3ffbd440 0x400ec2f2:0x3ffbd470 0x400ecef5:0x3ffbd4a0 0x400f7ddc:0x3ffbd4d0 0x400f8a60:0x3ffbd4f0 0x400e5ac9:0x3ffbd510 0x400e5b68:0x3ffbd530 0x4008c541:0x3ffbd560
Core 1 register dump:
PC : 0x40084f33 PS : 0x00060734 A0 : 0x80084f74 A1 : 0x3ffc8100
A2 : 0x00000001 A3 : 0x00000001 A4 : 0x3ffb1338 A5 : 0x00060723
A6 : 0x00000000 A7 : 0x00000000 A8 : 0x80084f33 A9 : 0x3ffc80e0
A10 : 0x00000001 A11 : 0x3ffb3a9c A12 : 0x00000000 A13 : 0x00060723
A14 : 0x00000001 A15 : 0x00000000 SAR : 0x00000010 EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x00000000
Backtrace:0x40084f30:0x3ffc81000x40084f71:0x3ffc8120 0x4008bdae:0x3ffc8140 0x400831a6:0x3ffc8160 0x4008c541:0x3ffc8190
ELF file SHA256: af09954001f82537
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:6664
load:0x40078000,len:14848
load:0x40080400,len:3792
entry 0x40080694
整个USBIP Attach的过程正常执行
usbip --debug attach -r 192.168.199.124 -b 1-1
usbip: debug: usbip.c:154:[run_command] running command: attach
usbip: debug: usbip_vhci.c:63:[usbip_vhci_driver_open] device path: \\?\root#usb#0000#{d35f7840-6a0c-11d2-b841-00c04fad5171}
succesfully attached to port 13
设备管理器可以识别到这个esp32 dap
但是在Keil中打开debug->setting后模块重启,如果不重启烧录阶段也会重启
This branch can work in your ESP32 baord now?
I issue one information at your wireless-esp8266, I build the ESP32 version in this branch, it still can't work at my ESP32 board.
我尝试把构建对象改为esp32-c3后出错。然后我尝试不修改拉下来就为esp32构建也是有一些问题
第一个错误是找不到soc/soc文件夹
修复的话去掉一个soc就好(可能你是用的是旧版的idf?)
第二个错误的话,main/dap_handle.c 17行的
#include "main/DAP_handle.h"中的DAP应该为小写(这都是小问题)
在修复这两个问题后esp32编译正常
第三个问题是编译esp32-c3时才有的问题
In file included from ../components/DAP/config/DAP_config.h:48,
from ../components/DAP/source/SW_DP.c:44:
../components/DAP/include/gpio_op.h: In function 'GPIO_SET_DIRECTION_NORMAL_OUT':
../components/DAP/include/gpio_op.h:34:22: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.enable_w1ts = (0x1 << io_num);
^
In file included from ../components/DAP/source/SW_DP.c:44:
../components/DAP/config/DAP_config.h: In function 'PORT_JTAG_SETUP':
../components/DAP/config/DAP_config.h:261:20: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.enable_w1tc = (0x1 << PIN_TDO);
^
../components/DAP/config/DAP_config.h:268:20: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.enable_w1ts = (0x1 << PIN_TDI);
^
../components/DAP/config/DAP_config.h:274:20: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.enable_w1tc = (0x1 << PIN_nTRST);
^
../components/DAP/config/DAP_config.h:276:20: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.enable_w1tc = (0x1 << PIN_nRESET);
^
../components/DAP/config/DAP_config.h: In function 'PIN_SWCLK_TCK_SET':
../components/DAP/config/DAP_config.h:336:17: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.out_w1ts = (0x1 << PIN_SWCLK);
^
../components/DAP/config/DAP_config.h: In function 'PIN_SWCLK_TCK_CLR':
../components/DAP/config/DAP_config.h:346:17: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.out_w1tc = (0x1 << PIN_SWCLK);
^
../components/DAP/config/DAP_config.h: In function 'PIN_SWDIO_TMS_IN':
../components/DAP/config/DAP_config.h:359:20: error: invalid operands to binary >> (have 'volatile union <anonymous>' and 'int')
return ((GPIO.in >> PIN_SWDIO_MOSI) & 0x1) ? 1 : 0;
~~~~~~~ ^~
../components/DAP/config/DAP_config.h: In function 'PIN_SWDIO_TMS_SET':
../components/DAP/config/DAP_config.h:369:17: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.out_w1ts = (0x1 << PIN_SWDIO_MOSI);
^
../components/DAP/config/DAP_config.h: In function 'PIN_SWDIO_TMS_CLR':
../components/DAP/config/DAP_config.h:379:17: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.out_w1tc = (0x1 << PIN_SWDIO_MOSI);
^
../components/DAP/config/DAP_config.h: In function 'PIN_SWDIO_IN':
../components/DAP/config/DAP_config.h:390:20: error: invalid operands to binary >> (have 'volatile union <anonymous>' and 'int')
return ((GPIO.in >> PIN_SWDIO_MOSI) & 0x1) ? 1 : 0;
~~~~~~~ ^~
../components/DAP/config/DAP_config.h: In function 'PIN_SWDIO_OUT':
../components/DAP/config/DAP_config.h:408:19: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.out_w1ts = (0x1 << PIN_SWDIO_MOSI); // set bit
^
../components/DAP/config/DAP_config.h:412:19: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.out_w1tc = (0x1 << PIN_SWDIO_MOSI); // clear bit
^
../components/DAP/config/DAP_config.h: In function 'PIN_SWDIO_OUT_DISABLE':
../components/DAP/config/DAP_config.h:440:17: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.out_w1ts = (0x1 << PIN_SWDIO_MOSI);
^
../components/DAP/config/DAP_config.h: In function 'PIN_TDI_IN':
../components/DAP/config/DAP_config.h:452:20: error: invalid operands to binary >> (have 'volatile union <anonymous>' and 'int')
return ((GPIO.in >> PIN_TDI) & 0x1) ? 1 : 0;
~~~~~~~ ^~
../components/DAP/config/DAP_config.h: In function 'PIN_TDI_OUT':
../components/DAP/config/DAP_config.h:465:19: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.out_w1ts = (0x1 << PIN_TDI); // set bit
^
../components/DAP/config/DAP_config.h:469:19: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.out_w1tc = (0x1 << PIN_TDI); // reset bit
^
../components/DAP/config/DAP_config.h: In function 'PIN_TDO_IN':
../components/DAP/config/DAP_config.h:482:20: error: invalid operands to binary >> (have 'volatile union <anonymous>' and 'int')
return ((GPIO.in >> PIN_TDO) & 0x1) ? 1 : 0;
~~~~~~~ ^~
../components/DAP/config/DAP_config.h: In function 'PIN_nRESET_IN':
../components/DAP/config/DAP_config.h:519:20: error: invalid operands to binary >> (have 'volatile union <anonymous>' and 'int')
return ((GPIO.in >> PIN_nRESET) & 0x1) ? 1 : 0;
~~~~~~~ ^~
../components/DAP/config/DAP_config.h: In function 'PIN_nRESET_OUT':
../components/DAP/config/DAP_config.h:535:19: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.out_w1ts = (0x1 << PIN_nRESET); // set bit
^
../components/DAP/config/DAP_config.h:539:19: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.out_w1tc = (0x1 << PIN_nRESET); // clear bit
^
../components/DAP/config/DAP_config.h: In function 'LED_CONNECTED_OUT':
../components/DAP/config/DAP_config.h:575:19: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.out_w1ts = (0x1 << PIN_LED_CONNECTED); // set bit
^
../components/DAP/config/DAP_config.h:579:19: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.out_w1tc = (0x1 << PIN_LED_CONNECTED); // clear bit
^
../components/DAP/config/DAP_config.h: In function 'LED_RUNNING_OUT':
../components/DAP/config/DAP_config.h:594:19: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.out_w1ts = (0x1 << PIN_LED_RUNNING); // set bit
^
../components/DAP/config/DAP_config.h:598:19: error: incompatible types when assigning to type 'volatile union <anonymous>' from type 'int'
GPIO.out_w1tc = (0x1 << PIN_LED_RUNNING); // clear bit
^
../components/DAP/config/DAP_config.h: In function 'PIN_SWDIO_IN':
../components/DAP/config/DAP_config.h:391:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: some warnings being treated as errors
我对该错误的解决暂时没有什么头绪,只知道是类型错误
还请指点一下
configures with Espressif IoT Development Framework esp-idf repo (Releases, git)
idf.py set-target
list of supported targets (issue related to esp32 type?)
idf.py set-target <chip_name>
idf.py menuconfig
compiles on
idf.py build
command on x86_64, Ubuntu 20.04
flash cmd, e.g.
idf.py -p /dev/tty<port> flash
or
esptool.py -p /dev/ttyUSB0 -b 230400 --before default_reset --after hard_reset --chip esp32 write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 bootloader.bin 0x8000 partition-table.bin 0x10000 esp32_dap.bin
combined esp8266 esp32 issue on that item:
windowsair/wireless-esp8266-dap#39 (comment)
?1? Possible adding a wifi AP configuration for wireless-esp32-dap swclk&swdio to wifi link (e.g. like esp-link for serial rx&tx to wifi tcp)?
?2? Another option could be a plugin on EspEasy rt os for dap (demand on cpu/system tasks and wifi bandwidth?) to wifi flash/debug tool? Thx
我希望可以使用到ESP32的优势,在该项目基础上制作一个更多功能的无线调试器
我尝试把ESP8266的程序移植到ESP32上,但是这似乎比我想的要困难很多
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.