Skip to content

Commit c2cb6ce

Browse files
authored
Fix connect step in STM32 update operation using JTAG (#67)
***NO_CI***
1 parent 6a52780 commit c2cb6ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nanoFirmwareFlasher/StmJtagDevice.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,11 @@ public ExitCodes FlashHexFiles(IList<string> files)
8686
}
8787

8888
// try to connect to device with RESET
89-
var cliOutput = RunSTM32ProgrammerCLI($"-c port=SWD sn={DeviceId} mode=UR reset=HWrst");
89+
var cliOutput = RunSTM32ProgrammerCLI($"-c port=SWD sn={DeviceId} mode=NORMAL");
9090

9191
if (cliOutput.Contains("Error:"))
9292
{
93+
Console.WriteLine("");
9394
return ExitCodes.E5002;
9495
}
9596

0 commit comments

Comments
 (0)