Hi Petr Stancik, I have written the can driver for mpc 5777m same as the example for mpc5777c, It 's working fine and transmission and reception is happening, but My doubt in your code is your always making TXBAR = 1 for Tx buffer 0 when transmitting , as you configured 2 Tx buffers for transmitting can messages.What about another Tx buffer .
Why can't we check the whether txbuffer 2 is pending or not and make txbuffer 2 'sTXBAR = 1. so that we can transmit messages very fast and if we configure all 32 tx buffers , then we can transmit with high speed.
Yes, you are right. I have created space for 2 TX buffers but within a code I used only single one.
It is up to you how many TX buffers you prepare for transmit. Once you request transmission for all TX buffers using the TXBAR[ARn] they are transferred based on priority, lowest Message ID gets highest priority and is transmitted next. In
case that multiple Tx Buffers are configured with the same Message ID, the Tx Buffer with the lowest buffer number is transmitted first.
Hi Petr Stancik, As per my project requirement I have to use all 32 buffers for transmit , currently I am using your code to transmit the messages(1 tx buffer TXBAR = 1). But it is very slow , So Kindly help me , what are the modifications I can do for your transmit msg function(defined in your example code for MPC5777C) so that I can transmit messages using all 32 buffers at a time . May be If I use all 32 buffers will make it fast .PetrS