Skip to content

Commit 8ef25a7

Browse files
authoredFeb 15, 2024
New (2nd try) partition table for UNO R4 WiFi
- Remove fws partition - Increase certs partition using fws (thius would allow to load cactr_all.pem + custom certs) - Fix load address for app and boot_app binaries - Remove coredump and increase nvs
1 parent a32a4bb commit 8ef25a7

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed
 

‎boards.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,8 @@ arduino_unor4wifi_usb_bridge.serial.disableRTS=false
10941094

10951095
arduino_unor4wifi_usb_bridge.build.tarch=xtensa
10961096
arduino_unor4wifi_usb_bridge.build.bootloader_addr=0x0
1097+
arduino_unor4wifi_usb_bridge.build.boot_app0_addr=0x9000
1098+
arduino_unor4wifi_usb_bridge.build.app0_addr=0x50000
10971099
arduino_unor4wifi_usb_bridge.build.target=esp32s3
10981100
arduino_unor4wifi_usb_bridge.build.mcu=esp32s3
10991101
arduino_unor4wifi_usb_bridge.build.core=esp32

‎platform.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ build.flash_freq=80m
142142
build.boot=qio
143143
build.boot_freq={build.flash_freq}
144144
build.bootloader_addr=0x1000
145+
build.boot_app0_addr=0xe000
146+
build.app0_addr=0x10000
145147
build.custom_bootloader=bootloader
146148
build.custom_partitions=partitions
147149
build.code_debug=0
@@ -265,15 +267,15 @@ debug.server.openocd.script=debug.cfg
265267
tools.esptool_py.upload.protocol=serial
266268
tools.esptool_py.upload.params.verbose=
267269
tools.esptool_py.upload.params.quiet=
268-
tools.esptool_py.upload.pattern_args=--chip {build.mcu} --port "{serial.port}" --baud {upload.speed} {upload.flags} --before default_reset --after hard_reset write_flash {upload.erase_cmd} -z --flash_mode {build.flash_mode} --flash_freq {build.flash_freq} --flash_size {build.flash_size} {build.bootloader_addr} "{build.path}/{build.project_name}.bootloader.bin" 0x8000 "{build.path}/{build.project_name}.partitions.bin" 0xe000 "{runtime.platform.path}/tools/partitions/boot_app0.bin" 0x10000 "{build.path}/{build.project_name}.bin" {upload.extra_flags}
270+
tools.esptool_py.upload.pattern_args=--chip {build.mcu} --port "{serial.port}" --baud {upload.speed} {upload.flags} --before default_reset --after hard_reset write_flash {upload.erase_cmd} -z --flash_mode {build.flash_mode} --flash_freq {build.flash_freq} --flash_size {build.flash_size} {build.bootloader_addr} "{build.path}/{build.project_name}.bootloader.bin" 0x8000 "{build.path}/{build.project_name}.partitions.bin" {build.boot_app0_addr} "{runtime.platform.path}/tools/partitions/boot_app0.bin" {build.app0_addr} "{build.path}/{build.project_name}.bin" {upload.extra_flags}
269271
tools.esptool_py.upload.pattern="{path}/{cmd}" {upload.pattern_args}
270272
tools.esptool_py.upload.pattern.linux=python3 "{path}/{cmd}" {upload.pattern_args}
271273

272274
## Program Application
273275
## -------------------
274276
tools.esptool_py.program.params.verbose=
275277
tools.esptool_py.program.params.quiet=
276-
tools.esptool_py.program.pattern_args=--chip {build.mcu} --port "{serial.port}" --baud {upload.speed} {upload.flags} --before default_reset --after hard_reset write_flash -z --flash_mode {build.flash_mode} --flash_freq {build.flash_freq} --flash_size {build.flash_size} 0x10000 "{build.path}/{build.project_name}.bin"
278+
tools.esptool_py.program.pattern_args=--chip {build.mcu} --port "{serial.port}" --baud {upload.speed} {upload.flags} --before default_reset --after hard_reset write_flash -z --flash_mode {build.flash_mode} --flash_freq {build.flash_freq} --flash_size {build.flash_size} {build.bootloader_addr} "{build.path}/{build.project_name}.bin"
277279
tools.esptool_py.program.pattern="{path}/{cmd}" {program.pattern_args}
278280
tools.esptool_py.program.pattern.linux=python3 "{path}/{cmd}" {program.pattern_args}
279281

‎tools/partitions/unor4wifi.csv

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
# Name, Type, SubType, Offset, Size, Flags
2-
fws, data, nvs, 0x9000, 0x005000,
3-
otadata, data, ota, 0xe000, 0x002000,
4-
cert, data, undefined, 0x10000, 0x040000,
2+
otadata, data, ota, 0x9000, 0x002000,
3+
cert, data, undefined, 0xB000, 0x045000,
54
app0, app, ota_0, 0x50000, 0x190000,
65
app1, app, ota_1, 0x1E0000,0x190000,
76
spiffs, data, spiffs, 0x370000,0x080000,
8-
nvs, data, nvs, 0x3F0000,0x005000,
9-
coredump, data, coredump, 0x3F5000,0x00B000,
7+
nvs, data, nvs, 0x3F0000,0x010000,

0 commit comments

Comments
 (0)
Please sign in to comment.