Skip to content

Software tools

fdila edited this page Dec 1, 2019 · 8 revisions

IDE and Libraries

STM32CubeIDE

Currently using STM32CubeIDE with default configuration.

Steps for creating a new project:

  1. File > new > STM32Project
  2. Select board
  3. Give a name to the project
  4. Click finish
  5. You will be asked if you want to open a new perspective, click Yes
  6. The STM32CubeMX interface will open, here you can configure pins, clock and various stuff
  7. Once you finished your configuration go on File > save, this will generate the C initialization code

STM32CubeIDE Product page

STM32CubeMX guide

Debugging

Debug configuration:

  • Autostart local GDB server
  • Debug probe ST-LINK(ST-LINK GDB server)
  • Interface SWD
  • Access port 0-Cortex-M7
  • Reset behaviour: Software system reset
  • Enable Serial Wire viewer
  • Core clock 16Mhz
  • SWO Clock 2000 kHz
  • Port number 61235
  • Wait sync packet
  • Verify flash download
  • Enable live expressions

IMPORTANT: to use live expressions variables have to be global

Serial Wire Viewer docs

Hardware Abstraction Layer

Documentation

Timers reference

Timer overview