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.

TDA4VM: TDA4VM FreeRTOS bootup of Main Domain R5F Core

Part Number: TDA4VM

Hi:

I am studying vision_apps demo in the  j721s2 RTOS SDK.  In this demo, I have seen every Main Domain R5F Core has it own main function, and FreeRTOS  will start  to run on the core after entering into core specific main function.  However, I have go through all the codes in this vision app, and  haven't seen any codes which jump to the main function. So I am just wondering where is the code which jumps to the main function in this demo. Thanks very much for your reply.

  • Hi xin lei,

    I think this will be part of the PDK, mostly CSL layer, which also contains init code for the FreeRTOS. You could find it in ti-processor-sdk-rtos-j721s2-evm-08_06_00_11\pdk_j721s2_08_06_00_31\packages\ti\csl\arch\r5\src\startup folder.

    Regards,

    Brijesh

  • Hi Brijesh Jadav:

    Thanks very much for your reply. I  am going to boot up AUTOSAR Application in Main Domain R5F, as you said that in the rtos sdk there is some inti code for the FreeRTOS, so I suppose that if I want to boot up AUTOSAR Application in Main Domain R5F it is necessary to integrate autosar application codes with necessary startup code., and We use Vector AUTOSAR SIP. So  I am just wondering which parts of the inti codes is needed to integrate with Autosar Application codes, and since the program entry symbol of Vector AUTOSAR is brsStartupEntry insdead of main. So I have two questions that need you to clarify.

    1. Which part of the init codes in the rtos sdk is needed to integrated to boot up the Main Domain R5F Autosar.

    2. How to modify the init codes to make main R5F can jump to the entry point brsStartupEntry after startup

  • Hi xie lei,

    Typically vector AUTOSAR provides startup code for the R5F, isn't it already available from Vector, even for mcu1_0 ie mcu domain R5F? The startup routine should remain same for main domain R5F.  You might just require to change the memory map and/or TCM addresses.. 

    Regards,

    Brijesh