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?
Solved! Go to Solution.
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:
I met the same problem as you, if you have solved this problem, can you share the solution with me, thanks very much!
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
please check the address of data that you want to send to HSE,It should be in sram data or dtcm