[Cryptech-Commits] [sw/stm32] branch ft-alpha_board_bringup updated: Use baud rate 921600 instead of 115200.
git at cryptech.is
git at cryptech.is
Mon May 16 14:04:51 UTC 2016
This is an automated email from the git hooks/post-receive script.
fredrik at thulin.net pushed a commit to branch ft-alpha_board_bringup
in repository sw/stm32.
The following commit(s) were added to refs/heads/ft-alpha_board_bringup by this push:
new 5290f45 Use baud rate 921600 instead of 115200.
5290f45 is described below
commit 5290f45cb66c8021645a5024613eca0a70121226
Author: Fredrik Thulin <fredrik at thulin.net>
AuthorDate: Mon May 16 16:03:39 2016 +0200
Use baud rate 921600 instead of 115200.
Don't want to wait longer than necessary for firmware file transfers.
---
projects/cli-test/filetransfer | 6 ++++--
stm-uart.h | 4 ++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/projects/cli-test/filetransfer b/projects/cli-test/filetransfer
index 92b117f..451a1d9 100755
--- a/projects/cli-test/filetransfer
+++ b/projects/cli-test/filetransfer
@@ -10,7 +10,9 @@ from binascii import crc32
def _write(dst, data):
- dst.write(data)
+ for i in range(len(data)):
+ dst.write(data[i])
+ time.sleep(0.1)
if len(data) == 4:
print("Wrote 0x{:02x}{:02x}{:02x}{:02x}".format(ord(data[0]), ord(data[1]), ord(data[2]), ord(data[3])))
else:
@@ -49,7 +51,7 @@ def send_file(filename, device='/dev/ttyUSB0', initiate=True):
size = s.st_size
src = open(filename, 'rb')
- dst = serial.Serial(device, 115200, timeout=0.5)
+ dst = serial.Serial(device, 921600, timeout=1)
if initiate:
response = _execute(dst, 'filetransfer')
diff --git a/stm-uart.h b/stm-uart.h
index e4ee1c3..e63aaa4 100644
--- a/stm-uart.h
+++ b/stm-uart.h
@@ -37,8 +37,8 @@
#include "stm32f4xx_hal.h"
-#define USART_MGMT_BAUD_RATE 115200
-#define USART_USER_BAUD_RATE 115200
+#define USART_MGMT_BAUD_RATE 921600
+#define USART_USER_BAUD_RATE 921600
enum stm_uart_port {
STM_UART_USER,
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Commits
mailing list