Open Calamity1911 opened 3 months ago
We don't connect to the chip/board. The STLink gdb-server does. Focus on the following
"C:/ST/STM32CubeCLT_1.16.0/STLink-gdb-server/bin/ST-LINK_gdbserver.exe" -p 50000 -cp "C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin" --swd --halt
This command has to work. Maybe additional options are needed in launch.json. See how ST is using the gdb-server. Also, contact ST.
Are you using STs VSCode plugin? It may generate the proper launch.json for you.
Hi, Im probably a bit late to the party, but I ran into this issue some time ago, too. Even though the processors are not multicore, you need to set the apID to be able to connect.
so as in your launch.json you need to add:
"serverArgs": ["-m 1"],
STM32CubeIDE also uses this flag to debug.
I tested it for H503 and for H563, but this is probably applicable to the whole H5 family.
Hello all,
I recently purchased a Nucleo H503 development kit from STMicro. I was able to create a project using CubeMX which is just a simple blinky using LD2 on the board and a hardware timer.
I generated the project as a Makefile project, and opened it in VSCode. Within VSCode, I have the "official" STM32 extension, which depends on the cortex-debug extension. The issue then arose when I tried to actually debug the chip just to see if I could. Below is the
launch.json
which was used. I know that this platform supposedly also supports some form of authenticated debugging system if the chip has been properly provisioned, but using CubeProgrammer, I ensured that all related features were disabled and the product state was set to "open."Attempting to debug produces the following output.
Again, I verified that I could actually communicate with the device by manually loading the generated
.elf
file using CubeProgrammer, and the firmware does indeed blink LD2. CubeProgrammer doesn't seem to have any issues communicating with the Cortex-M33 core on the STM32H503, so I'm just curious if anyone has any ideas as to how I can actually debug using VSCode.Let me know if there is any other information that could be helpful.