cancel
Showing results for 
Search instead for 
Did you mean: 

How to Data communicate with the STM32 BOOTLOADER ?

JPark.20
Associate II

I want to make a Tool like STM32CubeProgrammer using MFC.

When I checked the device monitoring, STM32CubeProgrammer was able to communicate 2K at a time.

When connected via USB, the device manager shows up as STM32 BOOTLOADER, I am trying to connect this and the tool.

Is there any way to know the communication protocol or API?

I'm sorry if this was an absurd question.

1 ACCEPTED SOLUTION

Accepted Solutions
Houda GHABRI
ST Employee

Hi @Jpark.20

As suggested by Piranha the Bootloader USB DFU protocol is described in AN3256.

You can also reuse STM32CubeProgrammer DLL (API) available inside the tool in order to build your own Programmer.

There is some examples in api folder that show how to do it.

Hope that this help you.

Houda

View solution in original post

2 REPLIES 2
Piranha
Chief II

Install USB DFU driver from STM32CubeProgrammer package and read AN3156.

Houda GHABRI
ST Employee

Hi @Jpark.20

As suggested by Piranha the Bootloader USB DFU protocol is described in AN3256.

You can also reuse STM32CubeProgrammer DLL (API) available inside the tool in order to build your own Programmer.

There is some examples in api folder that show how to do it.

Hope that this help you.

Houda