打印

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

[复制链接]
1460|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.”


沙发
inurl|  楼主 | 2013-7-19 09:17 | 只看该作者
UPUP

使用特权

评论回复
板凳
linfeng24| | 2013-8-9 00:37 | 只看该作者
为什么不能访问呢?如果不能访问,那么你的中断如何管理呢?

使用特权

评论回复
地板
inurl|  楼主 | 2013-9-10 14:53 | 只看该作者
linfeng24 发表于 2013-8-9 00:37
为什么不能访问呢?如果不能访问,那么你的中断如何管理呢?

应该是 进入了thread mode (privileged)

使用特权

评论回复
5
hkcj| | 2013-9-10 18:26 | 只看该作者
不懂这一块  比较头疼  楼主  顶一个   先

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

37

主题

293

帖子

1

粉丝