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.

RTOS/TDA2PXEVM: Issue for UART usage on ipu2

Part Number: TDA2PXEVM

Tool/software: TI-RTOS

I want to use UART5 on IPU2, and I try to write down UART driver SW based on "uart_intr" example which in path "TI_VisionSDK/ti_components/drivers/pdk_01_10_00_08/packages/ti/csl/example/uart".

But when I test my driver SW, I got some errors. Look picture below for details:

[HOST] [IPU2 ] 21.719636 s: ### XDC ASSERT - ERROR CALLBACK START ###
[HOST] [IPU2 ] 21.719727 s:
[HOST] [IPU2 ] 21.719849 s: E_hardFault: FORCED
[HOST] [IPU2 ] 21.719910 s:
[HOST] [IPU2 ] 21.719941 s: ### XDC ASSERT - ERROR CALLBACK END ###
[HOST] [IPU2 ] 21.720032 s:
[HOST] [IPU2 ] 21.720215 s:
[HOST] [IPU2 ] 21.720276 s: ### XDC ASSERT - ERROR CALLBACK START ###
[HOST] [IPU2 ] 21.720337 s:
[HOST] [IPU2 ] 21.720459 s: E_busFault: PRECISERR: Immediate Bus Fault, exact addr known, address: 4806600c
[HOST] [IPU2 ] 21.720551 s:
[HOST] [IPU2 ] 21.720581 s: ### XDC ASSERT - ERROR CALLBACK END ###
[HOST] [IPU2 ] 21.720673 s:

My driver function just like below:

APA_UART_InstInit();

APA_UART_DRV_Pinmux_Init();
/* Performing a module reset. */
UARTModuleReset(ruw_apaSocMcuUartBase);

/* Performing FIFO configurations. */
APA_UART_FIFOConfigure(ruw_apaSocMcuUartBase);

/* Performing Baud Rate settings. */
APA_UART_BaudRateSet(ruw_apaSocMcuUartBase);

/* Switching to Configuration Mode B. */
UARTRegConfigModeEnable(ruw_apaSocMcuUartBase, UART_REG_CONFIG_MODE_B);

/* Programming the Line Characteristics. */
UARTLineCharacConfig(ruw_apaSocMcuUartBase,
(UART_FRAME_WORD_LENGTH_8 | UART_FRAME_NUM_STB_1),
UART_PARITY_NONE);
/* Disabling write access to Divisor Latches. */
UARTDivisorLatchDisable(ruw_apaSocMcuUartBase);

I have tried to comment line by line, but all of errors I got just like above: PRECISEERR, and all of error address is on UART5 register address.

Additional: A15 core runs linux OS.

Thank you so much for your help~~

  • user3646486 said:

    Part Number: TDA2PXEVM

    Tool/software: TI-RTOS

    I want to use UART5 on IPU2, and I try to write down UART driver SW based on "uart_intr" example which in path "TI_VisionSDK/ti_components/drivers/pdk_01_10_00_08/packages/ti/csl/example/uart".

    But when I test my driver SW, I got some errors. Look picture below for details:

    [HOST] [IPU2 ] 21.719636 s: ### XDC ASSERT - ERROR CALLBACK START ###
    [HOST] [IPU2 ] 21.719727 s:
    [HOST] [IPU2 ] 21.719849 s: E_hardFault: FORCED
    [HOST] [IPU2 ] 21.719910 s:
    [HOST] [IPU2 ] 21.719941 s: ### XDC ASSERT - ERROR CALLBACK END ###
    [HOST] [IPU2 ] 21.720032 s:
    [HOST] [IPU2 ] 21.720215 s:
    [HOST] [IPU2 ] 21.720276 s: ### XDC ASSERT - ERROR CALLBACK START ###
    [HOST] [IPU2 ] 21.720337 s:
    [HOST] [IPU2 ] 21.720459 s: E_busFault: PRECISERR: Immediate Bus Fault, exact addr known, address: 4806600c
    [HOST] [IPU2 ] 21.720551 s:
    [HOST] [IPU2 ] 21.720581 s: ### XDC ASSERT - ERROR CALLBACK END ###
    [HOST] [IPU2 ] 21.720673 s:

    My driver function just like below:

    APA_UART_InstInit();

    APA_UART_DRV_Pinmux_Init();
    /* Performing a module reset. */
    UARTModuleReset(ruw_apaSocMcuUartBase);

    /* Performing FIFO configurations. */
    APA_UART_FIFOConfigure(ruw_apaSocMcuUartBase);

    /* Performing Baud Rate settings. */
    APA_UART_BaudRateSet(ruw_apaSocMcuUartBase);

    /* Switching to Configuration Mode B. */
    UARTRegConfigModeEnable(ruw_apaSocMcuUartBase, UART_REG_CONFIG_MODE_B);

    /* Programming the Line Characteristics. */
    UARTLineCharacConfig(ruw_apaSocMcuUartBase,
    (UART_FRAME_WORD_LENGTH_8 | UART_FRAME_NUM_STB_1),
    UART_PARITY_NONE);
    /* Disabling write access to Divisor Latches. */
    UARTDivisorLatchDisable(ruw_apaSocMcuUartBase);

    I have tried to comment line by line, but all of errors I got just like above: PRECISEERR, and all of error address is on UART5 register address.

    Additional: A15 core runs linux OS, first function call of UART initialization just get UART5 base address, value is 0x48066000.

    Thank you so much for your help~~

  • Hi,

    Can you check if UART5 is enabled in PRCM.

    Regards,
    Rishabh