Skip to main content
ivainc
Associate III
January 1, 2022
Question

STM32CubeIDE v1.8 generation error

  • January 1, 2022
  • 3 replies
  • 1168 views
/**
 * @brief GPIO Initialization Function
 * @param None
 * @retval None
 */
static void MX_GPIO_Init(void)
{
 GPIO_InitTypeDef GPIO_InitStruct = {0};
 
 /* GPIO Ports Clock Enable */
 __HAL_RCC_GPIOB_CLK_ENABLE();
 __HAL_RCC_GPIOC_CLK_ENABLE();
 __HAL_RCC_GPIOA_CLK_ENABLE();
 
 /*Configure GPIO pin Output Level */
 HAL_GPIO_WritePin(RFSW_GPIO_Port, RFSW_Pin, GPIO_PIN_RESET);
 
 /*Configure GPIO pin : RFSW_Pin */
 GPIO_InitStruct.Pin = RFSW_Pin;
 GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
 GPIO_InitStruct.Pull = GPIO_NOPULL;
 GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
 HAL_GPIO_Init(RFSW_GPIO_Port, &GPIO_InitStruct);
}
 
/* USER CODE BEGIN 4 */
 
/* USER CODE END 4 */

Users cannot add any modification due to 'user' section is out of function.

This topic has been closed for replies.

3 replies

TDK
Super User
January 3, 2022

Include your IOC file or include sufficient information to duplicate the issue. Your post is lacking detail.

"If you feel a post has answered your question, please click ""Accept as Solution""."
ivainc
ivaincAuthor
Associate III
January 3, 2022

Stable to recreate with this IOC file. Main.c (generated) also included. The problem can be related to 'Enter User Label' process, where if international caracters is inputted the Cube is freezes and need to be restarted...

TDK
Super User
January 3, 2022

I didn't open it, but if unicode characters are crashing CubeMX, perhaps don't use unicode characters and stick with UTF-8.

It does not appear that GCC supports unicode.

"If you feel a post has answered your question, please click ""Accept as Solution""."