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.
- See and adapt steps in ../F030R8_gen/ReadMe.md.
-
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.json
inside ./ -
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 )
someTrice( "..." );
messages. -
Run
trice s
to determine the relevant comport. -
You can have this output:
- The Trices with 16-bit timestamps are about 150 clocks away from each other. @32MHz this is a time of less 5 µs.