Problems compiling for nucleo 64 F072RB

I’m getting this error:

/home/formigola/Arduino/libraries/Simple_FOC/src/drivers/hardware_specific/stm32_mcu.cpp: In function ‘int findIndexOfFirstPinMapEntry(int)’:
/home/formigola/Arduino/libraries/Simple_FOC/src/drivers/hardware_specific/stm32_mcu.cpp:415:10: error: ‘PinMap_TIM’ was not declared in this scope; did you mean ‘PinMap_PWM’?
415 | while (PinMap_TIM[i].pin!=NC) {
| ^~~~~~~~~~
| PinMap_PWM
/home/formigola/Arduino/libraries/Simple_FOC/src/drivers/hardware_specific/stm32_mcu.cpp: In function ‘int findIndexOfLastPinMapEntry(int)’:
/home/formigola/Arduino/libraries/Simple_FOC/src/drivers/hardware_specific/stm32_mcu.cpp:427:10: error: ‘PinMap_TIM’ was not declared in this scope; did you mean ‘PinMap_PWM’?
427 | while (PinMap_TIM[i].pin!=NC) {
| ^~~~~~~~~~
| PinMap_PWM
/home/formigola/Arduino/libraries/Simple_FOC/src/drivers/hardware_specific/stm32_mcu.cpp:428:45: error: ‘ALTX_MASK’ was not declared in this scope
428 | if ( pinName == (PinMap_TIM[i].pin & ~ALTX_MASK)
| ^~~~~~~~~
/home/formigola/Arduino/libraries/Simple_FOC/src/drivers/hardware_specific/stm32_mcu.cpp: In function ‘int findBestTimerCombination(int, int, int*, PinMap**)’:
/home/formigola/Arduino/libraries/Simple_FOC/src/drivers/hardware_specific/stm32_mcu.cpp:455:36: error: ‘PinMap_TIM’ was not declared in this scope; did you mean ‘PinMap_PWM’?
455 | searchArray[index] = (PinMap*)&PinMap_TIM[i];
| ^~~~~~~~~~
| PinMap_PWM

exit status 1

Compilation error: exit status 1

Any ideas?
Thanks in advance for your help!

Hi @Matteo_Formigli , welcome to SimpleFOC!

This error looks like what you would get on an older framework version, or the maple core (which we don’t support).

Are you using the newest board manager URL from STMicrosystems?

And if you check in the board manager, do you have the newest framework version for STM32? The version should be 2.4.0?

Thanks a lot! I had an old framework version and I had to update the URL too.

1 Like