Skip to content
UBCOrbitPublic

About

Haskell library for debugging STM32s through STLINKv2 dongles

Resources

Stars

0 stars

Watchers

5 watching

Forks

Latest commit

 

History

30 Commits

Folders and files

Repository files navigation

HSTLink

Build Status

Click here for the latest, up-to-date documentation!

This is a library for interacting with STLink dongles and debugging STM32 microcontrollers through haskell scripts!

At UBC Orbit, we're using it to simulate upsets that the satellite will encounter in space, and ensuring that they're dealt with accordingly.

Example

import STLink

fiddleRegs :: STLink ()
fiddleRegs = withAutoBoard $ do
  enterMode DebugSWD -- must be in debug mode to peek/poke registers
  num <- readReg 0
  writeReg 1 (num + 3)

Further Info

All other information can be found in the Haddock documentation generated from the source.

About

Haskell library for debugging STM32s through STLINKv2 dongles

Resources

Stars

0 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages