Using the TC33x MCMCAN's Nodes as a Hardware Gateway

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
adbrimhall
Level 1
Level 1
5 sign-ins First solution authored First reply posted

I'm new to the Aurix/Tricore and was wondering if there is an example of how to effectively use the MCMCAN module as a hardware gateway that can receive a message on one node and automatically transfer and transmit on another node.  In our previous projects we used an XMC for this functionality and it worked great. We are now targeting the TC33x and trying to work out something similar. 

The datasheet mentions automatic transferring of messages in section 40.3.1.6.1, but it didn't provide much information.  

Any ideas on how to go about it?

Thanks!

0 Likes
1 Solution
ugo_8a
Employee
Employee
10 solutions authored 25 sign-ins 25 replies posted

Hello, just one more piece of information here:

XMC and AURIX TC2xx devices used the MultiCAN IP which had a "Gateway functionality built in", however AURIX TC3xx uses Bosch MCMCAN IP witch fundamentally works differently then MultiCAN, this IP gives priority to support more and CAN-FD frames but there is no Gateway function as in MultiCAN. Section 40.3.1.6.1 describes a way to be able to do some "Gateway" however on my experience this is limited and not similar to the functionality in XMC or TC2xx, so unfortunately in many cases the Gateway function need to be a more elaborated process in TC3xx and it requires a combination of DMA transfers and some CPU involvement.

View solution in original post

0 Likes
2 Replies
Di_W
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 100 likes received
This functionality needs a receive interrupt or a watermark interrupt within a FIFO,triggering a DMA transfer. The transmit objects will be automatically triggered to transfer the messages below,via timer underflow. 

From above description, Receive Msg Interrupt  ->  DMA,        Timemout  ->  Transfer Msg, so the recieved message should be transfer to buffer 1/2/3. This is my understanding.

0 Likes
ugo_8a
Employee
Employee
10 solutions authored 25 sign-ins 25 replies posted

Hello, just one more piece of information here:

XMC and AURIX TC2xx devices used the MultiCAN IP which had a "Gateway functionality built in", however AURIX TC3xx uses Bosch MCMCAN IP witch fundamentally works differently then MultiCAN, this IP gives priority to support more and CAN-FD frames but there is no Gateway function as in MultiCAN. Section 40.3.1.6.1 describes a way to be able to do some "Gateway" however on my experience this is limited and not similar to the functionality in XMC or TC2xx, so unfortunately in many cases the Gateway function need to be a more elaborated process in TC3xx and it requires a combination of DMA transfers and some CPU involvement.

0 Likes