Giter Club home page Giter Club logo

11_22_8_2's Introduction

Performance Measurement Test

This project will conduct a simple test for performance measurement.

##Performance Improvement Options There are several methods that can be considered for performance improvement, including:

  • Increasing MCU clock speed
  • Improving communication speed
  • Using DMA (which may not apply in some cases)
  • Improving communication logic
  • Please choose the appropriate method depending on the situation and implement it.

##Network Speed Test with Varying MCU Clock Speed In this test, we will measure the network speed changes according to the MCU clock speed.

This project performs performance testing using the Nucleo429ZI board. Note: The MAX main clock is 180. The communication speed is measured by adjusting the main clock, not the SPI.

Configuration To adjust the communication speed, modify the following code in the board/NUCLEO_XXXX/mpconfigboard.h file:

#define MICROPY_HW_CLK_PLLM (8)
#define MICROPY_HW_CLK_PLLN (336)
#define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV2)
#define MICROPY_HW_CLK_PLLQ (7)

To check if the configured function is applied correctly, add the following code to the port/stm32/main.c file:

printf("\r\n hello f429, sys clock is %d \r\n", HAL_RCC_GetSysClockFreq());

Performance Measurement Now measure the speed by adjusting the MCU clock as follows:

At too low of a clock speed, the speed will not be measured, and there is about a two-fold difference between 90MHz and 180 MHz.

45MHz: Not available

90MHz: 11.5 Mbit/sec

180MHz: 20.6 Mbit/sec

Note: Even if the MCU clock is high, 100% efficiency may not be achieved if it does not match the processing speed of the W5X00 chip.

Below are the specifications of the Nucleo board supported by W5300. Adjust according to the situation.

Feature STM32-F207ZG STM32-F429ZI STM32-F439ZI STM32-F722ZE STM32-F756ZG STM32-F767ZI
Core ARM Cortex-M3 ARM Cortex-M4 ARM Cortex-M4 ARM Cortex-M7 ARM Cortex-M7 ARM Cortex-M7
Max. clock speed 120 MHz 180 MHz 180 MHz 216 MHz 216 MHz 216 MHz
Flash memory 1 MB 2 MB 2 MB 512 KB 1.5 MB 2 MB
SRAM 128 KB 256 KB 256 KB 256 KB 512 KB 512 KB
GPIO pins 112 168 168 100 168 216
ADC channels 24 24 24 24 24 24
DAC channels 2 2 2 2 2 2
USART interfaces 5 4 4 4 5 5
SPI interfaces 4 6 6 4 4 6
I2C interfaces 3 4 4 4 4 4
Ethernet MAC Yes Yes Yes Yes Yes Yes
USB OTG FS/HS FS/HS FS/HS FS/HS FS/HS FS/HS
CAN interfaces 2 2 2 2 3 3
Timers 14 17 17 17 17 17
Real-time clock Yes Yes Yes Yes Yes Yes
Operating voltage 2.0V - 3.6V 1.7V - 3.6V 1.7V - 3.6V 1.7V - 3.6V 1.7V - 3.6V 1.7V - 3.6V
Pin Count 144 144 144 144 144 176

11_22_8_2's People

Contributors

scarletwiz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.