为什么我在main函数里面能够访问NVIC

[复制链接]
1828|4
 楼主| inurl 发表于 2013-6-30 11:04 | 显示全部楼层 |阅读模式
本帖最后由 inurl 于 2013-6-30 11:05 编辑

系统上电之后不是进入了 thread mode (unprivileged) 吗?

NVIC(0xE000_E000)不是要在privileged下才能访问吗?


“The processor enters Thread mode on Reset, or as a result of an exception return.
Privileged and Unprivileged code can run in Thread mode.”

“Unprivileged execution limits or excludes access to some resources. Privileged execution has access to all resources. Handler mode is
always privileged. Thread mode can be privileged or unprivileged.”

无标题.jpg
无标题.jpg
 楼主| inurl 发表于 2013-7-19 09:17 | 显示全部楼层
linfeng24 发表于 2013-8-9 00:37 | 显示全部楼层
为什么不能访问呢?如果不能访问,那么你的中断如何管理呢?
 楼主| inurl 发表于 2013-9-10 14:53 | 显示全部楼层
linfeng24 发表于 2013-8-9 00:37
为什么不能访问呢?如果不能访问,那么你的中断如何管理呢?

应该是 进入了thread mode (privileged)
hkcj 发表于 2013-9-10 18:26 | 显示全部楼层
不懂这一块  比较头疼  楼主  顶一个   先
您需要登录后才可以回帖 登录 | 注册

本版积分规则

37

主题

293

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部