I use J-Link plus to debug my FW on NRF52840 MCU - they connected by SWD
I use JLinkExe to monitor the connection and read memory and in parallel get logs in JLinkRTTClient
Few times today I saw this phenomena:
I read using the mem command a value from the flash of the MCU
I saw from logs that the FW updated this value in flash
I read again using the mem command and saw that the value in flash didn't change(against my expectations)
I exited from JLinkExe and re-entered (without reset the MCU) and got with mem command the new value.
What can cause this? Does mem command use caching that can cause errors
I use JLinkExe to monitor the connection and read memory and in parallel get logs in JLinkRTTClient
Few times today I saw this phenomena:
I read using the mem command a value from the flash of the MCU
I saw from logs that the FW updated this value in flash
I read again using the mem command and saw that the value in flash didn't change(against my expectations)
I exited from JLinkExe and re-entered (without reset the MCU) and got with mem command the new value.
What can cause this? Does mem command use caching that can cause errors