CAN transmitter problem in LPC2129

Status
Not open for further replies.

shwethask

Newbie level 4
Joined
Mar 6, 2012
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,316
I'm doing a project on CAN communication in LPC2129. i got some sample codes from online nad i tried to port it in my controller. problem i face is that, my controller is not transmitting any message. when i debug my code in KEIL IDE, status bit (CANGSR, CANSR) shows that my controller is transmitting from the buffer I have selected. When I look at my oscilloscope, I see no data being transmitted. So my code never reaches receiver part.
Can someone tell me where would i be making mistake?? Does anyone of you have working CAN samle code of LPC2129/ LPC21XX??

thankyou.
 

CAN help in LPC2129!!

I'm a final year student doing thesis work. I have CAN communication in my work. I tried few sample codes and my own code in my controller, but neither one of them transmit message. I have two controllers where one acts as transmitter and other as receiver. I tried connecting oscilloscope to TX pin to see CAN message, but all I see is CAN bus idle state. When i debugged my code in KEIL IDE, the status registers (cangsr/cansr) shows my controller is transmitting message from the TX buffer I have chosen and my code gets stuck there. It doesnt goto RX side. Rx buffer is empty.
Could someone tell me where would I be going wrong? Can I get a working sample code for CAN?

Forgot to mention, I use LPC2129 board!!


thank you in advance!!
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…