Skip to content

Commit 258c6d7

Browse files
mozzwaldtschak909
andauthored
Add RS232 S3 partitions to build firmware zip and add RS232 S3 to nightly build (FujiNetWIFI#965)
* Add partition JSON to build firmware zip for ESP32S3 * Add RS232 (S3) to nightly build * Bump ESP32S3 platform version to 6.10.0 and add to ini files --------- Co-authored-by: Thomas Cherryhomes <[email protected]>
1 parent 86ba8ca commit 258c6d7

File tree

6 files changed

+70
-4
lines changed

6 files changed

+70
-4
lines changed

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: "ubuntu-latest"
1313
strategy:
1414
matrix:
15-
target-platform: [ATARI, ADAM, APPLE, IEC-LOLIN-D32, IEC-NUGGET, COCO, MASTERIES-REVAB, MASTERIES-REVA-SPIFIX]
15+
target-platform: [ATARI, ADAM, APPLE, IEC-LOLIN-D32, IEC-NUGGET, COCO, MASTERIES-REVAB, MASTERIES-REVA-SPIFIX, RS232]
1616

1717
steps:
1818
- name: Checkout Source
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[fujinet]
2+
build_platform = BUILD_RS232
3+
build_bus = rs232
4+
build_board = fujinet-rs232-s3
5+
6+
[env]
7+
upload_port = /dev/ttyACM0 ; Linux esp32s3
8+
monitor_port = /dev/ttyACM0 ; Linux esp32s3
9+
10+
[env:fujinet-rs232-s3]
11+
platform = espressif32@${fujinet.esp32s3_platform_version}
12+
platform_packages = ${fujinet.esp32s3_platform_packages}
13+
board = esp32-s3-wroom-1-n16r8
14+
build_type = debug
15+
build_flags =
16+
${env.build_flags}
17+
-D PINMAP_RS232_S3
18+
board_build.cmake_extra_args = -D CONFIG_IDF_TARGET_ESP32S3=1 ; extra arguments for CMake

build-platforms/platformio-fujinet-rs232-s3.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ upload_port = /dev/ttyACM0 ; Linux esp32s3
88
monitor_port = /dev/ttyACM0 ; Linux esp32s3
99

1010
[env:fujinet-rs232-s3]
11-
platform = espressif32@${fujinet.esp32_platform_version}
12-
platform_packages = ${fujinet.esp32_platform_packages}
11+
platform = espressif32@${fujinet.esp32s3_platform_version}
12+
platform_packages = ${fujinet.esp32s3_platform_packages}
1313
board = esp32-s3-wroom-1-n16r8
1414
build_type = debug
1515
build_flags =

build_firmwarezip.py

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,29 @@ def makezip(source, target, env):
137137
"offset": "0xA70000"
138138
}
139139
]
140+
elif config[environment]['board'] == "esp32-s3-wroom-1-n16r8":
141+
json_contents['files'] += [
142+
{
143+
"filename": "bootloader.bin",
144+
"offset": "0x0000"
145+
},
146+
{
147+
"filename": "partitions.bin",
148+
"offset": "0x8000"
149+
},
150+
{
151+
"filename": "firmware.bin",
152+
"offset": "0x10000"
153+
},
154+
{
155+
"filename": "update.bin",
156+
"offset": "0xA10000"
157+
},
158+
{
159+
"filename": "littlefs.bin",
160+
"offset": "0xA70000"
161+
}
162+
]
140163
elif config[environment]['board'] == "fujinet-v1-8mb":
141164
json_contents['files'] += [
142165
{
@@ -160,6 +183,29 @@ def makezip(source, target, env):
160183
"offset": "0x570000"
161184
}
162185
]
186+
elif config[environment]['board'] == "esp32-s3-wroom-1-n16r8":
187+
json_contents['files'] += [
188+
{
189+
"filename": "bootloader.bin",
190+
"offset": "0x0000"
191+
},
192+
{
193+
"filename": "partitions.bin",
194+
"offset": "0x8000"
195+
},
196+
{
197+
"filename": "firmware.bin",
198+
"offset": "0x10000"
199+
},
200+
{
201+
"filename": "update.bin",
202+
"offset": "0x510000"
203+
},
204+
{
205+
"filename": "littlefs.bin",
206+
"offset": "0x570000"
207+
}
208+
]
163209
elif config[environment]['board'] == "fujinet-v1-4mb":
164210
json_contents['files'] += [
165211
{

platformio-ini-files/platformio.common.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
;esp32_platform_version = 6.3.2
1717
esp32_platform_version = 6.10.0
1818
esp32_platform_packages =
19+
esp32s3_platform_version = 6.10.0
20+
esp32s3_platform_packages =
1921

2022
; SPIFFS/LITTLEFS
2123
flash_filesystem = FLASH_LITTLEFS

platformio-sample.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
esp32_platform_version = 6.10.0 ; latest
2424
esp32_platform_packages =
2525
; toolchain-riscv32-esp @ 8.4.0+2021r2-patch5 ; required for platform version < 5.3.0, remove this line when upgrading to the >=5.3.0
26-
esp32s3_platform_version = 6.3.2
26+
esp32s3_platform_version = 6.10.0
2727
esp32s3_platform_packages =
2828

2929
; Choose SPIFFS or LITTLEFS for the filesystem used on internal flash

0 commit comments

Comments
 (0)