Tips for programming, debugging and flashing - RoboDurden/Hoverboard-Firmware-Hack-Gen2.x GitHub Wiki

Navigating in the Keil IDE

  • F12 is great to jump to the declaration/definition of a function or variable
  • Ctrl+Shift+F does the opposite: search for all occurrences in the project file.

StmStudio to visualize global variables at runtime

  • free download: https://www.st.com/en/development-tools/stm-studio-stm32.html
  • compile with debug info grafik
  • import .axf file and choose your global(!) variables to monitor grafik
  • choose Maximum Acquisition rate grafik
  • select and send imported variables to the realtime viewer grafik
  • Graph- and Table-display both have great value grafik
  • to monitor local variables, simply make them global grafik

flashing problems

  • on Windows, auto-flash.bat still works great when Keil F8 will not: Turn off board, start auto-flash.bat, turn on board !