cancel
Showing results for 
Search instead for 
Did you mean: 

libImpedCorr.a fail

quanhongwei
Associate II

Hi, Dear STM experts:
I used MCSDK6.3.2 HSO for BLDC control when porting from stm32Q473 to stm32f405, but when using void IMPEDCORR_setLs_si(IMPEDCORR_Handle pHandle, const float_t Ls_H); A hardware failure occurred during the function, and the possibility of external parameter input has been ruled out. Therefore, I would like to confirm again that the libImpedCorr. a library file must rely on the stm32Q47x chip to run?If necessary, then I can only give up the transplant.Hope to receive a reply。

Best Regards.

1 ACCEPTED SOLUTION

Accepted Solutions
Gael A
ST Employee

Hello quanhongwei,

Although there should not be any hardware constraint to the portage of HSO from G4 to F4, please let me emphasise that this has not been tested on our side, and it won't be supported in any way.

Thank you for your understanding.

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.

Hope this will help,
Gaël A.

View solution in original post

3 REPLIES 3
Gael A
ST Employee

Hello quanhongwei,

Although there should not be any hardware constraint to the portage of HSO from G4 to F4, please let me emphasise that this has not been tested on our side, and it won't be supported in any way.

Thank you for your understanding.

If you agree with my answer, please consider accepting it by clicking on 'Accept as solution'.

Hope this will help,
Gaël A.

Hi,Gael A: 

Thank you for your reply!
     After multiple tests and examining the disassembly code, I have determined that when calling HSO related library files, the PC pointer points to an address without code, resulting in LR values of 0xFFFFFF9 and 0xFFFFFE9. I compared the code with the G473 chip (only retaining libImpedCorr. a and ImpedCorr. h), and only applied it to the function void IMPEDCORR_setLs_si(IMPEDCORR_Handle pHandle, const float_t Ls_H、void IMPEDCORR_setRs_si(IMPEDCORR_Handle pHandle, const float_t Rs_Ohm) Testing was conducted, with G473 functioning normally and F405 failing。
Thank you again for your reply. We can only temporarily give up the transplant.

Best Regards.

Hello @quanhongwei,

According to your response, we can assume that the response is accepted.
For other points, do not hesitate to start another thread.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA