2025-09-30 1:52 AM - last edited on 2025-09-30 9:45 AM by Amel NASRI
Where can I find the meaning of the returns from connectDfuBootloader? I'm getting -16 back and would like to know what it means.
2025-09-30 4:46 AM - edited 2025-09-30 4:50 AM
Hi,
Where exactly can you find the mentioned command or function? It is likely not an ST-delivered tool or firmware.
Generally, to understand how the DFU bootloader works, refer to the application note AN3156 USB DFU protocol used in the STM32 bootloader.
-Amel
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-09-30 4:54 AM
We're using the connectDfuBootloader entry point into CubeProgrammer_API.dll. A successful connection returns 0. What possible errors are returned and what do they mean? I've seen -5 and -16 so far
2025-09-30 9:45 AM
I move your question to STM32CubeProgrammer dedicated forum and I let our expert @Aziz BRIGUI review your request there.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.