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.
Target Platform: LPC2119 and TJA1040 CAN transceiver. IDE : Keil uVision 4 Error: CAN Controller fails to transmit message. Debugging Devices Used: Keil ULink and Oscilloscope.
Steps to reproduce the error: 1. Store a CAN message in the Tx Mailbox of the CAN controller. 2. Set the Command register to transmit the message. 3. Do a while loop until global status register receives update of either "transmission success" or "transmit error counter reaches its limit".
Expected Behaviour to be observed by Keil Ulink on-chip Debugger: The global status register is updated of transmission success or transmission error counter reaching its limit.
Actual behaviour observed by Keil Ulink on-chip debugger: The program keeps running in the endless loop as described in step 3.
Expected Behaviour to be observed by oscilloscope: Waveform coming from CANTx Pin of LPC2119 to the other end at the CAN transceiver.
Actual behaviour observed by oscilloscope: No waveform is observed from CANTx Pin of LPC2119 to the other end at the CAN transceiver.
Remark: I have tried both my own program and MCB2100 BlinkyCAN example program from Keil on more than 3 LPC2119 microprocessors; all fails to transmit CAN messages. On the other hand, functionalities such as RS232 work perfectly on LPC2119.
Any advice is welcome. Thanks!