Page 1 of 1

The baudrate changes when I import a module

Posted: Fri Feb 03, 2017 12:48 am
by s_hatch
I am having trouble with my pyboard. I created a little module to test out the ability to write programs and import them into my pyboard.
The program is:

def t1():
print('Hello')

When I try to import the file, the main screen on my computer continues to work but the uart on UART 3 changes to some unknown baudrate. I am getting garbage on a screen I have attached over on the UART.

When I looked at boot.py, it was trashed. So I held down the user switch and reset it on power up to restore boot.py and main.py. How can I reload the whole system again over the internet?

Re: The baudrate changes when I import a module

Posted: Fri Feb 03, 2017 2:04 am
by s_hatch
I found my problem. I had defined the baudrate in two places. It was a no-no. Anyway, I am back running again!