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.

66ak2h14使用 ldrex过程中出错



我使用的开发板是EVMK2H,在使用自旋锁时候会发现一直处于死锁状态,仿真器调试发现,无论我内存单元中的值是多少,执行

LDREX   R2, [R0]        ;R0为内存单元地址

R2读取到的值始终为0,请问在使用LDREX指令之前还需要做什么配置吗?