Cant find UART Pin mapping/ GPIO Connections of DA14681

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
5 posts / 0 new
Last post
mahmed106
Offline
Last seen:2 months 1 week ago
加入:2019-05-03 17:28
Cant find UART Pin mapping/ GPIO Connections of DA14681

Hi everyone , i am working on DA14681 Dev Kit PRO.

I have tested the example code named as "Peripherals Demo" , in which Dev Kit Pro Leds and other things can be controlled via UART.

I have searched alot to find the hardware pin mapping of DA14681 in the source code but could not find it,

Also datasheet of DA14681 says that it has 2 UART's configurable to GPIO so in my custom board i want to use these both uart for communicating to other peripherals, but i do not know which pin is TX and RX of both UARTs and where in the code they are defined. Thanks

Keywords:
Device:
PM_Dialog
Offline
Last seen:9 hours 33 min ago
工作人员
加入:2018-02-08 11:03
Hi mahmed106,

Hi mahmed106,

All the GPIO configurations and definitions are placed in periph_setup() function which is located in periph_setup.c source file. Please take a look at this function and in peripherals_demo, you will see that CFG_GPIO_UART2_TX_PORT/_PIN (P4_2) and CFG_GPIO_UART2_RX_PORT/_PIN (P4_1) are using for UART2.

Thanks, PM_Dialog

mahmed106
Offline
Last seen:2 months 1 week ago
加入:2019-05-03 17:28
Thanks i have found it, as

Thanks i have found it, as per example "Peripherals Demo" , i am trying to test option "Sharing UART" and also i have connected UART to USB Converter on my laptop, but there is no display on uart2. Can you please help me out.

mahmed106
Offline
Last seen:2 months 1 week ago
加入:2019-05-03 17:28
About my comment

About my comment

"Thanks i have found it, as per example "Peripherals Demo" , i am trying to test option "Sharing UART" and also i have connected UART to USB Converter on my laptop, but there is no display on uart2. Can you please help me out."

i have solved the issue,, i just changed pin4-2 to 4-0 and it worked like a charm, i am using dev kit pro , i donot know why it was not working before, but now it is fine.

PM_Dialog
Offline
Last seen:9 hours 33 min ago
工作人员
加入:2018-02-08 11:03
Hi mahmed106,

Hi mahmed106,

Glad that you figured your issue out.

Thanks, PM_Dialog