cancel
Showing results for 
Search instead for 
Did you mean: 

STM32_Programmer_CLI.exe problem - no entry point CreateEventW in api-ms-win-core-synch-l1-2-0.dll

DanielF
Associate

When I'm trying debug my projest I see in console:
...

Waiting for debugger connection...

Encountered Error when opening C:\ST\STM32CubeIDE_1.12.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.201.202404072231\tools\bin\STM32_Programmer_CLI.exe

Error in STM32CubeProgrammer

Shutting down...

I checked file location, it is OK, but when I'm trying to start STM32_Programmer_CLI.exe I see dialog
as below:
STM32_Programmer_CLI.exe_error.jpg
Translated to english: "Can not find entry point in procedure CreateEventW in library api-ms-win-core-synch-l1-2-0.dll".


My CubeIDE version is:

STM32CubeIDE

Version: 1.15.1

Build: 21094_20240412_1041 (UTC)

 

OS is: Win7 SP1 64bit

What can I do to fix this problem?
I see that I have another version of STM32_Programmer in path C:\ST\STM32CubeIDE_1.12.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.100.202311100844\tools\bin\STM32_Programmer_CLI.exe
and this one works fine, no errors. How to force Cube to use this one from "...100.202311100844\tools\..." instead of "...202404072231\tools\..."?

1 REPLY 1
DanielF
Associate

I found workaround: I copied STM32_Programmer_CLI.exe and some dlls from "...100.202311100844\tools\..." to "...202404072231\tools\..." (overwriting wrong programmer), and now is working. But it is not solution.