Skip to main content
arilink
Associate III
February 24, 2022
Question

How should I use qt to call CubeProgrammer_API.dll to make a tool like ST_CubeProgrammer?

  • February 24, 2022
  • 1 reply
  • 1565 views

Development environment:

1. windows 10 X64

2.en.stm32cubeprg-win64_v2-9-0 and CubeProgrammer_API.dll

3.qt mingw x64

Problems:

1."My install path"\ST-CubeProgrammer\api\project\Qt\STM32CubePrgAPI this example project works fine

2.getDfuDeviceList() function call is normal and the USB DFU device can be obtained

3.connectDfuBootloader(dfuList[0].usbIndex) function call fails, no matter what I try I can't fix it

This topic has been closed for replies.

1 reply

Aziz BRIGUI
Technical Moderator
March 24, 2022

Hello @arilink​,

Thank you for your feedback,

Can you share with us the device you are using so that we can reproduce the issue.

Best regards,

Aziz

In order 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.
Associate II
December 5, 2023

I am seeing the same failure calling connectDfuBootloader(dfuList[0].usbIndex). It always fail.

I am using a STM32F072RB MCU in STM Bootloader DFU mode and the call to getDfuDeviceList() does return what is expected. I am running the ST USB example as is and would have expected it to work.

I am using version v2.15.0 of the API.

Was the explanation for this issue?

Kind regards,
Christian

Maryem
Technical Moderator
December 20, 2023

Hello @cuwittrock ,

Sorry for the delayed reply. This issue has already been raised and is under investigation by CubeProgrammer's Development team.

 

Maryem.