Skip to content

Commit

Permalink
Fix chip type name for ESP32-S3 (#227)
Browse files Browse the repository at this point in the history
***NO_CI***
  • Loading branch information
josesimoes authored Jun 19, 2023
1 parent edfa254 commit 9f44af1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion nanoFirmwareFlasher.Library/Esp32Firmware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ internal async System.Threading.Tasks.Task<ExitCodes> DownloadAndExtractAsync(Es
FlashPartitions = new Dictionary<int, string>
{
// bootloader goes to 0x1000, except for ESP32_C3 and ESP32_S3, which goes to 0x0
{ deviceInfo.ChipType == "ESP32-C3" || deviceInfo.ChipType == "ESP32-SC3" ? 0x0 : 0x1000, Path.Combine(LocationPath, BootloaderPath) },
{ deviceInfo.ChipType == "ESP32-C3" || deviceInfo.ChipType == "ESP32-S3" ? 0x0 : 0x1000, Path.Combine(LocationPath, BootloaderPath) },

// nanoCLR goes to 0x10000
{ CLRAddress, Path.Combine(LocationPath, "nanoCLR.bin") },
Expand Down
4 changes: 2 additions & 2 deletions nanoFirmwareFlasher.Library/EspTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ private PSRamAvailability FindPSRamAvailable()
// compose bootloader partition
var bootloaderPartition = new Dictionary<int, string>
{
// bootloader goes to 0x1000
{ 0x1000, Path.Combine(Utilities.ExecutingPath, $"{_chipType}bootloader", "bootloader.bin") },
// bootloader goes to 0x1000, except for ESP32_C3 and ESP32_S3, which goes to 0x0
{ _chipType == "esp32c3" || _chipType == "esp32s3" ? 0x0 : 0x1000, Path.Combine(Utilities.ExecutingPath, $"{_chipType}bootloader", "bootloader.bin") },

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

0 comments on commit 9f44af1

Please sign in to comment.