2021-06-09 07:54 AM
Hello ST community,
I am use NUCLEO-G474RE, wanted to set up SYNCOUT for HRTIM. You can see the synchro configuration below:
Timer A is running, PWM is generated, but nothing happens to SYNCOUT. I start looking at hrtim initialization and notice that there is no configuration for the SYNCOUT pin (PB1).
To fixed the bug add the following code:
GPIO_InitTypeDef GPIO_InitStruct = {0};
GPIO_InitStruct.Pin = GPIO_PIN_1;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_VERY_HIGH;
GPIO_InitStruct.Alternate = GPIO_AF13_HRTIM1;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);
I am attaching a project with a fixed bug.
2021-06-09 08:08 AM
Hello @ATkac.3 ,
Thank your for your post,
I'll check it then I'll get back to you :)
Khouloud
2021-06-09 09:42 AM
Hi again @ATkac.3
You're right, in fact, the problem is at the GPIO level under CubeMX, which blocks the configuration of this signal and considers it without parameters and consequently it results the absence of these parameters in the generated code. I confirm the issue and it will be fixed.
Many Thanks @ATkac.3 for bringing this problem to our attention and for your contribution :)
Khouloud