On 16/07/2023 19:37, Liviu Ionescu wrote:

I added the pendsv_cnt counter in the PendSV_Handler(), but I think this is not 
very relevant to the test.

The counter has a good reason: it's an easy way to check if PendSV_Handler() is really called
and the debugger does not mask interrupts.

        __NOP(); // 9

...
Note there are 9 NOPs. the issue was no longer observed with 10 or more.

I also seen one instruction longer or shifted window in some tests.
Perhaps it depends on the code alignment to memory words...

T

Reply via email to