2016-06-01 04:29 PM
Running stm32cubemx 4.15 and STM32Cube_FW_F3_V1.5.0 HAL
I can set the output of a comparator to a timer input capture (e.g. comp1 output to timer 1 input capture 1) but I can't then set up the timer input capture without selecting an input pin (which I don't have free so I have a conflict anyway). Is the HAL capable of handling this scenario even if CubeMX doesn't provide the choices and how do I prevent any project updates from overwriting any changes I might make to the timer setup.2016-06-02 02:17 AM
Hi frackers,
STM32CubeMx forced the configuration of TIM input pin which not recommended with the needed interconnection between COMP and TIM. It is a known bug and I report it internally to our CubeMx team.For your question :
The C code generated by STM32CubeMX provides user sections as illustrated below. They allow user C code to be inserted and preserved at next C code generation. User sections shall neither be moved nor renamed. Only the user sections defined by STM32CubeMX are preserved. If user created sections, they will be ignored and lost at next C code generation./* USER CODE BEGIN 0 */
(..)
/* USER CODE END 0 */
Thus, You should replace the functions and the related variables, declarations to the user generated sections to be preserved in the next generation.
-Hannibal-
2016-07-19 01:12 AM
Dear user,
This issue has been fixed in our latest version 4.16.
Best regards
2018-08-07 01:40 AM
Dear @stm32cube-t ,
The problem is not yet fixed I guess. I am using version 4.24 and tried the same thing, but the CubeMx is not allowing me. I had to comment out the GPIO init for the respective timer Input capture channel. Please have a look into that.
Best Regards
2018-08-07 02:23 AM
Hello,
Current CubeMX version is 4.26.1.
Do you confirm that issue isn't yet fixed with this version?
-Amel
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.