This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5716: UART Console on Sitara AM5716

Part Number: AM5716
Other Parts Discussed in Thread: TMDXIDK5718, MAX3232

On wiki page "Processor SDK RTOS BOOT AM57x" I read: "PDK SBL prints messages on the UART Serial Console running on the host." I can't find any description on the Hardware User guide of the Sitara AM5716 about the UART Console.

Is there a default UART console or can I set it with pinmux? In the eval board TMDXIDK5718 they use UART3.

Is it possible to have this functionality through the USB2 of Sitara AM5716?

Best regards

Francesco

  • Hi,

    Is it possible to have this functionality through the USB2 of Sitara AM5716?


    No, the debug serial console is on UART interface. If you're designing a custom board you can choose different uart, but if you DON'T need UART3 for different application, I'd suggest you follow the EVM so you won't need to adjust your linux/rtos sources to match your custom board.

    Best Regards,
    Yordan
  • Dear Yordan,

    on my board I connected UART2 and UART5 of AM5716 to a connector as you can see in my slices of schematics below:

    (AM5716)

    (Connector P2)

    Through P2, I can connect either UART2 or UART5 to a MAX3232 powered by V3_3D (power supply from PMIC) and have the UART console to my PC. Is this correct?

    In which file do I have to set the UART number in order to use it as console (bootloader, kernel)?

    Best regards

    Francesco

  • Hi,

    There are a couple of files you need to modify.
    I. First you need to do the correct pinmuxing in u-boot -> board/ti/am57xx/mux_data.h

    II. Then you should enable the uart in u-boot ->
    1. include/configs/am57xx_evm.h:
    #define CONSOLEDEV "ttyO2"
    #define CONFIG_SYS_NS16550_COM1 UART1_BASE /* Base EVM has UART0 */
    #define CONFIG_SYS_NS16550_COM2 UART2_BASE /* UART2 */
    #define CONFIG_SYS_NS16550_COM3 UART3_BASE /* UART3 */
    2. arch/arm/dts/am57xx-beagle-x15-common.dtsi:
    chosen {
    stdout-path = &uart3;
    };
    .............
    &uart3 {
    status = "okay";
    interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
    <&dra7_pmx_core 0x3f8>;
    };

    III. In kernel, you need to modify the dts file arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi:
    chosen {
    stdout-path = &uart3;
    };

    .................
    &uart3 {
    status = "okay";
    interrupts-extended = <&crossbar_mpu GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
    <&dra7_pmx_core 0x3f8>;
    };

    Best Regards,
    Yordan
  • Thank you, Yordan.

    Best Regards,

    Francesco