2022-07-07 08:38 PM
Hi, I am using STEVAL-SPIN32F04 dev kit to start my learning curve on STMC. I opened a example project of MC Workbench 5.Y.4 " and simply modify the speed sensor algorithm to observer+PLL and then I got compiling errors :
Error[Pe020]: identifier "stoPLLSensor" is undefined C:\Users\wangy78\Documents\temporary\6S_STEVAL32_SL_VM\6S_STEVAL3204_SL_VM\Src\register_interface.c 235
Error[Pe020]: identifier "stoPLLSensor" is undefined C:\Users\wangy78\Documents\temporary\6S_STEVAL32_SL_VM\6S_STEVAL3204_SL_VM\Src\register_interface.c 244
Error[Pe020]: identifier "stoPLLSensor" is undefined C:\Users\wangy78\Documents\temporary\6S_STEVAL32_SL_VM\6S_STEVAL3204_SL_VM\Src\register_interface.c 251
Error[Pe020]: identifier "stoPLLSensor" is undefined C:\Users\wangy78\Documents\temporary\6S_STEVAL32_SL_VM\6S_STEVAL3204_SL_VM\Src\register_interface.c 257
Error[Pe020]: identifier "stoPLLSensor" is undefined C:\Users\wangy78\Documents\temporary\6S_STEVAL32_SL_VM\6S_STEVAL3204_SL_VM\Src\register_interface.c 277
Error[Pe020]: identifier "stoPLLSensor" is undefined C:\Users\wangy78\Documents\temporary\6S_STEVAL32_SL_VM\6S_STEVAL3204_SL_VM\Src\register_interface.c 283
Error[Pe020]: identifier "stoPLLSensor" is undefined C:\Users\wangy78\Documents\temporary\6S_STEVAL32_SL_VM\6S_STEVAL3204_SL_VM\Src\register_interface.c 518
Error[Pe020]: identifier "stoPLLSensor" is undefined C:\Users\wangy78\Documents\temporary\6S_STEVAL32_SL_VM\6S_STEVAL3204_SL_VM\Src\register_interface.c 524
Error[Pe020]: identifier "stoPLLSensor" is undefined C:\Users\wangy78\Documents\temporary\6S_STEVAL32_SL_VM\6S_STEVAL3204_SL_VM\Src\register_interface.c 586
Error[Pe020]: identifier "stoPLLSensor" is undefined C:\Users\wangy78\Documents\temporary\6S_STEVAL32_SL_VM\6S_STEVAL3204_SL_VM\Src\register_interface.c 592
Error[Pe020]: identifier "RevUpCtrl_PhaseParams_t" is undefined C:\Users\wangy78\Documents\temporary\6S_STEVAL32_SL_VM\6S_STEVAL3204_SL_VM\Src\register_interface.c 723
Error[Pe020]: identifier "RUC_MAX_PHASE_NUMBER" is undefined C:\Users\wangy78\Documents\temporary\6S_STEVAL32_SL_VM\6S_STEVAL3204_SL_VM\Src\register_interface.c 726
Error[Pe020]: identifier "RevUpControl" is undefined C:\Users\wangy78\Documents\temporary\6S_STEVAL32_SL_VM\6S_STEVAL3204_SL_VM\Src\register_interface.c 735
Attached is the project file
Any help is greatly appreciated.
Thanks
2022-07-07 08:55 PM
I see, the observer + PLL algorithm works only for FOC. Not six-step control. It seems using the b-EMF to simulate the hall sensor signal input to calculate rotation speed. Am I correct?