2025-05-26 1:28 AM
Code generation failed to generate
void SPD_TIM_M1_IRQHandler(void);
Because the comment section was not closed off with "-->"
Line 171 in stm32_mc_common_it.c.ftl:
<#else> <#--CondFamily_STM32F0 || CondFamily_STM32F4 || CondFamily_STM32F7 || CondFamily_STM32F3 || CondFamily_STM32G4 || CondFamily_STM32H5 || CondFamily_STM32H7 || CondFamily_STM32L4>
<#if (M1_ENCODER == true) >
void SPD_TIM_M1_IRQHandler(void);
Needs to be:
<#else> <#--CondFamily_STM32F0 || CondFamily_STM32F4 || CondFamily_STM32F7 || CondFamily_STM32F3 || CondFamily_STM32G4 || CondFamily_STM32H5 || CondFamily_STM32H7 || CondFamily_STM32L4 -->
<#if (M1_ENCODER == true) >
void SPD_TIM_M1_IRQHandler(void);
Error is only apparent when both Encoder and Hall sensor are used because of the double function name SPD_TIM_M1_IRQHandler
2025-05-26 8:16 AM
Hello @Zeno,
Thank you for your report.
Encoder/Hall speed sensing configuration has not been taken into account as usually Encoder and Hall are connected through the same input pins.
Using Main sensor set to Encoder and Auxiliary sensor set to Hall and renaming