Skip to main content
Istvan Nagy
Visitor II
Mar 22, 2018 5:54 PM UTC
Question

CubeMX 4.25.0 bug report

Posted on March 22, 2018 at 18:54

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 */

}

    This topic has been closed for replies.

    3 replies

    Tim Wuu
    Visitor II
    Mar 31, 2018 5:51 AM UTC
    Posted on March 31, 2018 at 07:51

    If you are using PLL, it's probably it's missing

    RCC_OscInitStruct.PLL.

    PLLM in 

    SystemClock_Config().

    Mohamed Mansouri
    Visitor II
    Apr 25, 2018 2:39 PM UTC
    Posted on April 25, 2018 at 16:39

    Hi Istvan,

    Thanks for your feedback and sorry for late response.

    To figure out this issue, can you please specify your:

    • Keil version.

    • STM32Cube FW_L4 version.

    Additionally, it will be more helpful if you share your CubeMX project (.ioc) 

    Thanks in advance for helping to complete this thread.

    Best Regards,

    Mohamed

    NamSoo Kim
    Visitor II
    Sep 17, 2018 5:26 AM UTC

    I have the same problem..

    CubeMX 4.26.1(STM32Cube_FW_L1_V1.8.1) + STM32L152CDISCO board

    MX_LCD_Init()

    HAL_StatusTypeDef HAL_LCD_Init(LCD_HandleTypeDef *hlcd)

    .

    .

    .

     /*!< Wait Until the LCD Booster is ready */

     while(__HAL_LCD_GET_FLAG(hlcd, LCD_FLAG_RDY) == RESET)

     {

      if((HAL_GetTick() - tickstart ) > LCD_TIMEOUT_VALUE)

      {  

       hlcd->ErrorCode = HAL_LCD_ERROR_RDY;  

       return HAL_TIMEOUT;

      } 

     }

    HAL_TIMEOUT error!!!