From 90e37ab7475b8296ca28cd60b7fe3c9f9515b18e Mon Sep 17 00:00:00 2001 From: Ben Lye Date: Sat, 31 Oct 2020 10:15:00 +0000 Subject: [PATCH] Quote the temp filename when testing flash size --- src/flash-multi/Devices/SerialDevice.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flash-multi/Devices/SerialDevice.cs b/src/flash-multi/Devices/SerialDevice.cs index 1d9d2ef..1487727 100644 --- a/src/flash-multi/Devices/SerialDevice.cs +++ b/src/flash-multi/Devices/SerialDevice.cs @@ -335,7 +335,7 @@ public static async Task WriteFlash(FlashMulti flashMulti, string fileName, stri string tempFileName = Path.GetTempFileName(); // Set the stm32flash.exe command line arguments for reading the 32B of flash above 64KB - commandArgs = $"-r {tempFileName} -S 0x8010000:32 -b {serialBaud} {comPort}"; + commandArgs = $"-r \"{tempFileName}\" -S 0x8010000:32 -b {serialBaud} {comPort}"; // Run the read command asynchronously and wait for it to finish await Task.Run(() => { returnCode = RunCommand.Run(flashMulti, command, commandArgs); });