Skip to content

Latest commit

 

History

History

F030R8_inst

Example F030R8_inst

x

Description

This is a working example with deferred encrypted out over UART. By uncommenting 2 lines in triceConfig.h, you get also parallel direct out over RTT.

Setting Up

Intrumenting

  • Extend the Makefile with the information you get from comparing the Makefile here and in ../F030R8_gen/.

  • Add build.sh and clean.sh.

  • Copy file SEGGER_RTT_Conf.h from trice/third_party/segger.com/SEGGER_RTT_V760g.zip to ./Core/Inc/. Yu could also look for a newer version.

  • Copy and adapt a file triceConfig.h to ./Core/Inc/. You can choose from an other example project or one of the test folders.

  • Create 2 empty files: touch til.json li.jsoninside ./

  • Run build.sh. This should build all.

  • Add #include "trice.h" to main.c and to stm32f0xx_it.c and edit these files according to diff.

  • Add to int main( void ) some Trice( "..." ); messages.

  • Run trice s to determine the relevant comport.

  • You can have this output:

x

  • The Trices with 16-bit timestamps are about 150 clocks away from each other. @32MHz this is a time of less 5 µs.