(Read only you are interested in)
A TRICE
macro execution can be as cheap like 3-4 Assembler instructions or 6-8 processor clocks:
- Disassembly:
- Measurement: The blue SYSTICK clock counts backwards 6 clocks for each
TRICE
macro (on an ARM M0+), what is less than 100 ns @64 MHz MCU clock:
A more realistic (typical) timing with target location and µs timestamps, critical section and parameters is shown here with the STM32F030 M0 core:
The MCU is clocked with 48 MHz and a Trice duration is about 2 µs, where alone the internal ReaUs() call is already nearly 1 µs long: