6 years, 4 months ago.

How to Read/Write to UART4 in STM32L475E-IOT01A2 Board

Hi I have to use UART4(PA0 and PA1) can some only help me how to write.

I tried to Imitate Serial SerialUART(PA0,PA1); , It failed, please give me some pointer to start.

Thanking you, Raghavan

2 Answers

6 years, 4 months ago.

^

Accepted Answer
6 years, 4 months ago.

Hello Raghavan,

Did you get a compilation error? I believe you should write your code as so:

 Serial SerialUART(PA_0,PA_1);

You can check out the pin names for the board here:

https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/TARGET_DISCO_L475VG_IOT01A/PeripheralPins.c

Hope this helps!

-Karen, team Mbed

If this solved your question, please make sure to click the "Thanks" link below!

Thanks for the help, I D0 and D1 It is working

posted by raghavan p 11 Jul 2018