How to modify Can_Llce_DS_Can2Can example to transmit on physical CAN pins?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to modify Can_Llce_DS_Can2Can example to transmit on physical CAN pins?

237件の閲覧回数
aarfer3800
Contributor I

 

Hi community,

I’m working with the Can_Llce_DS_Can2Can_S32G399A_M7 example included in S32 Design Studio 3.5, running on the S32G-VNP-RDB3 board. I’m loading the project on the M7_0 core using a Multilink Universal debugger.

According to the example description, this demo shows the internal CAN2CAN routing functionality of the CAN_LLCE driver. However, what I need is to modify this example so that the CAN messages are physically transmitted on the controller’s CAN pins, allowing me to capture them using an external analyzer such as PCAN-USB FD.

I’ve reviewed the configuration files (Can_43_LLCE_VS_0_PBcfg.c) and I noticed that advanced filters (Llce_Can_AdvancedFilterType) with references to Can2Can routing entry are used. As far as I understand, this means that the frames never leave the physical bus.

My goal:

  • Remove the internal routing

  • Configure regular filters and HOHs to allow transmission through the physical CAN pins

  • Visualize the CAN messages on an external sniffer (PCAN)

Questions:

  • Is there any official guide or recommendation for modifying this example to achieve that?

  • Is it enough to remove advanced filters and use CAN_43_LLCE_RECEIVE and CAN_43_LLCE_TRANSMIT, or do I need additional changes (e.g., transceiver setup, pin configuration, clocks, etc.)?

Thanks in advance for your support!

タグ(4)
0 件の賞賛
返信
1 返信

194件の閲覧回数
carlos_o
NXP TechSupport
NXP TechSupport

Hi @aarfer3800 

To represent the example in a visual way you can look at the README file that is at the llce_sample_app_af at your install directory, there you could see the following:

carlos_o_0-1753825413904.png

 

The main.c file includes comments that explain how the message flow works with the current configuration. You can also review and adjust the configuration of the Advanced Filter and the LLCE using the ConfigTools.

As illustrated in the demo application, data is sent externally from Controller 1 to Controller 0. That same message is then internally routed to Channel 15, which forwards the frame externally to Controller 14.

In this scenario if you remove the advance filters, you will not route the message from controller 0 to channel 15 internally and the transmission between channel 15 and controller 14 will not happen. 

I apologize for any inconvenience this may cause, but we do not have a specific example that full fill your application, the development process will need to be carried out on your end.

If you encounter any issues during the implementation, feel free to reach out. Please don’t hesitate to let me know if there’s anything else I can assist you with.

0 件の賞賛
返信