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.

PROCESSOR-SDK-TDAX: The usage of Utils_tskCreate()

Part Number: PROCESSOR-SDK-TDAX

Hello exporter,

I am looking into radar_devCtrl code for MCSPI development.

I have some question about Utils_tskCreate() which is used to create RadarDevCtrl_tskMain().

There is a comment: Create link task, task remains in IDLE state. *_tskMain is called when a message command is received.

What does the "a message command is received" mean? who does send the "a message command "? what's the "a message command " value?

Regards,

Jason Li

  • Hi,

    What does the "a message command is received" mean?

    >> Generally when we create any task, it start running immediately. suppose the task is created using "Utils_tskCreate" then it will not run immediately & it will waiting some command, The command can be anything. Please refer "Utils_tskCreate" & "Utils_tskMain" function definition for more understanding.

     who does send the "a message command "?

    >> Here the GUI application "RADAR_STUDIO" is sending the command

    what's the "a message command " value?

    >> The command is "RADAR_DEV_CTRL_PROCESS_CMD", This macro value is 0X1000

    Thanks

    Gaviraju

  • Hello Gaviraju,

    Thank you for your response.

    So, is the "The command" a part of SPI message?

    If I want create my own Slave mcSPI task which triggered by SPI command, can I use the some way?

    Regards,

    Jason Li

  • Hi,

    The command" a part of SPI message?

    >> please check the function definition of "RadarDevCtrl_processCmd" for better understanding

    I also checked the definition, where they are calling this function "Utils_mcspiInit" , FPGA init, & other initialization.

    If I want create my own Slave mcSPI task which triggered by SPI command, can I use the some way?

    >> why do you want to create your own task? & why don't you use existing use-case demo application?

    Thanks

    Gaviraju

  • Hello Gaviraju,

    I need to implement TDA2px as a SPI slave device.

    As the traditional way, I just need to enable SPI interrupt mode, and handle SPI RX and TX with SPI ISR.

    But it looks like I need to create a link and a task via Utils_tskCreate() to handle SPI communication in Vision SDK project.

    I am confused that how the link connect to SPI communication? should I add other code to connect the link to mcSPI?

    There is too less doc about link and chain!

    Regards,

    Jason Li

  • Please refer to McSPI driver example under SDK\ti_components\drivers\pdk_xx_xx_xx\packages\ti\drv\bsp_lld\mcspi\examples for reference.

    Regards,
    Stanley