我最初的问题,我在前面的 cm3内核权威指南中找到了论述,我也联系了该书的翻译者,他测试说在LPC1768上,用户级下 ,对特殊功能寄存器的访问也是如同NOP指令,也许是原文(英文版就有缺陷吧)
(《The Defi nitive Guide to the ARM Cortex-M3》 Joseph Yiu P37)
In the user access level (Thread mode), access to the System Control Space, or SCS—a part of the memory region for confi guration registers and debugging components—is blocked. Furthermore, instructions that access special registers (such as MSR, except when accessing APSR) cannot be used. If a program running at the user access level tries to access SCS or special registers, a fault exception will occur.
对MOVT这个指令,在LPC1768执行时正常的,而在stm32上它就相当于NOP了。有些不明白,相同 的内核,相同的指令集,不同 的效果。 |