cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO F429ZI Ethernet config on CubeMX

zamek42
Associate II
Posted on April 25, 2017 at 10:16

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

#ethernet #nucleo429
13 REPLIES 13
chum
Associate II

Build done.

On eclipse , I click the Run button binary loaded on target hardware.

I struck with, after connecting ethernet to hardware how get the /home/user/en.STM32Cube_FW_F4_V1.24.0/STM32Cube_FW_F4_V1.24.0/Projects/STM32F429ZI-Nucleo/Applications/LwIP/LwIP_HTTP_Server_Netconn_RTOS application output through ethernet.

Build done.

On eclipse , I click the Run button binary loaded on target hardware.

I struck with, after connecting ethernet to hardware how get the /home/user/en.STM32Cube_FW_F4_V1.24.0/STM32Cube_FW_F4_V1.24.0/Projects/STM32F429ZI-Nucleo/Applications/LwIP/LwIP_HTTP_Server_Netconn_RTOS application output through ethernet.

chum
Associate II

I have doubt on final output.

After build and run :

Flavio Alves
Associate II

I haven't try this example before.

Which tool are you using? Maybe a better approach is to use Debug instead of Run, from Eclipse.