AnsweredAssumed Answered

CubeMX 4.25.0 bug report

Question asked by Istvan Nagy on Mar 22, 2018
Latest reply on Apr 25, 2018 by Mohamed Mansouri

Hello!

 

I have just updated CubeMX to 4.25.0 but none of the generated codes work within Keil. If i use code from older projects which were made by CubeMX 4.24 ,they work flawlessly but if i generate a simple initialization code with CubeMX and try even blink a LED on STM32L476 Discovery board it does not work.

Did anyone notice some troubles with the update?

 

int main(void)
{
  /* USER CODE BEGIN 1 */

 

  /* USER CODE END 1 */

 

  /* MCU Configuration----------------------------------------------------------*/

 

  /* Reset of all peripherals, Initializes the Flash interface and the Systick. */
  HAL_Init();

 

  /* USER CODE BEGIN Init */

 

  /* USER CODE END Init */

 

  /* Configure the system clock */
  SystemClock_Config();

 

  /* USER CODE BEGIN SysInit */

 

  /* USER CODE END SysInit */

 

  /* Initialize all configured peripherals */
  MX_GPIO_Init();
  MX_I2C1_Init();
  MX_I2C2_Init();
  MX_LCD_Init();
  MX_QUADSPI_Init();
  MX_SAI1_Init();
  MX_SPI2_Init();
  MX_USART2_UART_Init();
  MX_USB_HOST_Init();
  /* USER CODE BEGIN 2 */

 

  /* USER CODE END 2 */

 

  /* Infinite loop */
  /* USER CODE BEGIN WHILE */
  while (1)
  {
        HAL_Delay(300);
        HAL_GPIO_TogglePin(GPIOB, GPIO_PIN_2);

 

  /* USER CODE BEGIN 3 */

 

  }
  /* USER CODE END 3 */

 

}

Outcomes