Hi, NXP Experts,
By using LLCE and PFE, CAN frames received by LLCE can be encapsulated and sent to PFE for transmission (Can2Eth); or Ethernet frames received by PFE can be transferred to LLCE for decoding and transmission on the respective CAN bus(es) (Eth2Can). The source CAN or Ethernet frames are all from outside bus/network.
Is there any method to implement following functions by LLCE&PFE without the help of Host Core:
1. encapsulate CAN frames which send out to bus by S32G, and then sent to PFE for transmission
2. decode Ethernet frames which send out to network by S32G, and then sent to respective CAN bus
Hi,
Inside LLCE you can create routing tables and advance filters for these situations. The following is said on the LLCE Firmware Reference Manual [Page 12, v1.0.4]:
"CREATE_AF_DESTINATION - create a new destination rule to be used for frames which are accepted by specific filters. Those rules are used by the advanced features in order to deliver received frames to other destinations than standard host (can2can, can2eth, logging, etc.) This command return a rule id which shall be used by command SET_ADVANCED_FILTER. See Llce_Can_CreateAfDestination for more details about command parameters."
An example for this routing can be found on the Can2Can example available on the LLCE firmware.
Please, let us know.