打印

谁给讲一下STM32的SVC中断啊.

[复制链接]
12374|7
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
李富贵|  楼主 | 2012-3-29 14:44 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
为什么其他rtos(如freertos、mqx、rlarm)都用到了SVC中断和PendSV,而ucos-ii却只用了PendSV中断呢?
沙发
acgean| | 2012-3-30 08:39 | 只看该作者
推荐参考 CortexM3 权威指南

使用特权

评论回复
板凳
ap_lfs| | 2012-3-30 16:59 | 只看该作者
CortexM3 权威指南里有讲,你可以给我个邮箱,把它发给你。
不过空间比较大,网上可以下载。

使用特权

评论回复
地板
ap_lfs| | 2012-3-30 17:08 | 只看该作者
我是初学的,我想请问一个问题。我用IAR6.3和3.5版本的固件库。按照例子设置,可还是出现
Building configuration: GPIO - Debug
Updating build tree...

9  file(s) deleted.
Updating build tree...
core_cm3.c  
Fatal Error[Pe1696]: cannot open source file "#PROJ_DIR$\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
            searched: "D:\stm32\GPIO\Libraries\CMSIS\CM3\CoreSupport\"
            searched: "#PROJ_DIR$\..\"
            searched: "#PROJ_DIR$\..\Libraries\STM32F10x_StdPeriph_Driver\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\c\
"
Error while running C/C++ Compiler
main.c  
Fatal Error[Pe1696]: cannot open source file "#PROJ_DIR$\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
            searched: "D:\stm32\GPIO\"
            searched: "#PROJ_DIR$\..\"
            searched: "#PROJ_DIR$\..\Libraries\STM32F10x_StdPeriph_Driver\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\c\
"
Error while running C/C++ Compiler
misc.c  
Fatal Error[Pe1696]: cannot open source file "#PROJ_DIR$\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
            searched: "D:\stm32\GPIO\Libraries\STM32F10x_StdPeriph_Driver\src\"
            searched: "#PROJ_DIR$\..\"
            searched: "#PROJ_DIR$\..\Libraries\STM32F10x_StdPeriph_Driver\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\c\
"
Error while running C/C++ Compiler
startup_stm32f10x_hd.s
stm32f10x_flash.c  
Fatal Error[Pe1696]: cannot open source file "#PROJ_DIR$\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
            searched: "D:\stm32\GPIO\Libraries\STM32F10x_StdPeriph_Driver\src\"
            searched: "#PROJ_DIR$\..\"
            searched: "#PROJ_DIR$\..\Libraries\STM32F10x_StdPeriph_Driver\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\c\
"
Error while running C/C++ Compiler
stm32f10x_gpio.c  
Fatal Error[Pe1696]: cannot open source file "#PROJ_DIR$\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
            searched: "D:\stm32\GPIO\Libraries\STM32F10x_StdPeriph_Driver\src\"
            searched: "#PROJ_DIR$\..\"
            searched: "#PROJ_DIR$\..\Libraries\STM32F10x_StdPeriph_Driver\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\c\
"
Error while running C/C++ Compiler
stm32f10x_it.c  
Fatal Error[Pe1696]: cannot open source file "D:\stm32\GPIO\project\stm32f10x_it.c"
Error while running C/C++ Compiler
stm32f10x_rcc.c  
Fatal Error[Pe1696]: cannot open source file "#PROJ_DIR$\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
            searched: "D:\stm32\GPIO\Libraries\STM32F10x_StdPeriph_Driver\src\"
            searched: "#PROJ_DIR$\..\"
            searched: "#PROJ_DIR$\..\Libraries\STM32F10x_StdPeriph_Driver\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\c\
"
Error while running C/C++ Compiler
system_stm32f10x.c  
Fatal Error[Pe1696]: cannot open source file "#PROJ_DIR$\..\Libraries\
STM32F10x_StdPeriph_Driver\inc"
            searched: "D:\stm32\GPIO\Libraries\CMSIS\CM3\DeviceSupport\ST\
STM32F10x\"
            searched: "#PROJ_DIR$\..\"
            searched: "#PROJ_DIR$\..\Libraries\STM32F10x_StdPeriph_Driver\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\"
            searched: "C:\Program Files\IAR Systems\Embedded Workbench 6.0\arm\inc\c\
"
Error while running C/C++ Compiler

Total number of errors: 8
Total number of warnings: 0

请指教,谢谢

使用特权

评论回复
5
csq463276932| | 2014-3-16 12:11 | 只看该作者
SVC主要用在分特权级和用户级的操作系统,ucosii不区分特权级和用户级,可以不管这个东西.

使用特权

评论回复
评分
参与人数 1威望 +3 收起 理由
``` + 3
6
hwl1023| | 2014-3-16 16:54 | 只看该作者
这个一直都不明白,谢谢

使用特权

评论回复
7
airwill| | 2014-3-17 16:22 | 只看该作者
非常目意5楼的看法
如果OS使用特权保护,那么很多功能要求被限制。操作系统只能通过SVC为应用程序提供特权级才能执行的功能。

使用特权

评论回复
8
274632473| | 2019-12-30 19:47 | 只看该作者
csq463276932 发表于 2014-3-16 12:11
SVC主要用在分特权级和用户级的操作系统,ucosii不区分特权级和用户级,可以不管这个东西. ...

回答的好!

使用特权

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

本版积分规则

个人签名:上联:subway railway highway,way way to die 下联:investigator officer announcer,sir sir to lie 横批:welcome to china

29

主题

1274

帖子

7

粉丝