A SUMP compatible Logical Analyser for the STM32F4
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.



A SUMP compatible Logical Analyser for the NucleoF401RE (STM32F4xx) almost up to 10MSPS, 8Ch, 32K samples memory.

This will turn any NucleoF401RE (will work with other boards but it was not tested) system into a Logical Analyser compatible with a subset of the SUMP protocol. It can be used with clients such as PulseView, sigrok-cli, and LogicSniffer. While it is not as feature complete as other products, such as the OLS, it can turn that STM32 board that is lying around into a no frills, bare to the bones, logic analyser.

Sampling rate up to 500KSPS should work on most platforms. Higher than that, only the F401RE, or other similar >84Mhz platform should provide results with accurate timing measurements up to 5MSPS. 10MSPS will be accepted but do not trust timing information as the board cannot really keep up with this speed. However this sampling rate can still be usefull. If you wish to add support for other platforms, please focus in creating the appropriate unrolled loops callibrated with an osciloscope.

PORTB is current used, and Pins PB_0 to PB_7 are reported. Unfortunately these pins are scattered over the board and are not contiguous. Check this diagram to find them.

This implementation was based in the mbed environment in order to increase its compatibility, as new targets are expected to be supported. The focus of this implementation is compatibility and extensibility, and not only performance.



  • Configurable sampling rate up to 10Mhz on the F401RE platform
  • Basic parallel triggers
  • Generic compatibility with other platforms through the MBED API
  • Test mode where PWM signals from 1us to 500ms will be generated and then captured. You can use this mode to test the accuracy of each mode.


  • RLE support
  • Serial triggers (for speeds lower than 1MSPS)
  • Post trigger delay
  • External test modes


  • Reaching 10MSPS requires the use of synchronous code (instead of a much better asynchronous, interrupt based approach, yet slower). If the sampling function is waiting for results or for a trigger, the board will be "stuck" waiting. Just push the reset and move on as nothing is wrong. The Green LED will be active if the board is waiting for the acquisition process to finish.


Just to prove it works and because screenshots are always nice.

alt text


Get the source code from github and compile it using the ARM toolchain available from the Launchpad page. If you have the toolchain available, the Makefile will take care of all compilation and linking.

In alternative you can also use the code in mbed. Just load the code without the mbed directory.

Finally download the latest precompiled binary from the releases web page and flash it. The binary file suits the NUCLEO-F401RE board.