Hi weiping,
I am working with the example code given by you but the problem is while i am trying to send a CAN message it is not completing the transmission, its blocked in polling the transmission complete flag, can you please solve me this issue, FYI i am using TLE7250 CAN Tranceiver. Thanks in advance.
Hari
Hi weiping,
Thanks for the reply,as you informed i have configured another Hardware as a receiver in listen only mode and connected to the CAN bus, but its of no use,
the problem still remains the same, code is blocking in the while loop for checking the completion of transmission, and it is incrementing the transmitter error count.
As i know CAN doesn't require any acknowledgement for completing transmission as it is not a peer to peer communication protocol, but i tried as you informed and is of no use. So, can you please help me out to clear this problem.
Regards,
Hari
And that's the problem. In listen only mode node can't ACK messages from other nodes. No ACK forces sender to resend it's message. Without active no-listenonly node your sender can't complete sending.
You know it wrong.
Hi Edward Karpicz,
Thanks for your reply, i got resolved with the problem of transmission complete flag. But i got struck with another problem,
Here while i am transmitting CAN frame in another node i am able to receive it, but while receiving i am getting the exact ID what i am transmitting but the data is being corrupted. So, can you suggest me any procedure or any validations i need to check while transmitting or receiving data.
Generally speaking, if the ID is correct,data can't be error. are you sure the transmitter send the data you want?
In additon, it's recommend to use external crystal as CAN' clock source,
Hi kef2& Weiping,
Thanks for your support, i had successfully transmitted and received the CAN Frames, I got solved with the problem of receiving wrong data.
The problem is while i am continuously transmitting data i have not updated my data pointer which is incrementing while loading into registers, i got the bug and solved it thanks for you support.
Hari.
Hi Edward,
I am sure of sending 4 bytes of data and checking for the 4 bytes of data in receiver end.
I can see the transmitted Data 4 bytes in CANTDSR registers while transmitting, but while receiving i am getting 0xFF in CANRDSR0, CANRDSR1, CANRDSR2, CANRDSR3 registers.
Dear Mr. Karpicz,
thank you for your information; I think that I mailed by an incorrect subject.
Yours
Franz Raaber
Von: Edward Karpicz
Gesendet: Mittwoch, 21. August 2013 11:13
An: Raaber Franz
Betreff: Re: - MC9S08DZ60 MSCAN
<https://community.freescale.com/>
MC9S08DZ60 MSCAN
reply from Edward Karpicz<https://community.freescale.com/people/kef2?et=watches.email.thread> in 8-bit Microcontrollers - View the full discussion<https://community.freescale.com/message/345893?et=watches.email.thread#345893>