5 years, 4 months ago.

Can I assign pins to a second UART

Can I assign 2 unused pins to create another UART? I need 2 on the arduino pins. I think this can be done, but thought no harm asking... Thanks, Rob

Question relating to:

The STM32F469 Discovery kit (32F469IDISCOVERY) allows users to easily develop applications with the STM32F469 high-performance MCUs with ARM®Cortex®-M4 core and Chrom-ART Accelerator™.

1 Answer

5 years, 4 months ago.

Hi Robert,

Please refer to the pin mapping file of F469NI here and check the pin you want to use https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F469xI/TARGET_DISCO_F469NI/PeripheralPins.c

And create a RawSerial instance https://os.mbed.com/docs/mbed-os/v5.13/apis/rawserial.html

Thanks, Desmond

Accepted Answer

Thanks, I asked too quick. I had a sudden change in hardware and didnt take the time to really read the docs.

posted by Robert Berry 23 Aug 2019

I have tried what you have suggested but the XBeeDM lib does not see to allow you to change the type of Serial. And even though the description of the board says 4 Uarts it appears only one is usable. At the moment no matter what I do I get a pin-map mismatch as I cant find 2 other pins that can be used as a serial port. Please help, this is holding up my project. Best Regards, Rob Berry

posted by Robert Berry 10 Sep 2019