2017-04-25 01:16 AM
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 = 7When 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) = 5Where can I set these properties in CubeMX?thx Zamek
#ethernet #nucleo4292019-03-07 02:45 AM
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.
2019-03-07 02:46 AM
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.
2019-03-07 02:56 AM - edited 2023-11-20 09:40 AM
I have doubt on final output.
After build and run :
2019-03-07 03:57 AM
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.