5 ms·
good idea about using the DWT.... you're right, I can imagine that it would interfere with debuggers but still a useful technique. I've got hopes for the v8-m
by TickleSteve 10y ago
good idea about using the DWT.... you're right, I can imagine that it would interfere with debuggers but still a useful technique.
I've got hopes for the v8-m arch as it modifies the MPU scheme to make it much more flexible than v7-m. I've had issues with fitting code around the power-of-2 size windows.... it makes things really clumsy.
I'm currently using code instrumentation to get our required level of robustness but I may have a play around with the DWT now.
- codys 10y agoDWT for armv7m also uses base+power-of-2-mask. I was in the process of creating some code [1] for calculating the best possible power-of-2-mask (or set of masks + bases) given a limit, but never completed it. 1: https://github.com/jmesmon/ccan/blob/maskn/ccan/maskn/maskn.c https://github.com/jmesmon/ccan/blob/maskn/ccan/maskn/maskn....