Projects / Ideas / First breakpoint debugging

First breakpoint debugging

IntermediateLearningIdeaReviewed
In short

How do you build a first breakpoint debugging?

Use a hardware debugger to stop a Blue Pill program on a line, look at a variable and step through a loop. You need STM32 Blue Pill (STM32F103C8T6), J-Link EDU Mini, LED 5 mm red, Resistor 330 Ω and Breadboard 830 Tie Points.

Level
Intermediate
Time
About 240 min
Parts
5
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Debug with breakpoints.

Parts list

How to build it

  1. Connect the SWD pins
  2. Load a counter program
  3. Set a breakpoint
  4. Watch the variable
  5. Step one line at a time

Related projects

Common questions

What parts do I need for the first breakpoint debugging?

STM32 Blue Pill (STM32F103C8T6), J-Link EDU Mini, LED 5 mm red, Resistor 330 Ω and Breadboard 830 Tie Points.

How long does the first breakpoint debugging take to build?

About 240 minutes for a intermediate maker.