cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicated void SystemClock_Config(void) ?

bbalcerzak
Associate
Posted on November 22, 2016 at 17:34

Hello,

could someone explain me why CubeMX 4.17 generates two: void SystemClock_Config(void); (one static)

/* Private function prototypes -----------------------------------------------*/
void SystemClock_Config(void);
void Error_Handler(void);
static void MX_GPIO_Init(void);
static void SystemClock_Config(void);
static void MX_DAC1_Init(void);
static void MX_DAC2_Init(void);
static void MX_USART2_UART_Init(void);
static void MX_USART3_UART_Init(void);
static void MX_SPI1_Init(void);

And then calls it 2 times?

 HAL_Init();

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

 /* Initialize all configured peripherals */
 MX_GPIO_Init();
 SystemClock_Config();
 MX_DAC1_Init();
 MX_DAC2_Init();
 MX_USART2_UART_Init();
 MX_USART3_UART_Init();
 MX_SPI1_Init();

System info: Fedora 23 MCU:STM32F373RCTx
3 REPLIES 3
slimen
Senior
Posted on November 23, 2016 at 09:46

Hello,

Share your .ioc file to review your configuration and help you on this.

Regards

bbalcerzak
Associate
Posted on November 23, 2016 at 12:31

I added .ioc and main.c files

Best regards

Bartek

Jeanne Joly
Senior III
Posted on May 05, 2017 at 09:19

Hi

Balcerzak.Bartosz

,

Sorry for the late response.

There is no more issue on the latest release. Please upgrade your CubeMX release with the latest.

BR. Eric