Main Content

Configure Ethernet Options in STM32CubeMX for STM32 Processor Based Boards

You must configure the Ethernet options in STM32CubeMX project for STM32H7xx and STM32Fxx based boards whenever you use TCP/UDP blocks in your model.

If your new to STM32CubeMX tool, see https://www.st.com/en/development-tools/stm32cubemx.html

Prerequisite

Complete the following tutorials:

Configure STM32H7xx Based Boards

  1. Click Launch to open the selected STM32CubeMX project in STM32CubeMX tool.

  2. In the STM32CubeMX tool, you can configure the peripherals for the selected STM32 processors.

  3. In the STM32CubeMX tool, go to System Core > CORTEX_M7 > Parameter Settings > Cortex Interface settings and set the CPU ICache and CPU DCache to Enabled.

  4. Go to Connectivity > ETH > Mode and select the Mode as RMII.

  5. Navigate to Configurations > NVIC Settings and enable the parameters Ethernet global interrupt and Ethernet wake-up interrupt through EXTI line 86.

  6. Go to ETH > Parameters Settings > Ethernet Configuration and ensure that the Rx Buffers Address is set to 0x30040200.

  7. Go to Middleware > LWIP > Mode and enable the Mode.

  8. In the Platform settings, set the Found solutions to LAN8742.

  9. Go to File and Click Save Project.

Configure STM32F7xx Based Boards

  1. Click Launch to open the selected STM32CubeMX project in STM32CubeMX tool.

  2. Go to Connectivity > ETH > Mode and select the Mode as RMII.

  3. Navigate to Configurations > NVIC Settings and enable the parameter Ethernet global interrupt.

  4. Go to Middleware > LWIP > Mode and enable the Mode.

  5. Go to File and Click Save Project.

See Also

| | | | |

Related Topics