WeActSTM32F411CEU6 uart problem

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
User avatar
Posts: 3507
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada

WeActSTM32F411CEU6 uart problem

Post by dhylands » Fri Jul 10, 2020 11:24 pm

@davef posted about the WEACT and UART1, and then the post was deleted.

The mpconfigboard.h file for the WEACT sets up the REPL to mirror on UART1:
https://github.com/mcauser/WEACT_F411CE ... .h#L35-L36

You'll want to comment out those 2 lines and rebuild the firmware.

In your sample code, you'll also want to pass in a baud rate when you initialize the UART, otherwise, it just returns the currently configured UART object, and since it wasn't configured yet, it won't work the way you expect.

With those 2 changes, I see the AT commands on the pin A9 (UART1_TX)

Posts: 139
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: WeActSTM32F411CEU6 uart problem

Post by davef » Sat Jul 11, 2020 12:13 am


Thanks for that. I deleted it because I thought I had found the original problem but I got that wrong!

I have also tried UART2 and initialising it, shouldn't that work without rebuilding?

Code: Select all

led = pyb.LED(1)
uart = machine.UART(2)
uart.init(baudrate=9600, bits=8, parity=None, stop=1)

while True:

Post Reply