Using the STM32CubeProgrammer API
Hello!
I am trying to use the STM32CubeProgrammer API to create my own application with a simple GUI in C++. Currently my solution is compiling the STM32CubePrgAPI as static library and then include it in a MFC project.
Basically user clicks OK from the GUI and then Example2 is executed. The getSTLinkList function executes with no issues, but connectSTLink fucktion gives me this error.
int connectStlinkFlag = connectStLink(debugParameters);
0xC0000005: Access violation executing location 0x0000000000000000.If I compile STM32CubePrgAPI as .exe, it works with no problems.
What am I not understanding? Is compiling it as a static library a valid choice? What other options do I have?
I can't find any examples of applications created using this API. Has anyone done something like this?
