Skip to content

Commit 437866c

Browse files
committed
Add web flasher for ESP32-C6 esp-hosted over SDIO
1 parent 4ddc36d commit 437866c

10 files changed

+3767
-0
lines changed

c6-hosted/bootloader.bin

21.2 KB
Binary file not shown.

c6-hosted/esp-logo.e558125a.png

18.5 KB
Loading

c6-hosted/favicon.ee2246ac.ico

15 KB
Binary file not shown.

c6-hosted/flash.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
if [ "$#" -eq 1 ]; then
4+
esptool.py --port $1 --chip esp32c6 -b 2000000 --before default_reset --after hard_reset write_flash --flash_mode dio --flash_size 4MB --flash_freq 80m 0x0 ./bootloader.bin 0x8000 ./partition-table.bin 0xd000 ./ota_data_initial.bin 0x10000 ./network_adapter.bin
5+
else
6+
echo "Error: You must pass the port as argument."
7+
exit 1
8+
fi

c6-hosted/index.4e6113ae.js

Lines changed: 3685 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

c6-hosted/index.4e6113ae.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

c6-hosted/index.html

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>ESP32-C6 SDIO-Hosted</title>
6+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
7+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/xterm.css">
8+
<link href="https://fonts.googleapis.com/css?family=Orbitron" rel="stylesheet">
9+
<link rel="icon" href="favicon.ee2246ac.ico">
10+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/xterm.min.js"></script>
11+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/crypto-js.js"></script>
12+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
13+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
14+
</head>
15+
<body>
16+
<h1 align="center"><p><img src="esp-logo.e558125a.png" width="42" height="42" style="vertical-align: middle" crossorigin=""> ESP Tool</p></h1>
17+
<h4 align="center">A Serial Flasher utility for Espressif chips</h4>
18+
<div id="safariErr" style="display: none"><p align="center" style="color: red">This tool is not supported on Safari browser!</p>
19+
</div>
20+
<div class="container" id="main">
21+
<hr>
22+
<div id="program">
23+
24+
<h3> Program ESP32-C6 as SDIO ESP-Hosted adapter </h3>
25+
<input class="btn btn-success" type="button" id="connectButton" value="Connect">
26+
<input class="btn btn-primary" type="button" id="copyTraceButton" value="Copy Trace">
27+
<input class="btn btn-danger" type="button" id="disconnectButton" value="Disconnect">
28+
<input class="btn btn-warning" type="button" id="eraseButton" value="Erase Flash">
29+
<input class="btn btn-warning" type="button" id="resetButton" value="Reset">
30+
<label for="baudrates" id="lblBaudrate">Baudrate:</label>
31+
<select name="baudrates" id="baudrates">
32+
<option value="921600">921600</option>
33+
<option value="460800">460800</option>
34+
<option value="230400">230400</option>
35+
<option value="115200">115200</option>
36+
</select>
37+
<br>
38+
<label style="display: none" id="lblConnTo">Connected to device: </label>
39+
40+
<div id="files">
41+
<table class="table table-striped" id="fileTable">
42+
<thead class="thead-light">
43+
<tr>
44+
<th width="12%">Flash Address</th>
45+
<th width="30%">File</th>
46+
<th width="8%">Size</th>
47+
<th width="50%">Progress</th>
48+
</tr>
49+
</thead>
50+
<tbody id="tableBody">
51+
</tbody>
52+
</table>
53+
<input class="btn btn-success" type="button" id="programButton" value="Program">
54+
</div>
55+
56+
<output id="list"></output>
57+
58+
</div>
59+
<div id="terminal"></div>
60+
</div>
61+
<script src="index.4e6113ae.js" type="module"></script>
62+
<script>var isSafari = /constructor/i.test(window.HTMLElement) || function(p) {
63+
return p.toString() === "[object SafariRemoteNotification]";
64+
}(!window["safari"] || typeof safari !== "undefined" && window["safari"].pushNotification);
65+
if (isSafari) {
66+
document.getElementById("safariErr").style.display = "inline";
67+
document.getElementById("main").style.display = "none";
68+
}
69+
70+
</script>
71+
</body>
72+
</html>

c6-hosted/network_adapter.bin

1.04 MB
Binary file not shown.

c6-hosted/ota_data_initial.bin

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

c6-hosted/partition-table.bin

3 KB
Binary file not shown.

0 commit comments

Comments
 (0)