The UUT LWip UDP STM32 system is designed for executing hardware tests on various peripherals through UDP communication. It provides a seamless interface for testing UART, ADC, Timer, SPI, and I2C peripherals in real time.
The system listens for commands over a UDP server, executes the specified tests, and sends results back to the client.
-
UDP Server:
- Listens on port
50007
for incoming test commands. - Responds with test results after execution.
- Listens on port
-
Supported Peripherals:
- UART: Data transmission and reception tests.
- ADC: Analog-to-digital conversion validation.
- Timer: Timer synchronization and accuracy tests.
- SPI: Serial Peripheral Interface communication tests.
- I2C: Inter-Integrated Circuit communication tests.
-
Real-Time Communication:
- Handles incoming commands and executes tests in a continuous loop.
Parameter | Value |
---|---|
IP Address | 192.168.7.2 |
Netmask | 255.255.255.0 |
Gateway | 192.168.7.1 |
Port | 50007 |
Note: The Gateway is not actively used but is required by the IDE.
- TX5 (PC_12) → RX2 (PD_6)
- RX5 (PD_2) → TX2 (PD_5)
- Ensure both
TIM3
andTIM2
are configured for periodic interrupts in CubeMX.
- SPI1 (Master):
PA5 (SCK)
↔PB10 (SCK)
PA6 (MISO)
↔PC2 (MISO)
PB5 (MOSI)
↔PC3 (MOSI)
- SPI2 (Slave):
PB10 (SCK)
↔PA5 (SCK)
PC2 (MISO)
↔PA6 (MISO)
PC3 (MOSI)
↔PB5 (MOSI)
- I2C2-SDA [PF0] <--> I2C4-SDA [PF15]
- I2C2-SCL [PF1] <--> I2C4-SCL [PF14]