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/TDA3XEVM: Flashing sysbios uart code on tda3xevm

Part Number: TDA3XEVM
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hi,

I tried to flash the bsp_uart_example which is based in rtos code, I need to know system_printf belongs to uart console or ccs console. When I flashed it I didn't get any prints from the uart3. Please guide us to route the system_printf to uart console.

Thanks & Regards

Prakash

  • Hi Prakash,

    System_printf will send the prints to CCS console.
    Please refer to BSP loopback example to see how to route prints to UART console.

    Regards,
    Rishabh
  • Thanks Rishabh , I will look into it and get back to you
  • Sorry , Can you please tell, where the loopback examples present in vision sdk. We are new to sysbios platform.
  • Hi Prakash,

    Sure. Please post a reply if you face any issues.

    Regards,
    Rishabh
  • Hi,

    Loopback example is here: PROCESSOR_SDK_VISION_03_06_00_00\ti_components\drivers\pdk_01_10_02_07\packages\ti\drv\vps\examples\loopback

    Regards,
    Rishabh
  • Thanks Rishabh for the great support,

    Currently I'm trying to compile the uart example with some modifications using the command

    UInt32 tempFuncPtr;
    BspOsal_InitParams_t bspOsalInitPrms = {0};


    BspUtils_uartInit();
    tempFuncPtr = (UInt32) & BspUtils_uartPrint;
    bspOsalInitPrms.printFxn = (BspOsal_PrintFxn) (tempFuncPtr);
    BspOsal_Init(&bspOsalInitPrms);

    I added the above code in uart examples and compiled using below command,

    make -s bsp_examples_uart_echo BOARD=tda3xx-evm CORE=ipu1_0 BUILD_PROFILE=debug OS=linux

    Changed the sysboot to uart and Flashed the big endian binaries using mflash utility, then changed the sysboot to qspi . But I didn't get any outputs from three uarts. But I got only SBL outputs from uart3.

    Output

    TDA3xx SBL Boot

    Identified 15X15 Silicon

    DPLL Configuration Completed

    Clock Domain Configuration Completed

    Module Enable Configuration Completed

    TI EVM PAD Configuration Completed

    DDR Configuration Completed

    TDA3xx SOC Init Completed

    App Image Download Begins

    Manufacturer ID - 0x20
    Device ID - 0xba
    IPU1 CPU0 Image Load Completed

    App Image Download Completed

    *****************************************************************

    32K Timer is used to measure cycles, divide by 32K to get time in seconds

    Reset to SBL Init Cycles - 1739 (53.07 ms)

    SBL Initial Config Cycles - 208 (6.34 ms)

    SOC Init Cycles - 469 (14.31 ms)

    DDR Config Clock Cycles - 228 (6.95 ms)

    App Image Load Cycles - 1209 (36.89 ms)

    Slave Core Bootup Cycles - 6 (0.18 ms)

    SBL Boot-up Cycles - 2122 (64.75 ms)

    Time at which SBL started IPU1_0 - 3861 (117.82 ms)

    *****************************************************************

    No IPU1 CPU1 App Found, Switching to while Loop

    Jumping to IPU1 CPU0 App
  • Hi Prakash,

    Can you first try to run the loopback app with SBL?

    Regards,
    Rishabh
  • Hi Rishabh,

    This app runs fine without problems,

    No IPU1 CPU1 App Found, Switching to while Loop

    Jumping to IPU1 CPU0 App

    Build time : [18:07:49 May 6 2019]
    FVID2 Version : [FVID_02_01_00_01]
    BSP Version : [PDK_01_10_02_xx]
    Platform : [EVM]
    SOC : [TDA3XX]
    SOC Revision : [ES2.0]
    FT Revision : [0]
    Package : [15x15]
    Core : [M4]
    Board Detected : [TDA3XX BASE]
    EEPROM Base Board Name: [ADAS-LOW-DDR3]
    Base Board Revision : [REV D]
    Daughter Card Revision: [REV A]

    LOOPBACK_APP: LpbkApp_init() - DONE !!!
  • Can you tell me what I'm doing wrong with bsp_uart example?
  • Hi Prakash,

    The Uart echo example asks the user input on CCS console about which uart instance to be used for TDA3xx
    So the app might be waiting for input on CCS console.

    You can modify the app and specify the Uart instance to be used in below file.
    pdk\packages\ti\drv\bsp_lld\uart\examples\uart_echo\src\uartSample_main.c

    Regards,
    Prasad

  • Hi,

    if i understood correct, then Ti Rtos had the support to register the uart printf function with the below code,

    UInt32 tempFuncPtr;
    BspOsal_InitParams_t bspOsalInitPrms = {0};


    BspUtils_uartInit();
    tempFuncPtr = (UInt32) & BspUtils_uartPrint;
    bspOsalInitPrms.printFxn = (BspOsal_PrintFxn) (tempFuncPtr);
    BspOsal_Init(&bspOsalInitPrms);


    Anyhow, what function needs to use for printing in uart?
  • Hi,

    Can you tell how to change the uart in vps examples applications?
    I tried to change in bspUtils_uart.c , but its not changing for us. So can you please guide us?
  • Hi Prakash,

    Did you modify the example in order to hard code the expected input as mentioned in previous reply.

    Regards,
    Rishabh
  • Hi,

    Yes, we removed the scanf from the uart app and assigned the devid = 1 ; as well as devid=0; but nothing prints on uart0 and uart1.
  • Hi,

    Do you have the debugger access to the board?
    Can you run the urat example as is using the CCS and check if you are able to write to UART and read from it?

    Regards,
    Prasad

  • Thank you very much for the support.