Hi Senlent
We use the standard J-Link to send commands, the process is as follows:
step1:
J-Link>w4 20000004 11
Writing 00000011 -> 20000004
J-Link>mem32 20000004 1
20000004 = 00000011
step2:
J-Link>w4 4000d408 69a69a
Writing 0069a69a -> 4000D408
J-Link>mem32 4000d408 1
4000D800 = 0069a69a
step3:
J-Link>w4 4000d40C 1
Writing 00000001 -> 4000D40C
J-Link>mem32 4000d40c 1
4000D800 = 00000001
step4:
J-Link>mem32 20000004 1
20000004 = 00000011
J-Link>mem32 20000004 1
20000004 = 00000011
J-Link>mem32 20000004 1
20000004 = 00000011
J-Link>mem32 20000004 1
20000004 = 00000011
J-Link>mem32 20000004 1
20000004 = 00000011
We try to read multiple times about address 0x2000_0004, This address can always be read out.
step5:
J-Link>w4 20000004 22
Writing 00000022 -> 20000004
step6.:
J-Link>mem32 20000004 1
Could not read memory.
When we perform a write operation, it becomes unreadable. So, after we modify the permissions, do we need to perform the operations corresponding to the modified permissions to make them effective?