Skip to content

Commit d38cf25

Browse files
authored
Fix platform names (#310)
1 parent dd71e21 commit d38cf25

File tree

5 files changed

+17
-11
lines changed

5 files changed

+17
-11
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ To update the firmware of a Silabs target with a local firmware file (for exampl
285285
This file has to be a binary file with a valid Booter and CLR from a build. No checks or validations are performed on the file(s) content.
286286

287287
```console
288-
nanoff --update --platform gg11 --binfile "C:\nf-interpreter\build\nanobooter-nanoclr.bin" --address 0x0
288+
nanoff --update --platform efm32 --binfile "C:\nf-interpreter\build\nanobooter-nanoclr.bin" --address 0x0
289289
```
290290

291291
### Deploy a managed application to a SL_STK3701A target

nanoFirmwareFlasher.Library/SupportedPlatform.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,15 @@ public enum SupportedPlatform
2222
/// TI Simplelink.
2323
/// </summary>
2424
ti_simplelink = 2,
25+
26+
/// <summary>
27+
/// Silabs EFM32 Gecko.
28+
/// </summary>
29+
efm32,
30+
2531
/// <summary>
26-
/// Silabs GG11.
32+
/// NXP.
2733
/// </summary>
28-
gg11
34+
nxp
2935
}
3036
}

nanoFirmwareFlasher.Tool/Options.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ public class Options
216216
"platform",
217217
Required = false,
218218
Default = null,
219-
HelpText = "Target platform. Acceptable values are: esp32, stm32, cc13x2, gg11.")]
219+
HelpText = "Target platform. Acceptable values are: esp32, stm32, cc13x2, efm32.")]
220220
public SupportedPlatform? Platform { get; set; }
221221

222222
/// <summary>

nanoFirmwareFlasher.Tool/Program.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ static async Task RunOptionsAndReturnExitCodeAsync(Options o)
487487
}
488488
else if (o.TargetName.StartsWith("SL"))
489489
{
490-
// candidates for Silabs GG11
491-
o.Platform = SupportedPlatform.gg11;
490+
// candidates for Silabs EFM32 Gecko
491+
o.Platform = SupportedPlatform.efm32;
492492
}
493493
else
494494
{
@@ -522,10 +522,10 @@ static async Task RunOptionsAndReturnExitCodeAsync(Options o)
522522
{
523523
o.Platform = SupportedPlatform.stm32;
524524
}
525-
// GG11 related
525+
// EFM32 related
526526
else if (o.ListJLinkDevices)
527527
{
528-
o.Platform = SupportedPlatform.gg11;
528+
o.Platform = SupportedPlatform.efm32;
529529
}
530530
// drivers install
531531
else if (o.TIInstallXdsDrivers)
@@ -708,7 +708,7 @@ static async Task RunOptionsAndReturnExitCodeAsync(Options o)
708708

709709
#region Silabs Giant Gecko S1 platform options
710710

711-
if (o.Platform == SupportedPlatform.gg11)
711+
if (o.Platform == SupportedPlatform.efm32)
712712
{
713713
var manager = new SilabsManager(o, _verbosityLevel);
714714

nanoFirmwareFlasher.Tool/SilabsManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public SilabsManager(Options options, VerbosityLevel verbosityLevel)
2222
throw new ArgumentNullException(nameof(options));
2323
}
2424

25-
if (options.Platform != SupportedPlatform.gg11)
25+
if (options.Platform != SupportedPlatform.efm32)
2626
{
2727
throw new NotSupportedException($"{nameof(options)} - {options.Platform}");
2828
}
@@ -38,7 +38,7 @@ public async Task<ExitCodes> ProcessAsync()
3838
{
3939
OutputWriter.ForegroundColor = ConsoleColor.Red;
4040
OutputWriter.WriteLine();
41-
OutputWriter.WriteLine($"Cannot determine the best matching target for a {SupportedPlatform.gg11} device.");
41+
OutputWriter.WriteLine($"Cannot determine the best matching target for a {SupportedPlatform.efm32} device.");
4242
OutputWriter.WriteLine();
4343
OutputWriter.ForegroundColor = ConsoleColor.White;
4444
return ExitCodes.OK;

0 commit comments

Comments
 (0)