Skip to content

Commit 4fcc25d

Browse files
iiJetLiiJetLi
andauthored
CherryDAP on ESP32s3 (#43)
Co-authored-by: Jet <344148042@qq.com>
1 parent 618dfee commit 4fcc25d

File tree

16 files changed

+3693
-0
lines changed

16 files changed

+3693
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.vscode
22
**/Drivers/**
3+
**/managed_components/**
4+
.codemap
35
**/MDK-ARM/DebugConfig/**
46
**/MDK-ARM/RTE/**
57
**/obj/**
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
title: ESP32-S3-DevKitC-1
3+
---
4+
5+
## 硬件连接
6+
7+
| Function | Label | GPIO |
8+
|:--------:|:-----:|:----:|
9+
| SWD_SWCLK | IO17 | 17 |
10+
| SWD_SWDIO | IO16 | 16 |
11+
| JTAG_TCK | IO17 | 17 |
12+
| JTAG_TMS | IO16 | 16 |
13+
| JTAG_TDI | IO15 | 15 |
14+
| JTAG_TDO | IO7 | 7 |
15+
| UART TX | IO11 | 4 |
16+
| UART RX | IO13 | 5 |
17+
| nRESET | IO6 | 6 |
18+
19+
## 串口测试
20+
21+
![](image/esp32uart.png)
22+
23+
## 编译
24+
25+
You can compile with:
26+
27+
```shell
28+
cd projects/esp32s3
29+
30+
idf.py build
31+
idf.py -p COM18 flash # the ch343 usb port, usb cdc port will be init as DAP COM port
32+
idf.py -p COM18 monitor
33+
```
34+
35+
## 编程测试
36+
37+
- [x] ESP32 class
38+
- [x] ESP32c3/uart
39+
- [x] esptool/921600
40+
- [x] ESP32s3/uart
41+
- [x] esptool/921600
42+
- [x] raspberry
43+
- [x] rp2040/swd
44+
- [x] probe-rs/921600
45+
- [ ] cmsis-dap
46+
- [ ] picotool
47+
- [ ] raspberrypi-swd

docs/src/projects/image/esp32uart.png

154 KB
Loading

projects/esp32s3/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# The following five lines of boilerplate have to be in your project's
2+
# CMakeLists in this exact order for cmake to work correctly
3+
cmake_minimum_required(VERSION 3.16)
4+
5+
add_definitions(-DCONFIG_CHERRYUSB_DEVICE_DCD="dwc2_esp")
6+
add_definitions(-DCONFIG_USBDEV_ADVANCE_DESC=1)
7+
8+
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
9+
10+
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
11+
project(CherryDAP)

projects/esp32s3/dependencies.lock

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
dependencies:
2+
cherry-embedded/cherryusb:
3+
component_hash: 599e1b332c73c3c7413b3eaea4ba66ebc27305189bf98f8eb888b65e79c44c65
4+
dependencies:
5+
- name: idf
6+
require: private
7+
version: '>=5.0'
8+
source:
9+
registry_url: https://components.espressif.com/
10+
type: service
11+
targets:
12+
- esp32s2
13+
- esp32s3
14+
- esp32p4
15+
version: 1.4.3
16+
idf:
17+
source:
18+
type: idf
19+
version: 5.4.0
20+
direct_dependencies:
21+
- cherry-embedded/cherryusb
22+
- idf
23+
manifest_hash: 607f822d76099b04f095fb21af50f487d495d993f1334ddd8fd4c824059da374
24+
target: esp32s3
25+
version: 2.0.0

projects/esp32s3/main/CMakeLists.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# The following lines of boilerplate have to be in your project's CMakeLists
2+
# in this exact order for cmake to work correctly
3+
file(GLOB_RECURSE SOURCES
4+
"usb2uart.c"
5+
"main.c"
6+
"../../../dap_main.c"
7+
"../../../DAP/Source/*.c"
8+
"../../../CherryRB/*.c"
9+
)
10+
11+
set(include_dirs
12+
"."
13+
"../../../"
14+
"../../../DAP/Include"
15+
"../../../CherryRB"
16+
)
17+
idf_component_register(SRCS ${SOURCES}
18+
INCLUDE_DIRS ${include_dirs}
19+
REQUIRES esp_http_client nvs_flash driver usb
20+
WHOLE_ARCHIVE)
21+
target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-const-variable -Wno-format -Wno-format-truncation -Wno-incompatible-pointer-types)

0 commit comments

Comments
 (0)