Skip to content

Increasing wrong character timeout to 30 to fix 'no annoucement' error. #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tools/artemis/artemis_svl.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# This script was originally written by Ambiq
# Modified April 2nd, 2019 by SparkFun to auto-bootloading
# Compiled to executable using pyInstaller
# pyinstaller --onefile artemis_uart_loader.py
# pyinstaller --onefile artemis_svl.py

import argparse
import serial
Expand Down Expand Up @@ -86,12 +86,12 @@ def main():

verboseprint("Waiting for command from bootloader")

# Wait for incoming char(5) indicating ability to boot
# Wait for incoming BL_COMMAND_ANNOUNCE
i = 0
response = ''
while len(response) == 0:
i = i + 1
if(i == 10):
if(i == 30):
print("No announcement from Artemis bootloader")
exit()

Expand Down
Binary file modified tools/artemis/windows/artemis_svl.exe
Binary file not shown.