cancel
Showing results for 
Search instead for 
Did you mean: 

Getting -16 when trying to connect to a Boot Loader device

MSSloan1962
Associate II

Where can I find the meaning of the returns from connectDfuBootloader? I'm getting -16 back and would like to know what it means.

 

3 REPLIES 3
Amel NASRI
ST Employee

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.

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

Amel NASRI
ST Employee

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.