Forums - QCA4020 / CDB20 Multiple UARTs

4 posts / 0 new
Last post
QCA4020 / CDB20 Multiple UARTs
raniglas
Join Date: 21 Jan 20
Posts: 7
Posted: Thu, 2020-01-23 15:36

Hi,

Our solution requires 2 serial ports. We would also like to be able to continue to use the serial port for debugging and QCLI inteface while using another 2 ports for the solution.

In the documentation we see reference to GPIOs for 5 UARTs, namely M0&M4 UART0, M0&M4 UART2, HS_UART0_DM, HS_UART1_DM, HS_UART2_DM.

However, in the SDK there is only reference to 2 UARTs - Debug and HS.

Is there any documentation on how to access HS_UARTx_DM? if so, where can we find more information about it?

Many thanks,

Rani

  • Up0
  • Down0
manjulak Moderator
Join Date: 5 Dec 14
Posts: 33
Posted: Fri, 2020-01-24 16:34

QCA4020 has support for 2 UARTs (Debug and HSUART).

  • Up0
  • Down0
raniglas
Join Date: 21 Jan 20
Posts: 7
Posted: Tue, 2020-01-28 20:48

Hi manjulak,

We tried to map the Debug UART to GPIO24/25 by updating the GPIO configuration using qapi_TLMM_Get_Gpio functions.

However, it appears that even if we map GPIO24/25 to UART-M4 and set GPIO8/9 to GPIO (func0), then use qapi_UART_Open for debug uart, it is still using GPIO8/9 for debug uart.

Is there a way to use GPIO24/25 for the debug uart? using qapi? or any other way? if so, can you point us to the relevant documentation?

Many thanks,

Rani

  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Thu, 2020-01-30 15:40

CDB4020 device supports both HSUART and DebugUART.

In the current SDK, DebugUART uses GPIO8 and GPIO9. HSUART uses GPIO17 and GPIO60.

We can change the console port value under @QCLI_demo/src/qcli/pal.c 
+ PAL_CONSOLE_PORT  QAPI_UART_DEBUG_PORT_E // QAPI_UART_HS_PORT_E

When using QAPI_UART_DEBUG_PORT_E  , adjust the jumper settings as below:

  • J18-3 to J19-2 (GPIO 9)
  • J19-3 to J18-2 (GPIO 8) 


When using QAPI_UART_HS_PORT_E  , adjust the jumper settings as below:

 

  • J18-3 to J5-27 (GPIO 17)
  • J19-3 to J5-36 ( GPIO 60)
  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.