CubeMX STM32L433CC ETR2 Input bug?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-06 8:48 AM
Hi
When TIM2 of this device is configured according to the screenshot, the following code will be generated:
void HAL_TIM_Base_MspInit(TIM_HandleTypeDef* tim_baseHandle)
{
GPIO_InitTypeDef GPIO_InitStruct;
if(tim_baseHandle->Instance==TIM1)
{
/* USER CODE BEGIN TIM1_MspInit 0 */
/* USER CODE END TIM1_MspInit 0 */
/* Peripheral clock enable */
__HAL_RCC_TIM1_CLK_ENABLE();
/* USER CODE BEGIN TIM1_MspInit 1 */
/* USER CODE END TIM1_MspInit 1 */
}
else if(tim_baseHandle->Instance==TIM2)
{
/* USER CODE BEGIN TIM2_MspInit 0 */
/* USER CODE END TIM2_MspInit 0 */
/* Peripheral clock enable */
__HAL_RCC_TIM2_CLK_ENABLE();
/**TIM2 GPIO Configuration
PA0 ------> TIM2_ETR
*/
GPIO_InitStruct.Pin = GPIO_PIN_0;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
// This line is missing:
GPIO_InitStruct.Alternate = GPIO_AF14_TIM2;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
/* USER CODE BEGIN TIM2_MspInit 1 */
/* USER CODE END TIM2_MspInit 1 */
}
}
�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?
The line marked as missing becomes not generated leaving the pin as output.
Besides this error the wording within the Configuration of TIM2 -> GPIO is also missleading, telling the user
that this is an output pin. 'Maximum Output Speed: ...'
CubeMX 4.19
STM32Cube_FW_L4_V1.6.0.
Dieter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-03-07 3:19 AM
Hi
Br_ggemann.Dieter
,I will check this issue with our MX team & come back to you.Sorry for the inconvenience it may bring.
-Nesrine-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-05-09 1:16 AM
Hello
Br_ggemann.Dieter
.Thanks to highlight this issue. It will be delivered in CubeMX4.21 that will come very soon!
Please, upgrade your CubeMX release as soon as it is available.
BR. Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-11 12:09 PM
Hi.
I would like you to know this issue is still present in CubeMX 4.24 for STM32F207 (look at my post here:
)- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-02-12 1:18 AM
Hi
xt1
,This thread was posted some time ago and has been solved. Maybe, something else happens in CubeMX4. So let's discussthe issue you just reported on the thread you created
https://community.st.com/0D50X00009XkWjbSAF
.
BR. Jeanne
