How to use printf using serial wire debug on STM32L476 Discovery

Posted

in

by

We all use printf statements for debugging purposes at some point in time.

To use print statement. You need to do fuse one solder bridge

Solder Bridge information from the STM32L476 Discovery Kit User Manual UM1789

Fuse the solder bridge number SB14.

Always be careful since the solder bridges are very small.

After you have done fused the solder bridge. You can configure your project in STM32 Cube IDE.

Watch the video below for complete instructions.

A few things must be taken care of before you start debugging:

  • The Core Clock in your debug configuration must be equal to the system core clock.
  • Press the record button in SWV ITM Data Console before you start debugging.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *