完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,我正在运行FreeRTOS和和谐1.10。当接收到CAN消息时,我想得到IRQ,但是所有的崩溃都不能在IRQ中调试。我的设备是MX795。有什么想法吗?我有点失落……没有自由球员,一切都很好。谢谢!
以上来自于百度翻译 以下为原文 Hello, I am running FreeRTOS and HARMony 1.10. I want to get an IRQ when a CAN message is received, but everyting crashes and I am not able to debug in the IRQ. My Device is a MX795. void IntHandlerDrvCANInstance0(void) { message = (CAN_RX_MSG_BUFFER *)PLIB_CAN_ReceivedMessageGet(CAN_ID_1, CAN_CHANNEL0); SYS_PORTS_PinToggle(PORTS_ID_0, PORT_CHANNEL_E, PORTS_BIT_POS_3); PLIB_CAN_ChannelUpdate(CAN_ID_1, CAN_CHANNEL0); PLIB_INT_SourceFlagClear(INT_ID_0, INT_SOURCE_CAN_1); } Any ideas? I am a litte bit lost... Without FreeRTOS everything works fine. Thanks! |
|
相关推荐
10个回答
|
|
一段时间后,我也尝试使用Fieltos与CAN总线和谐V1.08,并有同样的问题。我终于拿出了FreeRTOS,就像你说的CAN总线工作。我甚至会发射。
以上来自于百度翻译 以下为原文 A while back I was also trying to use FreeRTOS together with CAN bus in Harmony v1.08 and had the same issue. I eventually took out the FreeRTOS and like you said the CAN bus worked. Mine would even transmit. |
|
|
|
我用FreRotos 8尝试了和声1.08,但是这并没有改变任何东西。发送没有问题(我不使用IRQ来发送)。
以上来自于百度翻译 以下为原文 I tried Harmony 1.08 too with FreeRTOS 8 but that does not change anything. Sending is no problem (I do not use IRQs for sending). |
|
|
|
我在PIC32 MZ设备上有完全相同的问题。没有FreeRTOS,所有的工作都很好,但是如果它在CAN RX中断中使用的话,可以重置设备。对于我来说,CAN的传输也可以和FreeRTOS一起工作,因为它不使用中断。删除RTOS不是我的选择。你能请SH吗?你是如何解决这个问题的?也许是小代码片段?我相信这可能是一个错误的和谐+自由。也许来自微芯片支持的人可以证实这一点?和声生成代码能符合FreeRTOS吗?可以用“回声”的基本例子来检查这个行为。谢谢!
以上来自于百度翻译 以下为原文 I have exactly the same problem on PIC32MZ device. Everything works fine without FreeRTOS, but resets device if it is used in CAN RX interrupt.. For me also Transmission of CAN is working fine even with FreeRTOS since it is not using interrupts.. Removing RTOS is not an option for me. Can you please share how did you solve this? Maybe small code snippet? I believe this might be a bug for Harmony + FreeRTOS. Maybe someone from Microchip support can confirm this? Is Harmony generating code for CAN that is compliant with FreeRTOS? Basic example for CAN "echo" can be easily used to check this behavior. Thank you! |
|
|
|
|
|
|
|
|
|
|
|
V1.1是生命的终结。他们不会修复它的任何错误。opvices。移动到V2.04,看看它们是否修复了。找到问题并自行修复。不要使用他们的驱动程序,将CAN总线编码为您自己。
以上来自于百度翻译 以下为原文 V1.11 is end of life. They will not be fixing any bugs in it. Options.
|
|
|
|
我测试了V2.04,甚至有更坏的情况。大炮运行的非RTOS版本的CAN例子。至少接收CAN消息不起作用。唯一的修改是,我选择了CF4TX和C1RX引脚使用MHC,并重建它。我在V1.11做了同样的事情,在没有FreeRTOS的情况下它工作了,但是这里不起作用。有没有人尝试使用“PIC32 MZ嵌入式连接与浮点单元(EF)起动器套件”,并设法使其工作在新的和声版本?
以上来自于百度翻译 以下为原文 I did tested V2.04 and have even worse situation. Cannon run non RTOS version of CAN example. At least receiving CAN messages is not working. The only modification is that I selected RF4 RF5 as C1TX and C1RX pins using MHC and rebuild it. same thing I did at V1.11 and there it worked without FreeRTOS but here it doesn't work.. Did anyone tried any CAN example using "PIC32MZ Embedded Connectivity with Floating Point Unit (EF) Starter Kit" and managed to make it work on new Harmony version? |
|
|
|
我有同样的问题,但是用USAT RX中断。我运行的“UARTHYBASIC”的例子:没有OS,没有中断:罚款!-没有操作系统,中断:好!-自由,不中断:好!- FRIERTOS,带有中断:代码挂起!我使用PIC32 MZ EF SARTITKIT,MPLAB V4.00,和声V2.04,FreeRTOS 90.0
以上来自于百度翻译 以下为原文 I have the same problem, but with USART RX interrupt. I run the "uart_basic" example: - No OS, no interrupt: fine! - No OS, with interrupt: fine! - FreeRTOS, no interrupt: fine! - FreeRTOS, with interrupt: code hang! I'm using PIC32MZ EF Starterkit, MPLAB v4.00, Harmony V2.04, FreeRTOS 9.0.0 |
|
|
|
弗拉迪米尔,如果修改了一个示例的PIN,您是否将新配置保存为自己的BSP?这2.04个例子似乎修改了基于BSP脚本的PIN选择。检查系统定义文件的PPS线,以确保它符合您的想法。
以上来自于百度翻译 以下为原文 Vladimir, if you modified an example's pins, did you save the new config as its own BSP? the 2.04 examples seem to revise pin selections based on bsp scripts. Check the system definition file's pps lines to make sure it did what you think it did. |
|
|
|
和声通常没有用OS选项和许多外围设备测试。我已经遇到了这个问题,新的和改进的和声2,当FreeRTOS被包含在项目中时,USB演示文稿崩溃了。更深入地看生成的代码,它看起来像FreeRTOS需要的ISR包装器被正确地生成,所以哈蒙必须有更深的缺陷。事实上,它影响多个外围设备表明它是代码生成中的一个常见缺陷。有点令人沮丧的是,“版本2”+仍然是完全beta版。
以上来自于百度翻译 以下为原文 Harmony is in general not tested with the OS options and many of the peripherals. I have run in to exactly this problem with the new and improved Harmony 2.0 where the USB demos crash when FreeRTOS is included in the project. Looking deeper in to the generated code it looked like the ISR wrappers that FreeRTOS needs were properly generated, so there must be a deeper bug in Harmony. The fact that it impacts multiple peripherals suggests that it's a common flaw in the code generation. Somewhat frustrating that 'version 2.0'+ is still thoroughly beta. |
|
|
|
只有小组成员才能发言,加入小组>>
5161 浏览 9 评论
1999 浏览 8 评论
1928 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3171 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2226 浏览 5 评论
731浏览 1评论
613浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
503浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
629浏览 0评论
527浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-23 00:18 , Processed in 1.415503 second(s), Total 94, Slave 78 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号