cancel
Showing results for 
Search instead for 
Did you mean: 

How to include the CubeProgrammer_API.dll file in C application to access the API's of STM32CubeProgrammer?

AMull.11
Associate II

Hi Team,

I am working on one of the Project where I have to update the new firmware over the UART using System bootloader without STM32CubeProgrammer tool.

So, for this I need to implement the C application using STM32CubeProgrammer API's.

Therefore, I want to know how to include the CubeProgrammer_API.dll file.

Please let me know if any one knows the solution.

Any kind of help would be appreciated.

1 REPLY 1
TDK
Guru

I don't think CubeProgrammer_API.dll is what you want here. You need to ensure a serial link between the MCU and the PC, ensure the MCU is in bootloader mode, then communicate with it via the commands in AN3155.

https://www.st.com/resource/en/application_note/cd00264342-usart-protocol-used-in-the-stm32-bootloader-stmicroelectronics.pdf

There is also a command-line version of STM32CubeProgrammer which can be used.

If you feel a post has answered your question, please click "Accept as Solution".