2020-03-17 06:47 AM
2020-03-18 12:44 AM
2020-03-17 11:48 PM
I've tried dicovery board, and it plots just what i expect.
2020-03-18 12:44 AM
Guys, I found what caused this strange behavior, it was
__WFI();
2020-03-18 02:02 AM
Sleep
It is not a requirement for the processor hardware to drain any pending memory activity before suspending execution to enter a sleep mode. Therefore, software has to handle this by adding barrier instructions if the sleep mode used could affect data transfer. A DSB should be used to ensure that there are no outstanding memory transactions prior to executing the WFI or WFE instruction.
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dai0321a/BIHHFHJB.html
2020-04-02 09:50 AM
When the processor is in WFI, the tool is not able anymore to access the memory : when the tool reads data, the probe returns 0 and not the real value.
So it is not possible to get the data when MCU uses WFI instruction.