AnsweredAssumed Answered

NUCLEO F429ZI Ethernet config on CubeMX

Question asked by Zamek on Apr 25, 2017
Latest reply on May 18, 2017 by Aris Stathakis

Hi All,

I am fighting with F429nucleo and ethernet interface. The example of firmware works well (lwip webserver).

 

There is a pin PG2 RMII_RXERR which I cannot configure with CubeMX.

On CubeMX PG2 cannot set to ethernet, but the firmware example does it set to ethernet alternate mode:

 

GPIO_InitStructure.Speed = GPIO_SPEED_HIGH;
GPIO_InitStructure.Mode = GPIO_MODE_AF_PP;
GPIO_InitStructure.Pull = GPIO_NOPULL;
GPIO_InitStructure.Alternate = GPIO_AF11_ETH;

 

  /* Configure PG2, PG11, PG13 and PG14 */
  GPIO_InitStructure.Pin =  GPIO_PIN_2 | GPIO_PIN_11 | GPIO_PIN_13;
  HAL_GPIO_Init(GPIOG, &GPIO_InitStructure);

 

Another problem is setting clocks. Example settings:

@brief  System Clock Configuration
  *         The system Clock is configured as follow :
  *            System Clock source            = PLL (HSE)
  *            SYSCLK(Hz)                     = 180000000
  *            HCLK(Hz)                       = 180000000
  *            AHB Prescaler                  = 1
  *            APB1 Prescaler                 = 4
  *            APB2 Prescaler                 = 2
  *            HSE Frequency(Hz)              = 8000000
  *            PLL_M                          = 8
  *            PLL_N                          = 360
  *            PLL_P                          = 2
  *            PLL_Q                          = 7

 

  When I set PLL_Q to 7, it has an error, at least 8 is acceptable, and the output clock will be 45Mhz instead of 48Mhz.

 

And example said:

*            VDD(V)                         = 3.3
  *            Main regulator output voltage  = Scale1 mode
  *            Flash Latency(WS)              = 5


Where can I set these properties in CubeMX?

 

thx Zamek

Outcomes