软件中断,Keil MCB1700 评估板
我尝试为MCB1700评估板开发程序。 是否可以在没有 RTOS RTX 的情况下使用软件中断 (SWI)?
I try to develop programs for MCB1700 evaluation board.
Is it possible to use software interrupts (SWI) without RTOS RTX?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,只不过在 Cortex M3 处理器上您将使用
SVC
而不是SWI
。您无需使用 RTOS 即可使用此功能。由于异常入口处的寄存器堆栈,异常处理程序与
SWI
略有不同。另请注意,与
SWI
不同,您无法在运行SVC
处理程序时调用SVC
(而您可以“嵌套”SWI
代码>s)Yes, except that on a Cortex M3 processor you'll use
SVC
instead ofSWI
. You don't need to use an RTOS to use this functionality.The exception handler will be a little bit different than with
SWI
because of register stacking on entry to the exception.Also be aware that unlike
SWI
, you cannot invokeSVC
while running aSVC
handler (whereas you could "nest"SWI
s)是的,这只是一个普通的 Cotex-M3 处理器。您可以使用任何您想要的 RTOS,并且仍然能够使用 Cortex 的 SWI 功能。
Yes, it's just a normal Cotex-M3 processor. You can use any RTOS you want and still be able to use the SWI features of the Cortex.