https://github.com/stm32-hotspot/ckb-stm32-hid-dfu-h5
Build an application on STM32 that combines HID and DFU functionalities into a composite USB device.
https://github.com/stm32-hotspot/ckb-stm32-hid-dfu-h5
Last synced: about 2 months ago
JSON representation
Build an application on STM32 that combines HID and DFU functionalities into a composite USB device.
- Host: GitHub
- URL: https://github.com/stm32-hotspot/ckb-stm32-hid-dfu-h5
- Owner: stm32-hotspot
- License: other
- Created: 2025-01-27T16:35:38.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-21T10:52:11.000Z (2 months ago)
- Last Synced: 2025-02-21T11:43:35.596Z (2 months ago)
- Language: C
- Size: 882 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# STM32H5 USB DFU HID demo
This guide provides a comprehensive approach to build an application on STM32 that combines HID and DFU functionalities into a composite USB device. By following these steps, you can create a USB device capable of both user interaction and firmware update.## Hardware & Software needed
Hardware:
- [NUCLEO-H563](https://www.st.com/en/evaluation-tools/nucleo-h563zi.html) (using STM32H5 MCUs)
- 2x USB Type C CablesSoftware:
- [STM32CubeProgrammer](https://www.st.com/en/development-tools/stm32cubeprog.html) (V1.15.0, do not use version V2.16.0 due to a limitation)## Materials Provided
- STM32H5 USB DFU HID Project
## Setup
1) The demo uses the **NUCLEO-H563** (using STM32H5 MCUs) and 2x USB Type C Cables.
Connect STLINK USB conenctor of the Nucleo board to the Host.
2) Using STM32CubeProg (with STLINK connection mode) do a full erase of the chip.
3) Connect user USB connector of the Nucleo board to the Host.
4) Reset the STM32H5 on the Nucleo board by pressing reset Button (black button).Please check the [knowledge base article](https://community.st.com/t5/stm32-mcus/how-to-implement-the-usb-device-composite-class-usb-dfu-hid/ta-p/759762) for more details.
## Troubleshooting
Refer to the knowledge base article for better details.When starting debug session, and still having issues with no ST-Link detected, check the debug configurations and select the correct ST-Link serial number S/N.

**Caution** : Issues and the pull-requests are **not supported** to submit problems or suggestions related to the software delivered in this repository. The example is being delivered as-is, and not necessarily supported by ST.
**For any other question** related to the product, the hardware performance or characteristics, the tools, the environment, you can submit it to the **ST Community** on the STM32 MCUs related [page](https://community.st.com/s/topic/0TO0X000000BSqSWAW/stm32-mcus).