gadget-kspconsole/unicore-mx/tests/gadget-zero
Daniele Lacamera b8a7ffcd31 Initial import
2023-11-27 15:16:45 +01:00
..
.gitignore Initial import 2023-11-27 15:16:45 +01:00
main-stm32f4disco.c Initial import 2023-11-27 15:16:45 +01:00
main-stm32f072disco.c Initial import 2023-11-27 15:16:45 +01:00
main-stm32f103-generic.c Initial import 2023-11-27 15:16:45 +01:00
main-stm32f429i-disco.c Initial import 2023-11-27 15:16:45 +01:00
main-stm32l1-generic.c Initial import 2023-11-27 15:16:45 +01:00
main-stm32l053disco.c Initial import 2023-11-27 15:16:45 +01:00
Makefile.stm32f4disco Initial import 2023-11-27 15:16:45 +01:00
Makefile.stm32f072disco Initial import 2023-11-27 15:16:45 +01:00
Makefile.stm32f103-generic Initial import 2023-11-27 15:16:45 +01:00
Makefile.stm32f429i-disco Initial import 2023-11-27 15:16:45 +01:00
Makefile.stm32l1-generic Initial import 2023-11-27 15:16:45 +01:00
Makefile.stm32l053disco Initial import 2023-11-27 15:16:45 +01:00
openocd.common.cfg Initial import 2023-11-27 15:16:45 +01:00
openocd.stm32f4disco.cfg Initial import 2023-11-27 15:16:45 +01:00
openocd.stm32f072disco.cfg Initial import 2023-11-27 15:16:45 +01:00
openocd.stm32f103-generic.cfg Initial import 2023-11-27 15:16:45 +01:00
openocd.stm32f429i-disco.cfg Initial import 2023-11-27 15:16:45 +01:00
openocd.stm32l1-generic.cfg Initial import 2023-11-27 15:16:45 +01:00
openocd.stm32l053disco.cfg Initial import 2023-11-27 15:16:45 +01:00
README.md Initial import 2023-11-27 15:16:45 +01:00
stub.py Initial import 2023-11-27 15:16:45 +01:00
test_gadget0.py Initial import 2023-11-27 15:16:45 +01:00
usb-gadget0.c Initial import 2023-11-27 15:16:45 +01:00
usb-gadget0.h Initial import 2023-11-27 15:16:45 +01:00

This project, inspired by usbtest and the linux usb gadget zero driver is used for regression testing changes to the unicore-mx usb stack.

The firmware itself is meant to be portable to any supported hardware, and then identical unit test code is run against all platforms. This project can and should be built for multiple devices.

Requirements: pyusb for running the tests. openocd >= 0.9 for automated flashing of specific boards python3 for running the tests at the command line.

You will need to modify the openocd config files, as they contain specific serial numbers of programming hardware. You should set these up for the set of available boards at your disposal.

Tests marked as @unittest.skip are either for functionality that is known to be broken, and are awaiting code fixes, or are long running performance tests

An example of a successful test run: