Skip to content

Use custom arm toolchains #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 51 commits into from
Sep 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
37da3e1
Integrate upstream updates (#21)
Jason2866 Jun 16, 2022
73e9443
Update README.md
Jason2866 Jun 16, 2022
14e336b
Back to esptool.py v3.3.1
Jason2866 Jun 16, 2022
472b00c
Tasmota 204pre
Jason2866 Jun 29, 2022
4c5de63
Update esp32-s3-devkitc-1.json
Jason2866 Jul 1, 2022
ab5fd33
Core 2.0.4 / IDF 442 (#23)
Jason2866 Jul 6, 2022
667e2cc
Tasmota github for core 204
Jason2866 Jul 6, 2022
cb740a5
Update README.md
Jason2866 Jul 7, 2022
ed66cb7
Merge branch 'Tasmota/dev_apple' into Tasmota/204
Jason2866 Jul 7, 2022
f9a33fa
Tasmota Core 2.0.4.1 based on IDF 4.4.3
Jason2866 Jul 29, 2022
f50b772
stable 2.0.4.1
Jason2866 Jul 29, 2022
2556b29
FIx OCD flash, Esptool v4.1, Board updates (#24)
Jason2866 Jul 31, 2022
c93d422
Mode qio
Jason2866 Aug 3, 2022
ce43443
Allow overriding reset operation via project file
Jason2866 Aug 10, 2022
c0fb913
Fix bootloader flash mode
Jason2866 Aug 14, 2022
6e03048
Update platform.json
Jason2866 Aug 14, 2022
4a71d4b
Change in OCD firmware generation
Jason2866 Aug 16, 2022
fe5b206
qio and 8MB and faster upload
Jason2866 Aug 20, 2022
af36de6
Update boards manifests (#27)
Jason2866 Aug 23, 2022
197d6d3
8 MB
Jason2866 Sep 2, 2022
2cf6252
Tasmota/205
Jason2866 Sep 3, 2022
862d74e
PSK needed for wifi
Jason2866 Sep 3, 2022
6bb182b
Update Arduino / IDF
Jason2866 Sep 3, 2022
2cc34f0
Update platform.json
Jason2866 Sep 3, 2022
9b61ced
Update platform.json
Jason2866 Sep 4, 2022
dae9d9e
Merge branch 'Tasmota/205' into Tasmota/205
Jason2866 Sep 4, 2022
30e8ff1
Tasmota/205 (#28)
Jason2866 Sep 4, 2022
f5b5cf2
Update main.py
Jason2866 Sep 4, 2022
23b154c
Update platform.py
Jason2866 Sep 4, 2022
60db57a
flash mode `dout` for opi
Jason2866 Sep 4, 2022
a704a9a
rm litter
Jason2866 Sep 4, 2022
fb1821f
16MB flash
Jason2866 Sep 4, 2022
3841a39
framework now as zip
Jason2866 Sep 6, 2022
39bdf28
Apple ARM toolchain 8.4.0-2021r2-patch4
Jason2866 Sep 8, 2022
c33574d
more "pythonic"
Jason2866 Sep 9, 2022
87ecdd8
205merge (#29)
Jason2866 Sep 10, 2022
46ce39e
idf-component-manager
Jason2866 Sep 13, 2022
e558a8d
esp-idf-v4.4.3.3
Jason2866 Sep 13, 2022
8043d55
set correct `_get_board_boot_mode` for `opi`
Jason2866 Sep 14, 2022
5b65d9a
fix logic for replacing with `opi`
Jason2866 Sep 14, 2022
1472701
fix wrong pio syntax to get `build.boot`
Jason2866 Sep 14, 2022
bd60781
use opi bootloader for opi flash
Jason2866 Sep 14, 2022
cb755e3
esptool.py v4.3
Jason2866 Sep 14, 2022
eaf248c
rm redundant entrys
Jason2866 Sep 14, 2022
793c227
Tasmota IDF 4.4.3.3 / Esptool v4.3
Jason2866 Sep 14, 2022
18982ef
Tasmota Arduino build 998 / IDF 4.4.3.4
Jason2866 Sep 16, 2022
1e66085
Build 999
Jason2866 Sep 16, 2022
e15851f
Tasmota Core 2.0.5
Jason2866 Sep 17, 2022
59cdc4c
Merge branch 'Tasmota/205' into work
Jason2866 Sep 17, 2022
88af1a9
Tasmota 2.0.5
Jason2866 Sep 17, 2022
0606c33
Update README.md
Jason2866 Sep 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Espressif Systems is a privately held fabless semiconductor company. They provid

```ini
[env:stable]
platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.4.1/platform-espressif32-2.0.4.1.zip
platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.5/platform-espressif32-2.0.5.zip
board = ...
...
```
Expand Down
4 changes: 1 addition & 3 deletions boards/adafruit_feather_esp32s3.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"core": "esp32",
"extra_flags": [
"-DARDUINO_ADAFRUIT_FEATHER_ESP32S3",
"-DARDUINO_USB_CDC_ON_BOOT=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
"-DARDUINO_USB_CDC_ON_BOOT=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
Expand Down
4 changes: 1 addition & 3 deletions boards/adafruit_feather_esp32s3_nopsram.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"core": "esp32",
"extra_flags": [
"-DARDUINO_ADAFRUIT_FEATHER_ESP32S3_NOPSRAM",
"-DARDUINO_USB_CDC_ON_BOOT=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
"-DARDUINO_USB_CDC_ON_BOOT=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
Expand Down
4 changes: 1 addition & 3 deletions boards/adafruit_feather_esp32s3_tft.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"core": "esp32",
"extra_flags": [
"-DARDUINO_ADAFRUIT_FEATHER_ESP32S3_TFT",
"-DARDUINO_USB_CDC_ON_BOOT=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
"-DARDUINO_USB_CDC_ON_BOOT=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
Expand Down
4 changes: 1 addition & 3 deletions boards/adafruit_qtpy_esp32s3.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"core": "esp32",
"extra_flags": [
"-DARDUINO_ADAFRUIT_QTPY_ESP32S3_NOPSRAM",
"-DARDUINO_USB_CDC_ON_BOOT=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
"-DARDUINO_USB_CDC_ON_BOOT=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
Expand Down
4 changes: 1 addition & 3 deletions boards/adafruit_qtpy_esp32s3_nopsram.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"core": "esp32",
"extra_flags": [
"-DARDUINO_ADAFRUIT_QTPY_ESP32S3_NOPSRAM",
"-DARDUINO_USB_CDC_ON_BOOT=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
"-DARDUINO_USB_CDC_ON_BOOT=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
Expand Down
4 changes: 1 addition & 3 deletions boards/dfrobot_firebeetle2_esp32s3.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"core": "esp32",
"extra_flags": [
"-DARDUINO_ESP32S3_DEV",
"-DARDUINO_USB_MODE=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
"-DARDUINO_USB_MODE=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
Expand Down
4 changes: 1 addition & 3 deletions boards/esp32-s3-devkitc-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"core": "esp32",
"extra_flags": [
"-DARDUINO_ESP32S3_DEV",
"-DARDUINO_USB_MODE=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
"-DARDUINO_USB_MODE=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
Expand Down
6 changes: 2 additions & 4 deletions boards/esp32s3camlcd.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@
"boot": "opi",
"core": "esp32",
"extra_flags": [
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1",
"-DBOARD_HAS_PSRAM",
"-DARDUINO_ESP32S3_CAM_LCD",
"-DARDUINO_USB_MODE=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
"flash_mode": "qio",
"flash_mode": "dout",
"hwids": [
[
"0X303A",
Expand All @@ -38,7 +36,7 @@
],
"name": "ESP32S3 CAM LCD",
"upload": {
"flash_size": "4MB",
"flash_size": "16MB",
"maximum_ram_size": 327680,
"maximum_size": 16777216,
"require_upload_port": true,
Expand Down
4 changes: 1 addition & 3 deletions boards/lionbit.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
},
"core": "esp32",
"extra_flags": [
"-DARDUINO_LIONBIT",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
"-DARDUINO_LIONBIT"
],
"f_cpu": "240000000L",
"f_flash": "40000000L",
Expand Down
4 changes: 1 addition & 3 deletions boards/um_feathers3.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
"extra_flags": [
"-DARDUINO_FEATHERS3",
"-DBOARD_HAS_PSRAM",
"-DARDUINO_USB_CDC_ON_BOOT=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
"-DARDUINO_USB_CDC_ON_BOOT=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
Expand Down
4 changes: 1 addition & 3 deletions boards/um_pros3.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
"extra_flags": [
"-DARDUINO_PROS3",
"-DBOARD_HAS_PSRAM",
"-DARDUINO_USB_CDC_ON_BOOT=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
"-DARDUINO_USB_CDC_ON_BOOT=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
Expand Down
4 changes: 1 addition & 3 deletions boards/um_tinys3.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
"extra_flags": [
"-DARDUINO_TINYS3",
"-DBOARD_HAS_PSRAM",
"-DARDUINO_USB_CDC_ON_BOOT=1",
"-DARDUINO_RUNNING_CORE=1",
"-DARDUINO_EVENT_RUNNING_CORE=1"
"-DARDUINO_USB_CDC_ON_BOOT=1"
],
"f_cpu": "240000000L",
"f_flash": "80000000L",
Expand Down
1 change: 1 addition & 0 deletions builder/frameworks/espidf.py
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,7 @@ def _get_installed_pip_packages():
"future": ">=0.15.2",
"pyparsing": ">=2.0.3,<2.4.0",
"kconfiglib": "==13.7.1",
"idf-component-manager": "~=1.0"
}

installed_packages = _get_installed_pip_packages()
Expand Down
60 changes: 8 additions & 52 deletions builder/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,19 @@ def _get_board_f_flash(env):
def _get_board_flash_mode(env):
memory_type = env.BoardConfig().get("build.arduino.memory_type", "qio_qspi")
mode = env.subst("$BOARD_FLASH_MODE")
if mode == "qio" or mode == "qout":
return "dio"
if memory_type == "opi_opi" or memory_type == "opi_qspi":
if memory_type in ("opi_opi", "opi_qspi"):
return "dout"
if mode in ("qio", "qout"):
return "dio"
return mode


def _get_board_boot_mode(env):
return env.BoardConfig().get("build.boot", "$BOARD_FLASH_MODE")
memory_type = env.BoardConfig().get("build.arduino.memory_type", "qio_qspi")
build_boot = env.BoardConfig().get("build.boot", "$BOARD_FLASH_MODE")
if memory_type in ("opi_opi", "opi_qspi"):
build_boot = "opi"
return build_boot


def _parse_size(value):
Expand Down Expand Up @@ -324,47 +328,6 @@ def __fetch_fs_size(target, source, env):
"Calculate program size",
)

# Arduino core v2.0.4 contains updated bootloader images that have innacurate default
# headers. This results in bootloops if firmware is flashed via OpenOCD (e.g. debugging
# or uploading via debug tools). For this reason, before uploading or debugging we need
# to adjust the bootloader binary according to --flash-size and --flash-mode arguments.
# Note: This behavior doesn't occur if uploading is done via esptoolpy, as esptoolpy
# overrides the binary image headers before flashing.
bootloader_patch_required = bool(
env.get("PIOFRAMEWORK", []) == ["arduino"]
and (
"debug" in env.GetBuildType()
or env.subst("$UPLOAD_PROTOCOL") in board.get("debug.tools", {})
)
)

if bootloader_patch_required:
result = []
for offset, image in env.get("FLASH_EXTRA_IMAGES", []):
# 0x1000 for ESP32/S2, 0x0 for others
default_bootloader_offsets = ("0x0", "0x0000", "0x1000")
if offset in default_bootloader_offsets:
original_bootloader_path = env.subst(image)
image = join(env.subst("$BUILD_DIR"), "patched_bootloader.bin")
env.AddPreAction(
target_elf,
env.VerboseAction(" ".join([
'"$PYTHONEXE"',
join(platform.get_package_dir("tool-esptoolpy") or "", "esptool.py"),
"--chip", mcu, "merge_bin",
"-o", '"%s"' % image,
"--flash_mode", _get_board_flash_mode(env),
"--flash_freq", _get_board_f_flash(env),
"--flash_size", board.get("upload.flash_size", "4MB"),
"--target-offset", offset,
offset, '"%s"' % original_bootloader_path
]), "Updating bootloader headers")
)

result.append((offset, image))

env.Replace(FLASH_EXTRA_IMAGES=result)

#
# Target: Upload firmware or FS image
#
Expand Down Expand Up @@ -550,13 +513,6 @@ def __fetch_fs_size(target, source, env):
print("Warning! '-Wl,-T' option for specifying linker scripts is deprecated. "
"Please use 'board_build.ldscript' option in your 'platformio.ini' file.")

#
# A temporary workaround to propagate additional data to the debug configuration routine
#

Import("projenv")
projenv["INTEGRATION_EXTRA_DATA"] = env.get("INTEGRATION_EXTRA_DATA")

#
# Default targets
#
Expand Down
67 changes: 0 additions & 67 deletions examples/arduino-blink/.travis.yml

This file was deleted.

67 changes: 0 additions & 67 deletions examples/arduino-briki-internal-libs/.travis.yml

This file was deleted.

Loading