你(们)好
我的客户报告说、在进行 CANBUSOFF 测试时、干扰帧会产生 BUSOFF、在此期间偶尔不会检测到错误标志位。 我不熟悉 C2000、可以帮您对此案例发表意见吗? 如果您能帮助分享一个 CANBUSOFF 检测示例、那将会很好。 我可以让客户先参考示例。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
你(们)好
我的客户报告说、在进行 CANBUSOFF 测试时、干扰帧会产生 BUSOFF、在此期间偶尔不会检测到错误标志位。 我不熟悉 C2000、可以帮您对此案例发表意见吗? 如果您能帮助分享一个 CANBUSOFF 检测示例、那将会很好。 我可以让客户先参考示例。
肖恩、
到目前为止、我们还没有 CANBUSOFF 检测示例。
[引用 userid="416625" URL"~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1163668/tms320f28034-can-busoff-detection-example "]在此期间未检测到错误标志位您能否分享客户是如何检查"错误标志"位的?
谢谢。
你(们)好
[报价 userid="495179" URL"~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1163668/tms320f28034-can-busoff-detection-example/4377252 #4377252"]您能否分享客户如何检查"错误标志"位?我的客户给了我以下代码、但似乎不完整、我可以要求客户提供完整的代码、但您能帮我检查您是否想要这样做吗?
if ((ECANaRegs.cannes.bit.EP=1)||(ECANaRegs.canes.bit.BO=1)||(ECANaRegs.canes.bit.SE=1)||(ECANaRegs.canes.bit.EW=1)||(ECANES=1.canes=1.cans.canes=1.canes=1.cans.bons|)
{
AppError.Flag.bit.AbsCANBusOffCount++;
if (AppError.Flag.bit.AbsCANBusOffCount>5)
{