Browse Source

0.8.121

* fix ESP32 factory image generation
pull/1541/head
lumapu 5 months ago
parent
commit
267d2dae26
  1. 7
      scripts/add_littlefs_binary.py
  2. 3
      src/CHANGES.md

7
scripts/add_littlefs_binary.py

@ -8,6 +8,7 @@ Import("env")
def build_littlefs():
if os.path.isfile('data/settings.json') == False:
return # nothing to do
result = subprocess.run(["pio", "run", "--target", "buildfs", "--environment", env['PIOENV']])
if result.returncode != 0:
print("Error building LittleFS:")
@ -23,14 +24,16 @@ def merge_bins():
PARTITIONS_OFFSET = 0x8000
FIRMWARE_OFFSET = 0x10000
flash_size = int(env.BoardConfig().get("upload.maximum_size", "4194304"))
if env['PIOENV'][:13] == "esp32-wroom32":
BOOTLOADER_OFFSET = 0x1000
flash_size = int(env.BoardConfig().get("upload.maximum_size", "1310720")) # 0x140000
app0_offset = 0x10000
if env['PIOENV'][:7] == "esp8266":
app0_offset = 0
elif env['PIOENV'][:7] == "esp8285":
app0_offset = 0
print(flash_size)
littlefs_offset = 0x290000
if flash_size == 0x330000:
littlefs_offset = 0x670000

3
src/CHANGES.md

@ -1,5 +1,8 @@
# Development Changes
## 0.8.121 - 2024-05-20
* fix ESP32 factory image generation
## 0.8.120 - 2024-05-18
* fix crash if invalid serial number was set -> inverter will be disabled automatically
* improved and fixed factory image generation

Loading…
Cancel
Save