rtic-scope / cargo-rtic-scope

Non-intrusive ITM tracing/replay toolset for RTIC programs with nanosecond timestamp accuracy.
16 stars 4 forks source link

rtic-trace: ptr::write_volatile watch variables instead #138

Closed tmplt closed 2 years ago

tmplt commented 2 years ago

The compiler is not aware of the relationship between the watch variables and the DWT comparators that monitors the variables. Using ptr::volatile_write should convince the compiler not to optimize the write out.