Skip to main content
Associate
June 20, 2024
Solved

SDK 6.3 Hall Initialization Failing and Missing mp_hall_tuning.c File

I'm working on a project with the EVALSTDRIVE101, and my motor has Hall sensors. I'm able to use the Hall sensors with SDK 6.2, but with SDK 6.3, the processor runs to the HardFault_Handler routine if the Hall sensors are enabled (as an auxiliary speed sensor).

If the Hall sensor is enabled, the HT_Init function is called in the FOC_Init function in the mc_tasks_foc.c file. However, if I step into the function, a file opens indicating "Can't find a source file ... mp_hall_tuning.c." If I keep stepping through the disassembly, I eventually get to the fault routine. Something obviously broke in the new implementation.

Can someone tell me where the mp_hall_tuning.c file is and why I don't have access to it? Is it included in a precompiled statically compiled library or something?

This topic has been closed for replies.
CharlvdMBest answer
Associate
June 20, 2024

Thank you. Initializing the pMCIList pointer solved the problem.

Could you please still tell me where the missing mp_hall_tuning.c file is? Is it included in a precompiled statically compiled library?

 

3 replies

GMA
ST Technical Moderator
June 20, 2024

Hello @CharlvdM,

It is a known issue and it will be fixed on further WorkBench version.

Could you please have a look at this post? 
A correction is available to solve it.

If you agree with the answer, please accept it by clicking on 'Best answer'.Best regards.GMA
CharlvdMAuthorBest answer
Associate
June 20, 2024

Thank you. Initializing the pMCIList pointer solved the problem.

Could you please still tell me where the missing mp_hall_tuning.c file is? Is it included in a precompiled statically compiled library?

 

GMA
ST Technical Moderator
June 21, 2024

Hello @CharlvdM ,

You are right, it is part of compiled library.

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