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.

AM2634-Q1: [MCAL]hang in SPI init

Part Number: AM2634-Q1


Dear Team,

My customer faced hang issue in below GetCounterValue() and GetElapsedValue() function in SPI_init when it is integrated in AUTOSAR OS.

Can GetCounterValue() function be used in initialization before loading OS?

My customer understand these functions are implemented in Os.c of util directory(\\MCAL_AM263x_09.00.01.00\mcal\examples\Utils\am263\Os.c), but is worrying this function is conflict with the function of AutoSAR OS requiring system call and this cause system hang before OS initialized. 

In AutoSAR OS, it is implemented as below. So, they are worrying if it is OK to call GetCounterValue() function in the initialization functions of each MCAL module before loading OS and if there is any possibility to cause system hang by calling system call?

Please confirm if this GetCounterValue() function in init function of each MCAL module including SPI MCAL is OK at first. If this is OK, I'll try to get more details on their hang issue.

Thanks and Best Regards,

SI.