cancel
Showing results for 
Search instead for 
Did you mean: 

CubeProgrammer API examples not working

Robmar
Senior III

I've just compiled the USB_Example.cpp example and its reporting an initialization error on running (The application could not initialize correctly (0xc000007b)), I have VS 2022 fully updated, I did not migrate the project to the latest toolset to avoid problems.

Any ideas STM team?

 

D:\Program Files (x86)\STMicroelectronics\STM32Cube\STM32CubeProgrammer\api\project\Visual Studio\x64\STM32CubePrgAPI\/../../../../lib/STM32CubePrgAPI.exe (process 25224) exited with code -1073741701 (0xc000007b).
To automatically close the console when debugging stops, enable Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .

This discussion is locked. Please start a new topic to ask your question.
25 REPLIES 25

So using the CubeProgrammer API in release mode the function connectDfuBootloader2() is failing, though it works perfercty in debug.

Is that a known issue, any work-around?

Hello @Robmar

We appreciate your contributions to this forum. However, for organization purpose could you please open other threads for these issues you mention and mark one of @Maryem answers as Accepted Solution since it resolved the initial issue?

Thanks in advance,

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.

I found another post mentioning an issue with the CubeProgrammer API function connectDfuBootloader2(), do you really want me to open another thread for this?

I'd thought one of the STM support team would be able to answer.

https://community.st.com/t5/stm32cubeprogrammer-mcus/cubeprogrammer-api-connectdfubootloader-cubeprogrammer-error-not/td-p/800155 

An answer has already been provided in the other thread. Please feel free to check it for detailed information.

 

Maryem.


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.

His reply is incomplete, I don't know if he copied the ExternalLoader folder contents up to the exe directory, etc., or if he set the path somewhere.

In release mode calling connectDfuBootloader2() return -5, are you saying that's because STM's code moves the location requirement for those the FlashLoader and ExternalLoader folder/content in the release mode code?

Robmar
Senior III

Okay, got it, the Data_Base folder has to be one up from the dll folder with the example .exe, with ExternalLoader and FlashLoader folder in the same director as the exe.

Some documentation from STM would mean we wouldn't have to dig through everything to know the required structure, just a thought!