[Security]porting security to APP but loop in (FALSE == Mu_Ip_IsResponseReady)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[Security]porting security to APP but loop in (FALSE == Mu_Ip_IsResponseReady)

Jump to solution
592 Views
faiz_gear
Contributor II

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?

Tags (2)
0 Kudos
Reply
1 Solution
373 Views
WeoWang
NXP Employee
NXP Employee

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:

WeoWang_0-1723693222001.png

 

Best Regards

WW

View solution in original post

0 Kudos
Reply
4 Replies
454 Views
David2024
Contributor II

Hi:

    I met the same problem as you, if you have solved this problem, can you share the solution with  me, thanks very much!

0 Kudos
Reply
374 Views
WeoWang
NXP Employee
NXP Employee

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:

WeoWang_0-1723693222001.png

 

Best Regards

WW

0 Kudos
Reply
446 Views
faiz_gear
Contributor II

please check the address of data that you want to send to HSE,It should be in sram data or dtcm

0 Kudos
Reply
264 Views
FHY
Contributor I
Hi faiz_gear,
I encountered the same problem. Have you found a solution. Is it necessary to perform some configuration operations before using HSE capabilities? Could you please share the specific solution? Thank you very much.
0 Kudos
Reply