2023-07-01 10:49 PM
how to reproduce:
generated code:
/* USER CODE END TIM1_Init 1 */
TIM_InitStruct.Prescaler = 170-LL_TIM_ETR_FILTER_FDIV1_N2;
which is incorrect (and finally killed a motor driver). For HAL code generation, everything looks fine:
/* USER CODE END TIM1_Init 1 */
htim1.Instance = TIM1;
htim1.Init.Prescaler = 170-1;
Fun fact: Attaching the .ioc, .zip or .tar failed:
The attachment's tim1_bug.tar content type (application/x-tar) does not match its file extension and has been removed.
KnarfB
Solved! Go to Solution.
2023-07-03 02:22 AM
Hello @KnarfB
First let me thank you for posting.
I'm able to reproduce the described misbehavior. This issue need to be fixed from future releases. But in the meanwhile, you will need to change the cell parameter to "No check" as shown in the screenshot bellow.
Whit this been said, I will raise the issue internally for analysis and fix. Internal tickets number: 1156332 (This is an internal tracking number and is not accessible or usable by customers).
KR,
Semer.
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.
2023-07-03 02:22 AM
Hello @KnarfB
First let me thank you for posting.
I'm able to reproduce the described misbehavior. This issue need to be fixed from future releases. But in the meanwhile, you will need to change the cell parameter to "No check" as shown in the screenshot bellow.
Whit this been said, I will raise the issue internally for analysis and fix. Internal tickets number: 1156332 (This is an internal tracking number and is not accessible or usable by customers).
KR,
Semer.
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.