The USART driver validation settings are available in the DV_USART_Config.h configuration file.
DV_USART_Config.h configuration file in Configuration Wizard view mode
Some settings depend on the test environment and need to be changed for proper operation of the USART driver validation.
Configuration settings
Driver_USART# selects the driver instance that will be tested.
For example if we want to test Driver_USART2
then this setting would be set to 2
.
Configuration section contains configuration of: Test Mode, USART Server and Tests settings:
- Test Mode can be set to Loopback or USART Server.
Loopback mode should be used for initial validation.
Loopback mode requires that Tx and Rx pins are connected together thus driver validation can test basic functionality.
For full compliance of the USART driver with the CMSIS-Driver USART specification the USART Server Test Mode has to be used.
- USART Server settings are relevant if Test Mode: USART Server is selected.
These settings specify communication settings at which Driver Validation communicates with the USART Server
and must be same as configured on the USART Server.
- Some settings are fixed and cannot be changed, these are the following ones:
- Baudrate: 115200
- Data Bits: 8
- Parity: None
- Stop Bits: 1
- Flow Control: None
- Only configurable setting for the USART Server is:
- Mode setting specifies the mode for communication with USART Server.
Different modes require different physical connection and also USART Server must use same setting.
For details on modes please check USART Server connection.
- Tests settings specify tests configuration:
- Default settings specifies the default settings used in the data exchange tests.
Usually, one feature is tested by executing the data exchange while all other parameters are used as default.
For details on which parameters are used as default in each test function please refer to Data Exchange functions documentation.
- Baudrate settings specifies minimum and maximum bus speeds at which data transfer will be executed.
These settings are used by the USART_Baudrate_Min and USART_Baudrate_Max test functions.
- Number of Items settings specifies a few different number of items to be tested.
These settings are used by the USART_Number_Of_Items test function which tests that odd and unusual number of items are transferred correctly according to the CMSIS-Driver specification.
Tests section contains selection of tests to be executed:
- Driver Management allows enabling or disabling of the whole driver management group of test functions.
Each test function in this group can be enabled or disabled individually, for details on tests performed by each test function please refer to Driver Management documentation.
- Data Exchange allows enabling or disabling of the whole data exchange group of test functions.
Each test function in this group can be enabled or disabled individually, for details on tests performed by each test function please refer to Data Exchange documentation.
- Modem allows enabling or disabling of the whole modem lines group of test functions.
Each test function in this group can be enabled or disabled individually, for details on tests performed by each test function please refer to Modem Lines documentation.
- Event allows enabling or disabling of the whole event group of test functions.
Each test function in this group can be enabled or disabled individually, for details on tests performed by each test function please refer to Event documentation.