diff --git a/tools/ambiq/ambiq_bin2board.py b/tools/ambiq/ambiq_bin2board.py index c7dfbc35..27617fe3 100644 --- a/tools/ambiq/ambiq_bin2board.py +++ b/tools/ambiq/ambiq_bin2board.py @@ -426,6 +426,8 @@ def upload(args, verboseprint): #Give bootloader a chance to run and check bootload pin before communication begins. But must initiate com before bootloader timeout of 250ms. time.sleep(0.100) #100ms works well + ser.reset_input_buffer() # reset the input bufer to discard any UART traffic that the device may have generated + connect_device(ser, args, verboseprint) if(loadSuccess == True): diff --git a/tools/ambiq/linux/ambiq_bin2board b/tools/ambiq/linux/ambiq_bin2board index eec829da..2633563e 100755 Binary files a/tools/ambiq/linux/ambiq_bin2board and b/tools/ambiq/linux/ambiq_bin2board differ diff --git a/tools/ambiq/macosx/ambiq_bin2board b/tools/ambiq/macosx/ambiq_bin2board index 988f37be..e73d6d49 100755 Binary files a/tools/ambiq/macosx/ambiq_bin2board and b/tools/ambiq/macosx/ambiq_bin2board differ diff --git a/tools/ambiq/windows/ambiq_bin2board.exe b/tools/ambiq/windows/ambiq_bin2board.exe index b057e3a3..74b16738 100644 Binary files a/tools/ambiq/windows/ambiq_bin2board.exe and b/tools/ambiq/windows/ambiq_bin2board.exe differ