5.8.1 Configure the GPIO Toggling Script

To perform the GPIO toggling test, a specific qml file (GPIO-Toggling-usb.qml) is required and available in the following folder:

  • %DIR_PATH%\SOFTWARE\tests\GPIO

Before launching the script, the user must make sure, depending on the customer's GPIO configuration, that the I/O toggling will not affect the reliability and/or operability of the customer's application.

To change the GPIO list, open the "GPIO-Toggling-usb.qml" file using a text editor and adapt the GPIO list as required. The qml script can be adapted as follows:
  • Adapt the "output_pio_array" table:
    • Apply "0" when you select PIO from the PIOA bank.
    • Apply "1" when you select PIO from the PIOB bank.
    • Apply "2" when you select PIO from the PIOC bank.
    • Apply "3" when you select PIO from the PIOD bank.
  • Adapt the "output_pin_array" table
    • Apply the number corresponding to the PIO number (e.g. 25 for PA25).
  • Adapt the "number_of_toggling_cycle" variable as required.
  • Adapt the "number_of_io_toggling" variable. The applicable value is the number of I/Os listed in the two tables above.
  • Adapt the "delay_time" variable as required.

Save and close the file. No compilation is required.

The following is a toggling function example for the PB11, PB12 and PB13 PIOs.