如下图所示,在程序中对ESR进行操作,发现地址上的值还是0,并在无法直接在内存地址上操作
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
你用的代码里ESR的地址定义正确吗?或者直接在代码中操作地址看看,我之前给你的工程有试过吗?
我试了一下给你的例程,手动触发数据搬移成功了,但我也没有看到ESR的置位,我认为可能是event被提交之后被硬件上自动清除了。
. The bits will only be cleared once the transfer request corresponding to the event has been submitted to the transfer controller.
这边有个类似的帖子讨论参考看一下:
另外关于ESR global的地址和region的地址是不一样的。