软件中断,Keil MCB1700 评估板

发布于 2024-12-25 05:35:33 字数 61 浏览 4 评论 0原文

我尝试为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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

笑忘罢 2025-01-01 05:35:33

是的,只不过在 Cortex M3 处理器上您将使用 SVC 而不是 SWI。您无需使用 RTOS 即可使用此功能。

由于异常入口处的寄存器堆栈,异常处理程序与 SWI 略有不同。

另请注意,与 SWI 不同,您无法在运行 SVC 处理程序时调用 SVC(而您可以“嵌套”SWI代码>s)

Yes, except that on a Cortex M3 processor you'll use SVC instead of SWI. 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 invoke SVC while running a SVC handler (whereas you could "nest" SWIs)

十年九夏 2025-01-01 05:35:33

是的,这只是一个普通的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文