cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H747XI Eval board: trying to blink LEDs by different cores, with Keil + CubeMX: should I do MX_GPIO_Init() by both cores or just one?

Kman
Associate

For now, both cores start simultaneously, then CM4 stops, CM7 wakes it up. Both main() functions have similar code but for different LEDs:

CM4:

 MX_GPIO_Init();
 
 while (1)
 
 {
 
		HAL_GPIO_TogglePin(myPK3_GPIO_Port,myPK3_Pin); //Toggle LED
 
		HAL_Delay(1000); //Delay 1 Seconds
 
 }

CM7:

  MX_GPIO_Init();
  while (1)
  {
		HAL_GPIO_TogglePin(myPK4_GPIO_Port,myPK4_Pin); //Toggle LED
		HAL_Delay(1000); //Delay 1 Seconds
  }

0 REPLIES 0