Skip to content

Commit 9556169

Browse files
committed
Update Esptool and add some missing adjustments
1 parent 47c8af8 commit 9556169

File tree

10 files changed

+43
-30
lines changed

10 files changed

+43
-30
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
tools/xtensa-esp32-elf
22
tools/xtensa-esp32s2-elf
3+
tools/xtensa-esp32s3-elf
34
tools/riscv32-esp-elf
45
tools/dist
56
tools/esptool

boards.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ esp32c3.menu.DebugLevel.verbose.build.code_debug=5
163163

164164
esp32s3.name=ESP32S3 Dev Module
165165
esp32s3.vid.0=0x303a
166-
esp32s3.pid.0=0x0002
166+
esp32s3.pid.0=0x1001
167167

168168
esp32s3.upload.tool=esptool_py
169169
esp32s3.upload.maximum_size=1310720
@@ -177,7 +177,7 @@ esp32s3.serial.disableDTR=false
177177
esp32s3.serial.disableRTS=false
178178

179179
esp32s3.build.tarch=xtensa
180-
esp32s3.build.bootloader_addr=0x1000
180+
esp32s3.build.bootloader_addr=0x0
181181
esp32s3.build.target=esp32s3
182182
esp32s3.build.mcu=esp32s3
183183
esp32s3.build.core=esp32

cores/esp32/HWCDC.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414
#include "USB.h"
15-
#if CONFIG_IDF_TARGET_ESP32C3
15+
#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S3
1616

1717
#include "esp32-hal.h"
1818
#include "HWCDC.h"

cores/esp32/HWCDC.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#pragma once
1515

1616
#include "sdkconfig.h"
17-
#if CONFIG_IDF_TARGET_ESP32C3
17+
#if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32S3
1818

1919
#include <inttypes.h>
2020
#include "esp_event.h"

cores/esp32/USB.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ ESPUSB::~ESPUSB(){
155155

156156
bool ESPUSB::begin(){
157157
if(!_started){
158+
#if CONFIG_IDF_TARGET_ESP32S3
159+
//serialNumber(mac_str);
160+
#endif
158161
tinyusb_device_config_t tinyusb_device_config = {
159162
.vid = vid,
160163
.pid = pid,

cores/esp32/esp32-hal-cpu.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ bool setCpuFrequencyMhz(uint32_t cpu_freq_mhz){
231231
//Update FreeRTOS Tick Divisor
232232
#if CONFIG_IDF_TARGET_ESP32C3
233233

234+
#elif CONFIG_IDF_TARGET_ESP32S3
235+
234236
#else
235237
uint32_t fcpu = (conf.freq_mhz >= 80)?(conf.freq_mhz * MHZ):(apb);
236238
_xt_tick_divisor = fcpu / XT_TICK_PER_SEC;

cores/esp32/esp32-hal-psram.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
#elif CONFIG_IDF_TARGET_ESP32S2
2626
#include "esp32s2/spiram.h"
2727
#include "esp32s2/rom/cache.h"
28+
#elif CONFIG_IDF_TARGET_ESP32S3
29+
#include "esp32s3/spiram.h"
30+
#include "esp32s3/rom/cache.h"
2831
#else
2932
#error Target CONFIG_IDF_TARGET is not supported
3033
#endif

package/package_esp32_index.template.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
{
5757
"packager": "esp32",
5858
"name": "esptool_py",
59-
"version": "3.1.0"
59+
"version": "3.2.0"
6060
},
6161
{
6262
"packager": "esp32",
@@ -294,49 +294,49 @@
294294
},
295295
{
296296
"name": "esptool_py",
297-
"version": "3.1.0",
297+
"version": "3.2.0",
298298
"systems": [
299299
{
300300
"host": "i686-mingw32",
301-
"url": "https://github.com/espressif/arduino-esp32/releases/download/2.0.0-alpha1/esptool-3.1.0-windows.zip",
302-
"archiveFileName": "esptool-3.1.0-windows.zip",
303-
"checksum": "SHA-256:c9b4f9bc6e94db136c2545c87c00c7ab1441644ca0bac50811bc3c014e22514b",
304-
"size": "7411889"
301+
"url": "https://github.com/espressif/arduino-esp32/releases/download/2.0.2/esptool-3.2-windows.zip",
302+
"archiveFileName": "esptool-3.2-windows.zip",
303+
"checksum": "SHA-256:2a623c3e106751ecf255aae87e04d575693feedfd8afe219d5e66cdc84cd75c6",
304+
"size": "7428816"
305305
},
306306
{
307307
"host": "x86_64-apple-darwin",
308-
"url": "https://github.com/espressif/arduino-esp32/releases/download/2.0.0-alpha1/esptool-3.1.0-macos.tar.gz",
309-
"archiveFileName": "esptool-3.1.0-macos.tar.gz",
310-
"checksum": "SHA-256:1dffcb884665fb616779aea62a68f517aac251ea6dfe95560906c364d6ef3065",
311-
"size": "6776909"
308+
"url": "https://github.com/espressif/arduino-esp32/releases/download/2.0.2/esptool-3.2-macos.tar.gz",
309+
"archiveFileName": "esptool-3.2-macos.tar.gz",
310+
"checksum": "SHA-256:de1b38f420d7a7733ec055c0ad98eb51cb3405704fcaaf2d10ebf1f93cb58b6d",
311+
"size": "6937532"
312312
},
313313
{
314314
"host": "x86_64-pc-linux-gnu",
315-
"url": "https://github.com/espressif/arduino-esp32/releases/download/2.0.0-alpha1/esptool-3.1.0-linux.tar.gz",
316-
"archiveFileName": "esptool-3.1.0-linux.tar.gz",
317-
"checksum": "SHA-256:15eca9896a30e804aa24be6f7a06e39397541b8b09a7a4c48deb65f826e7baad",
318-
"size": "80550"
315+
"url": "https://github.com/espressif/arduino-esp32/releases/download/2.0.2/esptool-3.2-linux.tar.gz",
316+
"archiveFileName": "esptool-3.2-linux.tar.gz",
317+
"checksum": "SHA-256:ea46dbe911318f2a065a55dbe6e35d0a1e62018ed6ea80d1f3a5fff3d74aabc4",
318+
"size": "92234"
319319
},
320320
{
321321
"host": "i686-pc-linux-gnu",
322-
"url": "https://github.com/espressif/arduino-esp32/releases/download/2.0.0-alpha1/esptool-3.1.0-linux.tar.gz",
323-
"archiveFileName": "esptool-3.1.0-linux.tar.gz",
324-
"checksum": "SHA-256:15eca9896a30e804aa24be6f7a06e39397541b8b09a7a4c48deb65f826e7baad",
325-
"size": "80550"
322+
"url": "https://github.com/espressif/arduino-esp32/releases/download/2.0.2/esptool-3.2-linux.tar.gz",
323+
"archiveFileName": "esptool-3.2-linux.tar.gz",
324+
"checksum": "SHA-256:ea46dbe911318f2a065a55dbe6e35d0a1e62018ed6ea80d1f3a5fff3d74aabc4",
325+
"size": "92234"
326326
},
327327
{
328328
"host": "arm-linux-gnueabihf",
329-
"url": "https://github.com/espressif/arduino-esp32/releases/download/2.0.0-alpha1/esptool-3.1.0-linux.tar.gz",
330-
"archiveFileName": "esptool-3.1.0-linux.tar.gz",
331-
"checksum": "SHA-256:15eca9896a30e804aa24be6f7a06e39397541b8b09a7a4c48deb65f826e7baad",
332-
"size": "80550"
329+
"url": "https://github.com/espressif/arduino-esp32/releases/download/2.0.2/esptool-3.2-linux.tar.gz",
330+
"archiveFileName": "esptool-3.2-linux.tar.gz",
331+
"checksum": "SHA-256:ea46dbe911318f2a065a55dbe6e35d0a1e62018ed6ea80d1f3a5fff3d74aabc4",
332+
"size": "92234"
333333
},
334334
{
335335
"host": "aarch64-linux-gnu",
336-
"url": "https://github.com/espressif/arduino-esp32/releases/download/2.0.0-alpha1/esptool-3.1.0-linux.tar.gz",
337-
"archiveFileName": "esptool-3.1.0-linux.tar.gz",
338-
"checksum": "SHA-256:15eca9896a30e804aa24be6f7a06e39397541b8b09a7a4c48deb65f826e7baad",
339-
"size": "80550"
336+
"url": "https://github.com/espressif/arduino-esp32/releases/download/2.0.2/esptool-3.2-linux.tar.gz",
337+
"archiveFileName": "esptool-3.2-linux.tar.gz",
338+
"checksum": "SHA-256:ea46dbe911318f2a065a55dbe6e35d0a1e62018ed6ea80d1f3a5fff3d74aabc4",
339+
"size": "92234"
340340
}
341341
]
342342
},

platform.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ version=2.0.0
33

44
runtime.tools.xtensa-esp32-elf-gcc.path={runtime.platform.path}/tools/xtensa-esp32-elf
55
runtime.tools.xtensa-esp32s2-elf-gcc.path={runtime.platform.path}/tools/xtensa-esp32s2-elf
6+
runtime.tools.xtensa-esp32s3-elf-gcc.path={runtime.platform.path}/tools/xtensa-esp32s3-elf
67
runtime.tools.riscv32-esp-elf-gcc.path={runtime.platform.path}/tools/riscv32-esp-elf
78

89
tools.esptool_py.path={runtime.platform.path}/tools/esptool

variants/esp32s3/pins_arduino.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
#include <stdint.h>
55

6+
#define USB_VID 0x303a
7+
#define USB_PID 0x1001
8+
69
#define EXTERNAL_NUM_INTERRUPTS 46
710
#define NUM_DIGITAL_PINS 48
811
#define NUM_ANALOG_INPUTS 20

0 commit comments

Comments
 (0)