Skip to content

Commit e2ae719

Browse files
committed
Merge branch 'release/v0.1.3-release'
2 parents fb60e12 + c9239f9 commit e2ae719

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+3173
-2611
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ jobs:
1010
runs-on: ubuntu-18.04
1111
steps:
1212
- uses: actions/checkout@v2
13+
with:
14+
submodules: recursive
1315

1416
- name: before_install
1517
run: |
1618
sudo apt update
17-
sudo apt install -y gcc git wget make libncurses-dev flex bison python python-serial ninja-build
19+
sudo apt install -y gcc git wget make libncurses-dev flex bison python python-setuptools python-serial ninja-build
1820
wget https://dl.espressif.com/dl/xtensa-lx106-elf-linux64-1.22.0-100-ge567ec7-5.2.0.tar.gz
1921
2022
- name: install
2123
run: |
2224
tar -xzf ./xtensa-lx106-elf-linux64-1.22.0-100-ge567ec7-5.2.0.tar.gz
23-
wget https://github.com/espressif/ESP8266_RTOS_SDK/releases/download/v3.3-rc1/ESP8266_RTOS_SDK-v3.3-rc1.zip
24-
unzip ESP8266_RTOS_SDK-v3.3-rc1.zip
2525
python -m pip install --user -r ./ESP8266_RTOS_SDK/requirements.txt
2626
2727
- name: script
@@ -41,12 +41,23 @@ jobs:
4141
echo "::set-output name=release_tag::UserBuild_$(date +"%Y.%m.%d_%H-%M")"
4242
echo "::set-output name=status::success"
4343
44+
- name: Merge bin files
45+
if: steps.tag.outputs.status == 'success' && !cancelled()
46+
run: |
47+
git clone https://github.com/espressif/esptool.git
48+
./esptool/esptool.py --chip esp8266 merge_bin -o build/esp8266_dap_full.bin 0x0 build/bootloader/bootloader.bin 0x8000 build/partition_table/partition-table.bin 0x10000 build/esp8266_dap.bin
49+
mv build/esp8266_dap.bin build/esp8266_dap_app.bin
50+
4451
- name: Release user firmware
4552
uses: softprops/action-gh-release@v1
4653
if: steps.tag.outputs.status == 'success' && !cancelled()
4754
env:
4855
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4956
with:
5057
tag_name: ${{ steps.tag.outputs.release_tag }}
51-
files: ${{ env.FIRMWARE }}/esp8266_dap.bin
58+
files: |
59+
${{ env.FIRMWARE }}/esp8266_dap_full.bin
60+
${{ env.FIRMWARE }}/esp8266_dap_app.bin
61+
${{ env.FIRMWARE }}/bootloader/bootloader.bin
62+
${{ env.FIRMWARE }}/partition_table/partition-table.bin
5263

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.vscode/
22
build/
3-
tmp/
3+
tmp/
4+
.history/

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "ESP8266_RTOS_SDK"]
2+
path = ESP8266_RTOS_SDK
3+
url = https://github.com/espressif/ESP8266_RTOS_SDK
File renamed without changes.

CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
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
31
cmake_minimum_required(VERSION 3.5)
4-
#set(COMPONENT_DIRS "${IDF_PATH}/components ${PROJECT_PATH}/components")
52

6-
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/main)
3+
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
74

85
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
96
project(esp8266_dap)

ESP8266_RTOS_SDK

Submodule ESP8266_RTOS_SDK added at 1be2289

Makefile

Lines changed: 0 additions & 9 deletions
This file was deleted.

README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<p align="center"><img src="https://user-images.githubusercontent.com/17078589/107881245-7d7d5580-6f1e-11eb-9f66-6ac589e5f95c.png"/></p>
1+
<p align="center"><img src="https://user-images.githubusercontent.com/17078589/120061980-49274280-c092-11eb-9916-4965f6c48388.png"/></p>
22

33
![image](https://user-images.githubusercontent.com/17078589/107857220-05ecef00-6e68-11eb-9fa0-506b32052dba.png)
44

@@ -17,7 +17,7 @@ Realized by USBIP and CMSIS-DAP protocol stack.
1717

1818
> 👉 5m distance, 100kb size firmware(Hex) flash test:
1919
20-
<p align="center"><img src="https://user-images.githubusercontent.com/17078589/107896674-e5a95700-6f71-11eb-90f7-bf7362045537.gif"/></p>
20+
<p align="center"><img src="https://user-images.githubusercontent.com/17078589/120925694-4bca0d80-c70c-11eb-91b7-ffa54770faea.gif"/></p>
2121

2222
## Feature
2323

@@ -49,6 +49,10 @@ The default connected WIFI SSID is `DAP` , password `12345678`
4949

5050
You can change `WIFI_SSID` and ` WIFI_PASS` in [wifi_configuration.h](main/wifi_configuration.h)
5151

52+
You can also specify your IP in the above file (We recommend using the static address binding feature of the router).
53+
54+
![WIFI](https://user-images.githubusercontent.com/17078589/118365659-517e7880-b5d0-11eb-9a5b-afe43348c2ba.png)
55+
5256
### Debugger
5357

5458

@@ -57,8 +61,7 @@ You can change `WIFI_SSID` and ` WIFI_PASS` in [wifi_configuration.h](main/wifi_
5761
| SWD | |
5862
|----------------|--------|
5963
| SWCLK | GPIO14 |
60-
| SWDIO | GPIO12 |
61-
| SWDIO_MOSI | GPIO13 |
64+
| SWDIO | GPIO13 |
6265
| LED\_CONNECTED | GPIO2 |
6366
| LED\_RUNNING | GPIO15 |
6467
| TVCC | 3V3 |
@@ -184,7 +187,7 @@ When you select max clock, we will take the following actions:
184187

185188
1. Use WinUSB Mode(enabled by default):
186189

187-
change `USE_WINUSB` macor in [USBd_config.h](components/USBIP/USBd_config.h)
190+
change `USE_WINUSB` macor in [dap_configuration.h](main/dap_configuration.h)
188191

189192

190193

@@ -234,9 +237,9 @@ Credits to the following project, people and organizations:
234237
> - https://github.com/cezanne/usbip-win for usbip windows
235238
236239

237-
- @HeavenSpree
238-
- @Zy19930907
239-
- @caiguang1997
240+
- [@HeavenSpree](https://www.github.com/HeavenSpree)
241+
- [@Zy19930907](https://www.github.com/Zy19930907)
242+
- [@caiguang1997](https://www.github.com/caiguang1997)
240243

241244

242245
## License

components/DAP/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
set(COMPONENT_ADD_INCLUDEDIRS "config include $ENV{IDF_PATH}/components/esp8266/include/esp8266/ $ENV{IDF_PATH}//components/esp_ringbuf/include/")
1+
set(COMPONENT_ADD_INCLUDEDIRS "config include $ENV{IDF_PATH}/components/esp8266/include/esp8266/ $ENV{IDF_PATH}/components/esp_ringbuf/include/")
22
set(COMPONENT_SRCS "./source/DAP.c ./source/DAP_vendor.c ./source/JTAG_DP.c ./source/SW_DP.c ./source/SWO.c ./source/uart_modify.c ./source/spi_op.c ./source/spi_switch.c ./source/dap_utility.c")
33

44

0 commit comments

Comments
 (0)