Hi,
Please double-check that you have the “Enable GDB stub” checkbox enabled in VisualGDB Project Properties and that your code calls gdbstub_init().
If this does not help, please try connecting to your COM port with SmarTTY or any other terminal program, enter the baud rate from the “GDB Stub Baud Rate” field in VisualGDB (normally 74880) and reset your board. Once GDB stub takes control, you should see the following output:
$T05#b9
If instead you see an error message, your board might be defective. If you don’t see anything or see total gibberish instead, please try experimenting with the baud rate (e.g. try 115200). Once you find out a baud rate that works, ensure you enter it in the GDB Stub Baud Rate field.