Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
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:
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
Thanks, I asked too quick. I had a sudden change in hardware and didnt take the time to really read the docs.
posted by 23 Aug 2019I 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 10 Sep 2019