Skip to content

Commit 9f44af1

Browse files
authored
Fix chip type name for ESP32-S3 (#227)
***NO_CI***
1 parent edfa254 commit 9f44af1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nanoFirmwareFlasher.Library/Esp32Firmware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ internal async System.Threading.Tasks.Task<ExitCodes> DownloadAndExtractAsync(Es
8383
FlashPartitions = new Dictionary<int, string>
8484
{
8585
// bootloader goes to 0x1000, except for ESP32_C3 and ESP32_S3, which goes to 0x0
86-
{ deviceInfo.ChipType == "ESP32-C3" || deviceInfo.ChipType == "ESP32-SC3" ? 0x0 : 0x1000, Path.Combine(LocationPath, BootloaderPath) },
86+
{ deviceInfo.ChipType == "ESP32-C3" || deviceInfo.ChipType == "ESP32-S3" ? 0x0 : 0x1000, Path.Combine(LocationPath, BootloaderPath) },
8787

8888
// nanoCLR goes to 0x10000
8989
{ CLRAddress, Path.Combine(LocationPath, "nanoCLR.bin") },

nanoFirmwareFlasher.Library/EspTool.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ private PSRamAvailability FindPSRamAvailable()
286286
// compose bootloader partition
287287
var bootloaderPartition = new Dictionary<int, string>
288288
{
289-
// bootloader goes to 0x1000
290-
{ 0x1000, Path.Combine(Utilities.ExecutingPath, $"{_chipType}bootloader", "bootloader.bin") },
289+
// bootloader goes to 0x1000, except for ESP32_C3 and ESP32_S3, which goes to 0x0
290+
{ _chipType == "esp32c3" || _chipType == "esp32s3" ? 0x0 : 0x1000, Path.Combine(Utilities.ExecutingPath, $"{_chipType}bootloader", "bootloader.bin") },
291291

292292
// nanoCLR goes to 0x10000
293293
{ 0x10000, Path.Combine(Utilities.ExecutingPath, $"{_chipType}bootloader", "test_startup.bin") },

0 commit comments

Comments
 (0)