LLCE CAN

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LLCE CAN

248 Views
JACK_Q
Contributor I

我创建了样例工程Can_Llce_DS_Loopback_S32G274A_M7,已经能够和外部CAN盒进行通信,通信使用的是LLCE CAN0。后续我对该工程的配置进行了修改只保留了我想要的五路LLCE CAN,配置详情如下:

Screenshot 2026-05-15 110957.png

在配置的过程中我只删除了对应出错的地方,配置完成后在在配置界面只有一个时钟的警告,但是这个警告本身在能通信的那个版本就是有的所以不是问题。我已上传了我修改后的工程,麻烦帮我看下是什么问题导致的不能通信。

0 Kudos
Reply
2 Replies

104 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @JACK_Q,

Sorry for the late reply. I will write in English but you can reply in Chinese, the community will translate the message automatically for me. When you mention that the new version does not communicate, do you see any CAN signal coming out of the board? Does the program run normally or does it get stuck at some part in the execution?

 

Thanks for the information.

0 Kudos
Reply

94 Views
JACK_Q
Contributor I

我改完配置后,尝试过debug,单步运行至发送接口can_retval = Can_43_LLCE_Write( CanHO_Config1_TX0, &CanMessage[u8CtrlIdx]);接口的返回值是E_OK也就是0Screenshot 2026-05-20 150318.png

按照接口说明来看就是写命令已完成,并且程序还是在一直轮询执行CAN发送,但我的接收端CAN盒显示无数据,使用CAN盒软件自带的波特率侦测也检测不到(这个波特率侦测我同样在原来的例程中试过是可以检测的)。

                     
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2365900%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3ELLCE%20CAN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2365900%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20created%20the%20sample%20project%20Can_Llce_DS_Loopback_S32G274A_M7%2C%20which%20is%20already%20able%20to%20communicate%20with%20the%20external%20CAN%20box%2C%20using%20LLCE%20CAN0.%20I%20then%20modified%20the%20configuration%20of%20this%20project%20to%20keep%20only%20the%20five%20channels%20of%20LLCE%20CAN%20that%20I%20wanted%2C%20and%20the%20configuration%20details%20are%20as%20follows%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202026-05-15%20110957.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-05-15%20110957.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-05-15%20110957.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-05-15%20110957.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F385535i14461E01BA5550C5%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202026-05-15%20110957.png%22%20alt%3D%22Screenshot%202026-05-15%20110957.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EDuring%20the%20configuration%20process%20I%20only%20deleted%20the%20corresponding%20error%2C%20after%20the%20configuration%20is%20completed%20there%20is%20only%20a%20clock%20warning%20in%20the%20configuration%20screen%2C%20but%20this%20warning%20itself%20is%20in%20the%20version%20that%20can%20communicate%20so%20it%20is%20not%20a%20problem.%20I%20have%20uploaded%20my%20modified%20project%2C%20please%20help%20me%20to%20see%20what%20the%20problem%20is%20that%20I%20can't%20communicate.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2367931%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LLCE%20CAN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2367931%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F257205%22%20target%3D%22_blank%22%3E%40JACK_Q%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3ESorry%20for%20the%20late%20reply.%20I%20will%20write%20in%20English%20but%20you%20can%20reply%20in%20Chinese%2C%20the%20community%20will%20translate%20the%20message%20automatically%20for%20me.%20When%20you%20mention%20that%20the%20new%20version%20does%20not%20communicate%2C%20do%20you%20see%20any%20CAN%20signal%20coming%20out%20of%20the%20board%3F%20Does%20the%20program%20run%20normally%20or%20does%20it%20get%20stuck%20at%20some%20part%20in%20the%20execution%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThanks%20for%20the%20information.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2368177%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20LLCE%20CAN%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2368177%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3EAfter%20I%20changed%20the%20configuration%2C%20I%20tried%20debug%2C%20single%20step%20run%20to%20send%20the%20interface%20can_retval%20%3D%20Can_43_LLCE_Write(%20CanHO_Config1_TX0%2C%20%26amp%3BCanMessage%5Bu8CtrlIdx%5D)%3B%20the%20return%20value%20of%20the%20interface%20is%20E_OK%20also%200%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202026-05-20%20150318.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Screenshot%202026-05-20%20150318.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F386123i8741A5A426F80A26%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Screenshot%202026-05-20%20150318.png%22%20alt%3D%22Screenshot%202026-05-20%20150318.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EAccording%20to%20the%20description%20of%20the%20interface%20is%20that%20the%20write%20command%20has%20been%20completed%2C%20and%20the%20program%20is%20still%20polling%20for%20CAN%20transmission%2C%20but%20my%20CAN%20box%20on%20the%20receiving%20end%20shows%20no%20data%2C%20and%20I%20can't%20detect%20it%20using%20the%20baud%20rate%20detection%20that%20comes%20with%20the%20software%20of%20the%20CAN%20box%20(this%20baud%20rate%20detection%20I%20also%20tried%20in%20the%20original%20routine%20can%20be%20detected).%3C%2FP%3E%3CDIV%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E