Skip to main content
JPark.20
Associate II
November 25, 2020
Solved

How to Data communicate with the STM32 BOOTLOADER ?

  • November 25, 2020
  • 2 replies
  • 1017 views

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.

This topic has been closed for replies.
Best answer by Houda GHABRI

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

2 replies

Piranha
Principal III
November 25, 2020

Install USB DFU driver from STM32CubeProgrammer package and read AN3156.

Houda GHABRI
Houda GHABRIBest answer
ST Employee
December 10, 2020

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