How to start? Connection issue with Bluepill

Post here first, or if you can't find a relevant section!
ag123
Posts: 1655
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: How to start? Connection issue with Bluepill

Post by ag123 »

to debug literally you only need arm-none-eabi-gdb and maybe st-link
https://github.com/stlink-org/stlink
or openocd
http://openocd.org/
maybe what you are running now already has all the tools

but if you 'can't live without an IDE', all the 'pro' IDE wikis are here:
https://github.com/stm32duino/wiki/wiki/How-to-debug
eclipse / vscode and all that let you do all that reference jumps to definitions / symbols / where used etc

and normally you don't need debug. Select USB (CDC) serial as in your previous screen print.

then you can do

Code: Select all

void setup() {
  Serial.begin();
}

void loop() {
  Serial.println("hello world");
  delay(1000);
}
USB Serial is 'there' all the while
you'd need to figure out which com: port it is at and need a serial monitor. Arduino IDE has a basic one in there.
other serial monitors are like putty
https://www.putty.org/
there are probably more around
Post Reply

Return to “General discussion”