cancel
Showing results for 
Search instead for 
Did you mean: 

HSO fail

quanhongwei
Associate II

Hi, Dear STM motor control experts:
   I am conducting experiments on the BLDC HSO project, and during project testing, the code in the SPD_init() function runs to IMPEDCORR_setParams(pHandle->pImpedCorr, &ImpedCorr_params_M1); No problem, but run the function IMPEDCORR_setRs_si(pHandle->pImpedCorr, flashParams->motor.rs); A hardware failure occurred, and the code jumps to HardFault.Handler(). Because the function is in a lib file, it cannot be analyzed. Please help analyze the cause.

Thanks!

Best regards.

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @quanhongwei,

As mentioned in the release note document available through Workbench tool > About > Documentations, the HSO feature is only available for the STM32G4xx series.

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

View solution in original post

5 REPLIES 5
GMA
ST Employee

Hello @quanhongwei,

Can you specify the reference of the boards and the version of MCSDK you used?

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

Hi, GMA:Thank you for your reply.
     I am using MCSDK6.3.2, referring to B-G473E-ZEST1S, but the circuit board is self-made. I am trying to use F405 to complete the function of G473, but an unexpected phenomenon occurred. The compilation has been approved. In addition to the above issue, there is now another problem: in the initial code of R3_Snit(), both R3_SMAChannelsInit (pHHandle) and R3_SoversimplingInit (pHHandle, pScale) are configured for DMA, causing DMA transfer exceptions. If one of the M0AR settings for DMA is removed, it can be run. I am trying to solve it, and if you have any good suggestions, I hope to receive help. Thank you!

Best regards.

add::
My self-made circuit board with G473 MCU has passed the HSO test and runs well, but the lowest frequency of the observer can only reach around 5Hz, but it already meets my needs,Now, I am trying to replace G473 with F405。

Hello @quanhongwei,

As mentioned in the release note document available through Workbench tool > About > Documentations, the HSO feature is only available for the STM32G4xx series.

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

Hi,GMA:Thanks for you!
I just want to confirm if the IMPEDCORR_setRs_Si (pHHandle ->pImpedFrr, flashParams ->motor. rs) function is hardware dependent, as I don't think it should be hardware dependent. The issue of oversampling has been resolved

Best regards.