AnsweredAssumed Answered

Duplicated void SystemClock_Config(void) ?

Question asked by Balcerzak.Bartosz on Nov 22, 2016
Latest reply on May 5, 2017 by Jeanne Joly
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

Attachments

Outcomes