Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
问题: 两个不同的CAN ID共用一个发送邮箱。在当前Can_Lld_IrqProcessMailBox的中断处理逻辑中,先调用CanIf_TxConfirmation通知上层发送完成,后续才调用Can_Lld_UpdateIdleState解锁邮箱。若这两个ID以高频交替发送,由于邮箱尚未解锁,后续报文可能无法及时写入,导致丢帧。 方案: 能不能把这里的CanIf_TxConfirmation函数放在Can_Lld_UpdateIdleState函数之后来解决这个问题?即先解锁邮箱再通知上层。其他地方均无改动,这样子有什么隐患吗?想交流一下 谢谢支持
confirmation和callback里面没有对邮箱的操作的话简单调换是可以的,如果有的话可以加个变量单独传到confirmation
参考这个帖子: https://forum.ytmicro.com/topic/935/mcal-v1-0-0-使用can的过程中发送报文后在canif_txconfirmation中断里面-再次调用can_write但是返回busy状态-是不支持这样连续发送吗/5
快速上手云途开发生态
发帖前请查看
帮助改进和优化YT CONFIG TOOL,有机会抽取YTM32B1ME0 EVB哦...