xDot/mDot UART differences
- This topic has 6 replies, 3 voices, and was last updated 8 years, 8 months ago by
Andrew Lindsay.
-
AuthorPosts
-
February 16, 2017 at 6:34 am #17231
Andrew Lindsay
ParticipantHi,
Are there any differences in the mbed Serial library between the xDot and mDot version? I’m using the xDot UART1 to communicate with a serial device at 9600 baud. The same code, with a change in the port pins works fine on the mDot but will not work on the xDot. Code compiles and runs but no data is being received. It is a simple serial passthrough application using the mbed Serial class.
Are there any known issues around this area?
I have tried this on both mbed 2 and mbed-os 5.
Thanks
Andrew
February 16, 2017 at 8:23 am #17232Mike Fiore
BlockedAndrew,
What pins are you using on both devices? Are the dots on DK boards or on custom boards?
What version of mbed-os are you using?
As I’m sure you well know, the mbed Serial code should work on any mbed device. However, the underlying implementation is a little different between the F4 and L1 families. See the following files:
https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_STM/TARGET_STM32L1/serial_api.c
https://github.com/ARMmbed/mbed-os/blob/master/targets/TARGET_STM/TARGET_STM32F4/serial_api.c
Cheers,
MikeFebruary 16, 2017 at 9:15 am #17233Andrew Lindsay
ParticipantIts the UART1 interface I’m using on the xDot not the USB interface.
February 16, 2017 at 9:21 am #17234Mike Fiore
BlockedAndrew,
I’m not sure what you meant by your last comment. It’s possible to have a dot on a DK and still use the UART interface.
What pins are you using on both devices? Are the dots on DK boards or on custom boards?
What version of mbed-os are you using?
Did anything else from my previous post help you out at all?
Cheers,
MikeFebruary 16, 2017 at 9:46 am #17237Andrew Lindsay
ParticipantYes, xdot is on the dev board, doing some evaluations before committing to a design. So far the xDot is losing out to other manufacturers. Its latest mbed-os and I also tried the latest mbed 2 but that wont compile for xdot anyway.
Pins on both devices are UART_TX and UART_RX on the xDot. I’ll check the rest and try again later. Not able to look just yet.
Thanks
Andrew
February 16, 2017 at 10:07 am #17241Peter Ferland
BlockedDouble check that you’ve soldered your connections on the DK to the correct pad – on the UART_TX and UART_RX pins are not right above each other, TX is the 2nd closest to the USB port on the bottom of the board not the closest.
I only ask because I did it the first time I connected a UART on the xDot…
February 17, 2017 at 4:10 am #17286Andrew Lindsay
ParticipantThanks Peter, I’ve got it connected fine as I’ve used a regular FTDI cable to test it.
Andrew
-
AuthorPosts
- You must be logged in to reply to this topic.