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:
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
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.
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.
Hi mahmed106,
Glad that you figured your issue out.
Thanks, PM_Dialog