2025-05-07 2:27 AM - edited 2025-05-07 2:35 AM
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 . . .
Solved! Go to Solution.
2025-05-13 5:45 AM
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?
2025-05-13 6:05 AM
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
2025-05-13 6:59 AM
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.
2025-05-13 7:02 AM
An answer has already been provided in the other thread. Please feel free to check it for detailed information.
Maryem.
2025-05-13 7:50 AM - edited 2025-05-13 7:50 AM
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?
2025-05-13 8:13 AM
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!