Closed mrmyxc closed 2 years ago
Thank you for reporting this. Basically, a monitor halt
is failing. Failed at the starting blocks
This indicates a communication error between gdb and the 'ST-LINK GDB server'. We are not involved in their chatter and we don't even speak the language used between the two. I am thinking there may be a mismatch between the STLink server and the version of gdb -- hopefully, both came from what ST distributes and a matched set.
In the manual gdb mode, after a target extended-remote host:port
, do a monitor help
. Make sure you use the extended-remote
as the protocol differs. I want to make sure halt
is a valid command.
We used to use monitor reset halt
ourselves but we get a warning from ST that is not valid. According to section 2.9, it is indeed invalid https://www.st.com/resource/en/user_manual/um2576-stm32cubeide-stlink-gdb-server-stmicroelectronics.pdf
Technically, we don't need a monitor halt
because we use the -halt
command-line option. This was all done by multiple people with experiments done as to what works at various times in history. But at the same time I have never seen a gdb-server not have a halt
type command. ie, without doing a reset. I can understand halt and reset being two separate commands. Every gdb-server does the reset and halt a bit differently, btw.
Btw, I am using STLink GDB Server 6.0.0 (I got it from the STM32 IDE install).
% ./ST-LINK_gdbserver --version
./ST-LINK_gdbserver version: 6.0.0
If changes need to be made on our end, I can make another pre-release. I don't want to change thing unnecessarily because we have very limited ways in which we can test.
Alright thanks for responding. I'll try this out tomorrow and get back
I also made a pre-release this morning and it should work even the pre- 6.0.0 version of STLink server. Let me know if you need to reopen. Closing for now.
Hi, I'm trying to use the stlink server type and it looks like one of the commands sent is not understood by ST's GDB server.
Error when trying to debug
The below is me manually trying to test it.
monitor halt
is fine when using openocd though.Using vscode 1.65.2 cortex-debug v1.2.2. (same result with pre-release v1.3.4) ST-LINK GDB server v5.5.0 STLINK fw ver: V2J36M26
I didn't see this raised and tbh I'm not very familiar with using gdb itself to debug applications so I thought I'd report it.