This folder provides a CMSIS-Driver Validation template, designed to validate CMSIS-Drivers in a hardware-agnostic way.
It leverages the CMSIS-Toolbox Reference Applications and requires only a board support layer with drivers for the target hardware.
Note: WiFi drivers for WiFi Shields require also WiFi shield layer (see example for WiFi driver validation).
Note: Some board support layers do not have NSS pin for SPI configured for SPI mode so it might be necessary to configure NSS pin to respective SPI in the board layer (see example for SPI driver validation).
To select a driver for testing, use the Build Type option in the CMSIS_DV solution.
Note: Only one driver can be selected at a time.
- CAN
- Ethernet
- GPIO
- I2C
- MCI
- SPI
- USART
- USB_Device
- USB_Host
- WiFi
Note: Drivers shown in bold in the above list provide extensive driver validation.
Each driver includes a dedicated configuration file:
| Driver | Config File |
|---|---|
| CAN | DV_CAN_Config.h |
| Ethernet | DV_ETH_Config.h |
| GPIO | DV_GPIO_Config.h |
| I2C | DV_I2C_Config.h |
| MCI | DV_MCI_Config.h |
| SPI | DV_SPI_Config.h |
| USART | DV_USART_Config.h |
| USB_Device | DV_USBD_Config.h |
| USB_Host | DV_USBH_Config.h |
| WiFi | DV_WiFi_Config.h |
Detailed validation documentation for each driver:
Follow these steps to run the validation tests:
- In the CMSIS extension, click Create a New Solution.
- Select the Target Board.
- Under Templates, Reference Applications, and Examples, select Driver Validation (CMSIS-Driver Validation application).
- Choose Solution Base Folder, click Create.
- Select the Board Layer that provides required CMSIS Driver, click OK.
- In the Manage Solution, under Build Type select desired Driver for validation, click Save.
- Configure the Driver Tests in appropriate DV_..._Config.h file.
- Setup the required hardware
- Build and Run the application
For more details, see Setup documentation section.
Note: validation of SPI and USART drivers requires SPI_Server or USART_Server.
Note: validation of GPIO driver requires resistor between test pins.
Note: validation of WiFi driver requires SockServer running on a Windows PC connected to the same network as WiFi will connect to.