Serial debug port not working

  • Hi,


    I wanted to use pins 4, 6, 8, 10, 18, 19 and 20 as GPIOs, so I commented the following lines in armstonea9r2q.dts:


    Code
    1. //#define CONFIG_ARMSTONEA9R2_SPI_B
    2. //#define CONFIG_ARMSTONEA9R2_UART_B_RTSCTS
    3. //#define CONFIG_ARMSTONEA9R2_UART_D


    Now I have those pins working fine as GPIOs, but I have lost the serial debug port (pins 53..61). I wonder if this issue is related in some way with the lines I commented or it has nothing to do with it.


    Thanks in advance!

  • Hi,


    you have commented out UART_D and this is the debug interface, so that´s the reason why you don´t see anything at the debug port.


    Pins 4, 6, 8, 10 SPI_B
    Pins 18, 20 UART_B
    Pin 19 UART_A_RTSCTS


    To get these pins as GPIO you have to comment out the following defines:
    //#define CONFIG_ARMSTONEA9R2_SPI_B
    //#define CONFIG_ARMSTONEA9R2_UART_B
    //#define CONFIG_ARMSTONEA9R2_UART_A_RTSCTS


    Your F&S Support Team

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Hi,


    after examine the situation I can see there is a bug between the naming of the device tree and the GPIO reference card of the armStoneA9R2. So the correct naming is written in the GPIO reference card. We will fix the device-tree naming in the next release. In the meantime you can change your device tree to correspond to the GPIO reference card. That means:

    Reference Card device tree
    UART_B UART2
    UART_D UART1
    UART_E UART3
    UART_C UART5
    UART_A UART4


    So you can change the different uart defines to the correct uart node.


    Example:
    current DT:

    Code
    1. #ifdef CONFIG_ARMSTONEA9R2_UART_A
    2. &uart2 {
    3. ...


    new DT:

    Code
    1. #ifdef CONFIG_ARMSTONEA9R2_UART_B
    2. &uart2 {
    3. ...


    Your F&S Support Team

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.