We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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 you 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!!
You may have been caught by the fact that some (if not all) CAN controllers explicitly block reception of their own transmissions. I.e. your expectation to find something in the transmitting node's own RX buffer may be wrong.