完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
你好
我们正在使用uC / OS II RTOS。如何修改MC Application项目以调用相关的BSP_IntVectSet()(处理程序设置)? 这是最好的去处? (我正在注意不要将MC IRQ的任何应用程序IRQ加倍,我将其视为保留。我认为MC库使用IRQ,但我似乎无法找到一个中心位置,它们都被很好地编组。 ) 除了执行3 MC任务之外,这是我需要执行的唯一设置吗? 谢谢 #uc / os-isr-critical-section#micrium-uc-uc / os-integration 以上来自于谷歌翻译 以下为原文 Hi We are using uC/OS II RTOS. How do I modify the MC Application project to call the relevant BSP_IntVectSet() (handler setup)? Where is the best place to do this? (I am taking care not to double-up any application IRQs with the MC IRQs which I am treating as reserved. I presume the MC library uses IRQ's but I can't seem to find a central location where they're all nicely marshalled.) Is this the only setup I need to perform, apart from tasking the 3 MC tasks? Thanks #uc/os-isr-critical-section #micrium-uc-uc/os-integration |
|
相关推荐
4个回答
|
|
|
Ciao Luke
在包中,您可以找到免费的RTOS集成示例以获取灵感。 同样在UM中,一些段落应涵盖MC lib与用户项目的集成问题,以及IRQ优先级等。 从未使用过uC / OS,但我认为可以使用与免费RTOS相同的方法,即将ADC IRQ基本上调用的高频任务保持在操作系统的范围之外,只管理中/低和安全操作系统的任务。 为了做到这一点,免费的RTOS所需的IRQ是Systick,pendSV和SVC,正如你在免费的RTOS项目中所见,我们的时基不会更好地管理stm32fxxx_it.c。 使用的所有相关IRQ分为两个文件:stm32fxxx_it.c和stm32fxxx_MC_it.c。 再见 梁咏琪 以上来自于谷歌翻译 以下为原文 Ciao Luke In the package you can find the Free RTOS integration example to take inspiration. Also in the UM some paragraph shall cover the issue of integration of the MC lib with and user project taking care of IRQ priority and so on. Never used the uC/OS but I think that the same approach used for free RTOS can be used, that is to keep the highfrequency task basically called by the ADC IRQ out of the scope of the OS and manage just the Medium/Low and Safety task with the OS. To do thsi the IRQ required by the free RTOS have been Systick, pendSV and SVC that as you can see in the stm32fxxx_it.c is not more managed by our Timebase in case of free RTOS project. All relevant IRQ used is grouped in two files: stm32fxxx_it.c and stm32fxxx_MC_it.c. Ciao Gigi |
|
|
|
|
|
感谢那。
是否需要在禁用中断(或在关键部分)中运行以下任何例程? 特别是从高优先级ISR处理程序PendSV_Handler()运行的TSK_LowFrequencyTask() - 特殊原因,或者只是SWI的便利? - TSK_LowFrequencyTask() - TSK_MediumFrequencyTask() - TSK_HighFrequencyTask() - TSK_SafetyTask() 是否有任何(其他)特殊条件来运行这些功能? 我不确定FreeRTOS,但似乎ISR处理程序直接从向量表运行,并且处理程序清除了这些标志。在我的RTOS(uC / OS-II)中,中断从OS包装器重定向,处理器清除标志。除了告诉OS关于MC ISR之外,这里对我有什么影响? 谢谢 卢克 以上来自于谷歌翻译 以下为原文 Thanks for that. Do any of the following routines require to be run with interrupts disabled (or in a critical section)? See especially the TSK_LowFrequencyTask() which is run from the high priority ISR handler PendSV_Handler() - special reason, or just convenience of SWI? - TSK_LowFrequencyTask() - TSK_MediumFrequencyTask() - TSK_HighFrequencyTask() - TSK_SafetyTask() Are there any (other) special conditions for running these functions? I'm not sure about FreeRTOS, but it seems as though the ISR handlers run directly from the vector table and that flags are cleared by the handler. In my RTOS (uC/OS-II) the interrupts are redirected from OS wrappers which handle clearing of the flags. Any implications for me here, apart from telling the OS about the MC ISRs? Thanks Luke |
|
|
|
|
|
我在手册中找到了这些信息。
UM1052''用户手册STM32Fx PMSM单/双FOC SDK v3.4'',第96-98页具有每个MC任务的抢占优先级。 以上来自于谷歌翻译 以下为原文 I have found the information in the manual. UM1052 ''User Manual STM32Fx PMSM single/dual FOC SDK v3.4'', pages 96-98 has the pre-emption priorities for each of the MC tasks. |
|
|
|
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1447 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1494 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3641 浏览 1 评论
3834 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2454 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
658浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
940浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
744浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 18:58 , Processed in 0.763179 second(s), Total 76, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
333