Skip to content

Commit b136c17

Browse files
fix serial reset to baud while getting bus again
1 parent 2060dcf commit b136c17

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

BK7231Flasher/Flashers/BK7231Flasher.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,9 +708,10 @@ bool getBus()
708708
int loops = 100;
709709
bool bOk = false;
710710
addLog("Getting bus... (now, please do reboot by CEN or by power off/on)" + Environment.NewLine);
711+
// Chip bootloader always starts at 115200, ensure port matches
712+
serial.BaudRate = 115200;
711713
for (int tr = 0; tr < maxTries && !bOk; tr++)
712714
{
713-
// Hardware reset via RTS/DTR (same pattern as ESP32/RTL/ECR6600)
714715
serial.DtrEnable = true;
715716
serial.RtsEnable = true;
716717
Thread.Sleep(50);

0 commit comments

Comments
 (0)