3.4 Build the Application

  1. Compile “Zperf” application.

    $ west build -b nucleo_f413zh samples/net/zperf/

  2. Make sure the build directory is clean. If the application is built for different platforms such as the SAM E54 Xplained Pro evaluation kit pro, previously clean the directory.

    $ rm -rf build

  3. Run the following command.

    $ west build -t menuconfig

    The menu configuration GUI opens.

  4. Enable SPI DMA support by entering the below directory.

    (Top) → Device Drivers → Serial Peripheral Interface (SPI) bus drivers → STM32 MCU SPI controller driver -> STM32 MCU SPI DMA Support

  5. Make sure the “Generic MII PHY Driver” is disabled.

    (Top) → Device Drivers → Ethernet drivers → Ethernet PHY drivers → Generic MII PHY Driver

  6. Set maximum packet size value to 1460 by entering the below directory.

    (Top) → Subsystems and OS Services → Networking → Link layer and networking (including IP) → Network additional services → zperf library → Maximum packet size

  7. To use “Iperf” 2.0.5 version, enable CONFIG_NET_ZPERF_LEGACY_HEADER_COMPAT.

    (Top) → Subsystems and OS Services → Networking → Link layer and networking (including IP) → Network additional services → zperf library → Legacy iperf UDP header format

  8. Save and close the configuration.
  9. Build the application again.

    $ west build -b nucleo_f413zh samples/net/zperf/