@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)
WeActSTM32F411CEU6 uart problem
Re: WeActSTM32F411CEU6 uart problem
dhylands,
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?
Thanks,
Dave
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:
led.toggle()
pyb.delay(5000)
uart.write('AT+RST')
Dave