The baudrate changes when I import a module

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
s_hatch
Posts: 24
Joined: Wed Nov 25, 2015 6:50 pm

The baudrate changes when I import a module

Post by s_hatch » Fri Feb 03, 2017 12:48 am

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?

s_hatch
Posts: 24
Joined: Wed Nov 25, 2015 6:50 pm

Re: The baudrate changes when I import a module

Post by s_hatch » Fri Feb 03, 2017 2:04 am

I found my problem. I had defined the baudrate in two places. It was a no-no. Anyway, I am back running again!

Post Reply