2024-06-19 02:03 AM - edited 2024-06-19 02:04 AM
Good morning,
I am trying to follow the RTC_LSI calibration example project for the P-NUCLEO-WB55.
The GetLSIFrequency function has a line
HAL_TIMEx_RemapConfig(&htim16, TIM_TIM16_TI1_LSI);
However, TIM_TIM16_TI1_LSI is not defined in any of the source header files therefore it does not compile
Any help much appreciated
Solved! Go to Solution.
2024-06-19 02:40 AM
Hello @POliv
It works perfectly on my side. the TIM_TIM16_TI1_LSI is defined on the stm32wbxx_hal_tim_ex.h:
If you have downloaded this package from Our GitHub Repository (as a .zip file and not using the Git Commands) that may be the source of some compilation errors on the project.
Please try using the example imported from our repository on the ST website or from the GitHub using the Git commands.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-06-19 02:40 AM
Hello @POliv
It works perfectly on my side. the TIM_TIM16_TI1_LSI is defined on the stm32wbxx_hal_tim_ex.h:
If you have downloaded this package from Our GitHub Repository (as a .zip file and not using the Git Commands) that may be the source of some compilation errors on the project.
Please try using the example imported from our repository on the ST website or from the GitHub using the Git commands.
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-06-19 02:53 AM
Hi @STTwo-32
Thank you for your quick response, you are correct, the issue was caused by TIM16 Channel1 being set to Input Capture direct mode not Input Capture mode from Remap.