cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE v1.8 generation error

ivainc
Associate III
/**
  * @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.

3 REPLIES 3
TDK
Guru

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
Associate III

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
Guru

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".