cancel
Showing results for 
Search instead for 
Did you mean: 

NEED HELP TO SOLVE BUG/COMPILING ERROR: Bug in latest STM32CubeMX Version 6.1.0 Update

ZA_SHAIKH
Associate II

Hello,

Updated STM32CubeMX Version 6.1.0.

After an update, I opened my previous version .ioc file (CONTROLLER:STM32G070RB) and only changing baud-rate in UART parameter setting, generated MDK-ARM V_2.7 KEIL uVision file. I opened that generated file and compiled it.

BUT IT SHOWS 5 ERRORS WHICH I MENTIONED BELOW, WERE NOT CONCERNED TO THE CHANGES I MADE IN CUBE UART BAUD-RATE PARAMETER.

These errors are troubling me, please help me out from this bug !!!

ERROR MESSAGES:

*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Build target 'TemeratureRelay_V1' compiling system_stm32g0xx.c...

../Src/system_stm32g0xx.c(231): error: #20: identifier "RCC_CFGR_SWS_HSE" is undefined case RCC_CFGR_SWS_HSE: /* HSE used as system clock */

../Src/system_stm32g0xx.c(235): error: #20: identifier "RCC_CFGR_SWS_LSI" is undefined

   case RCC_CFGR_SWS_LSI: /* LSI used as system clock */

../Src/system_stm32g0xx.c(239): error: #20: identifier "RCC_CFGR_SWS_LSE" is undefined

   case RCC_CFGR_SWS_LSE: /* LSE used as system clock */

../Src/system_stm32g0xx.c(243): error: #20: identifier "RCC_CFGR_SWS_PLL" is undefined case RCC_CFGR_SWS_PLL: /* PLL used as system clock */

../Src/system_stm32g0xx.c(264): error: #20: identifier "RCC_CFGR_SWS_HSI" is undefined

   case RCC_CFGR_SWS_HSI: /* HSI used as system clock */

../Src/system_stm32g0xx.c: 0 warnings, 5 errors

Target not created.

Thanks & regards

Contact Mail Id: ZAINULAABEDIN.S@GMAIL.COM

3 REPLIES 3
MM..1
Chief II

Only tips, when you have old backup compare , or try delete file system_stm32g0xx... from folder. MX generates starting in main maybe.

ZA_SHAIKH
Associate II

thanks for your response.

but for time being I attempted to comment the whole function " void SystemCoreClockUpdate(void) " which was generating UNDEFINED IDENTIFIER ERROR. And as a result all error skipped by compiler.

The thing remains is that: I want to know, Whether I had done is OK or not? and Whether that function is having actual significance in my code or not?

thanks for your response.

but for time being I attempted to comment the whole function " void SystemCoreClockUpdate(void) " which was generating UNDEFINED IDENTIFIER ERROR. And as a result all error skipped by compiler.

The thing remains is that: I want to know, Whether I had done is OK or not? and Whether that function is having actual significance in my code or not?