We are using S32K312,and the HSE function is running successful in FBL.
Now we want to porting the security for FBL to APP,but we find is loop in
while ((FALSE == Mu_Ip_IsResponseReady(Hse_Ip_apMuBase[u8MuInstance], u8MuChannel)) && (u32ElapsedTicks < u32TimeoutTicks))
in Hse_Ip_ServiceRequest when we call the Hse service.
But it is all right in FBL.I want to konw what may causes the HSE to be unresponsive?
已解决! 转到解答。
Hi David,
If you call the HSE service asynchronously, and you have the debugger attached to the MCU, you can try to remove the debugger and add a message print(via CAN or UART) or toggle an LED after this function
“while ((FALSE == Mu_Ip_IsResponseReady(Hse_Ip_apMuBase[u8MuInstance], u8MuChannel)) && (u32ElapsedTicks < u32TimeoutTicks))”
We found that sometimes the interrupts could not be entered when the debugger was attached.
You can also check whether the related interrupts are enabled or not:
Best Regards
WW
Hi David,
If you call the HSE service asynchronously, and you have the debugger attached to the MCU, you can try to remove the debugger and add a message print(via CAN or UART) or toggle an LED after this function
“while ((FALSE == Mu_Ip_IsResponseReady(Hse_Ip_apMuBase[u8MuInstance], u8MuChannel)) && (u32ElapsedTicks < u32TimeoutTicks))”
We found that sometimes the interrupts could not be entered when the debugger was attached.
You can also check whether the related interrupts are enabled or not:
Best Regards
WW