2023-06-16 10:50 AM
Hello,
I tried to import my time interrupt based, blinking LED project into Visual Studio 2022 V17.6 (Not into VSCode) using Marc Goodner’s blog (from Microsoft). Finally, I could import the STM32CubeIDE project into VS2022 but I could not run it. The Target dropdown list always contains Local Machine and Manage connections link. There is no ST-Link debugger in the target list. I tried to disconnect and reconnect the USB cable of STM32H723ZG NUCLEO development. It did not help. I restarted VS2022, then my PC, but it did not help.
Then I start debugging the project with Local Machine. The project was compiled into [project_name].elf file without any error but running the "ELF" file in Windows is a bad idea.
My question is does STMicro have a step-by-step guide how to import STM32CubeIDE project into VS2022? Or maybe somebody from the community already did it and could help what I did wrong.
Best regards,
Louis
2023-06-19 07:26 AM - edited 2023-06-19 07:41 AM
I think I found the solution.
This is PROBABLY what happens. During building the project the compiler(?) creates a "[ProjectName] Debug.launch" file in the root folder of the application. The "[ProjectName] Debug.launch" file is an XML file which probably contains every information how to flash the MCU in the development kit. This Launch file must be selected when the Debug button is clicked.
Louis