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: AM335x UART interrupt issue

Tool/software: TI-RTOS

hi,

I have issue in uart interrupt,

I got isr code in ti-processor-sdk-rtos-am335x-evm-05.03.00.07-Windows-x86-Install, in this sdk code ti/csl/example/uart/uart_intr/main.c  in this .c program so many function are attached to interrupt.c file.

in interrupt file CSL_a15EnableIrq() this function in .asm . for this .asm file ant .c file is available.

  • The CSL example for UART in the AM335x package is not applicable to the device that you are using. It is designed for AM57xx devices which uses Cortex A15 cores. The CSL package is a combined package for all Processors as the peripheral modules used on different devices get reused. For example MCSPI IP between AM335x, AM437x and AM572x is the same. 

    For UART usecase on AM335x, we recommend you to use the UART LLD implementation. If you are looking for bare-metal usage of the UART driver please refer to the code in Board diagnostics:

    pdk_am335x_1_0_13\packages\ti\board\diag

    Regards,

    Rahul

  • thank you rahul,

    i will check ..

    Regards,

    chandana

  • hi.,

    pdk_am335x_1_0_13\packages\ti\board\diag.., This code is  Supported  AM65XX processor .

    i need uart interrupt code for sitara AM335x processor.I checked UART  interrupt by  enabling callback function in  ti-processor-sdk-rtos-am335x-evm-05.03.00.07-Windows-x86-Install this sdk code that is not working.

    Regards,

    Chandana

  • Chandana,

    The diagnostics are supported for all Sitara class processors. If you go to the build folder or the documentation, you will see that support for AM335x is clearly indicated:

    Documentation indicating support for AM335x platforms:

    http://software-dl.ti.com/processor-sdk-rtos/esd/docs/latest/rtos/index_board.html#make-targets

    Build files for AM335x:

    pdk_am335x_1_0_xx\packages\ti\board\diag\uart\build

    If you look at the UART_soc.c file for AM335x in the location in the driver at location below, you will notice the UART driver will have interrupt and DMA mode enabled by default 

    pdk_am335x_1_0_xx\packages\ti\drv\uart\soc\am335x\UART_soc.c

    For call back examples, you can refer to the UART LLD test examples to see how the UART driver parameters can be changed. Please note that both blocking and callback mode use interrupts. The only advantage of callback mode is the processing doesn`t pend on the semaphore as in case of blocking mode.

     Regards,

    Rahul