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.

TIDEP-01012: Can I copy a usecase from RTOS to HLOS on tda2xx? (Vision SDK/ RADAR SDK)

Part Number: TIDEP-01012

I would like to copy "cascade_radar_beam_form" use case (which is located under "rtos" path below) to "hlos" and modify the related files accordingly. I would like to know if this is fundementally possible, and if not could you please advise what is the best method to use "cascade_radar_beam_form" in hlos?


rtos/radar/src/usecases/cascade_radar_beam_form

Thanks,

Shayan

  • Thanks for you reply. I notcied the question was breifly answered, but I didn't see the answer how this could be done in details. I would be appreciated if you could provide or point me to detailed guidance how to implement an "rtos" usecase in "hlos" environment.

    Additionally, there is still a bit of abmiguity with regard to the way RADAR configurations/params are being read on hlos side (it seems to be quite different from rtos). Would you also be able to elaborate on how  these Radar configurations (i.e startFreqVarHz = 0 from cascade_fe_params_mimo_master.txt ) are being parsed. I can't find out how the system translate these configurations.

    Thanks,

    Shayan

  • As mentioned in the post, there are 3 steps. 

    1. Add radar processing to the build. Currently, it is not build when A15 is running Linux.

      1. Please refer to ~/vision_sdk/docs/FeatureSpecificUserGuides/VisionSDK_UserGuide_BuildSystem.pdf to understand how to modify the build to include radar processing under ~\vision_sdk\apps\src\rtos\radar\src\alg_plugins.

    2. Add support in AppCtrl Task to handle Radar process Link create configuration.

      1. Add new command in AppCtrl_cmdHandler() under ~\vision_sdk\apps\src\rtos\common\chains_main_linux.c for setting radar processing link create params. Refer to how APP_CTRL_LINK_CMD_SET_RADAR_CAPTURE_PARAM is used to set Capture Link params.
    3. Create Radar use case on A15.

      1. You can reuse Radar Capture use case as base to add radar processing link.

    Essentially, the difference is Use case is created and started on A15 in Linux. However, the radar configuration is created on M4 side.

    The radar process link requires the information from radar configuration so you have to use AppCtrl Task to pass data between A15 and M4 to set up the create params for the radar processing link.

    For radar configurations, there is only one common parser which is on M4 for both RTOS or Linux SDK. A15 side only opens the file and pass the file pointer to M4.

    Regards,
    Stanley