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.

DRA829J: AUTOSAR: CPSW2G MCAL driver integration on MCU1_0

Part Number: DRA829J

Dear Expert.

My customer is doing the porting of CPSW2G MCAL driver to AUTOSAR stack.

ETH&ETHTRCV should be the modules to port to AUTOSAR, and DMA will be used. there would be work flow like below:

Eth_openCpsw -> CpswDma_open - > UdmaInitPrms_init  -> UdmaOsalPrms_init (Set the function pointers)

Eth_openCpsw -> CpswDma_open - > Udma_init -> Udma_eventRegister - > Udma_osalRegisterIntr  & Udma_osalMutexCreate

 

From above, I see that the “OSAL_RegisterInterrupt” & “SemaphoreP_create” are called from the Ethernet driver context due to the UDMA so:

  1. Does that mean we need to include/compile the files of ”\ti\osal\src\nonos” in the SDK ?
    1. If the answer is no, do we need to implement these functions?
    2. If the answer is yes, have you tried this solution before (using different Os from TI RTOS) and shall it work out of the box?

 

Note:

  • OSAL register interrupt & OSAL create mutex are only examples for the triggered functions

 

Thanks a lot!

yong