LPC 1768 CAN-BUS SEND MESSAGE PROBLEM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC 1768 CAN-BUS SEND MESSAGE PROBLEM

1,752 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by erdoganguler on Mon Apr 21 23:14:08 MST 2014
Hi

I am using lpc1768. I can read data from CAN Line without any problem but I cant send any message.  I tried "normal operatıon mode- self test mode and global test mode"

I dont think the problem is about Clock settings because I can read messages.

I tried to write own code . It didnt work.  then I use keil examples for lpc17xx.  It didnt work either.


Thanks

Original Attachment has been moved to: can%20problem.rar

Labels (1)
0 Kudos
6 Replies

966 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by md_taraq on Thu Jun 05 01:18:44 MST 2014
Hi erdoganguler,
Even I am facing similar problem.Is your code working now?
If yes then please let me know what changes you have done to make it work.
Please guide.
0 Kudos

965 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by yilmazkircicek on Tue May 06 08:09:20 MST 2014
Dear Mr. Güler,

We did not use the supplied api's, libs and examples, so I do not know how message transmission is handled with CAN2_SendMessage(....)  But first;

- Please describe your test setup, how to decide that your message did not transmitted ? A second HW, PC IF or just debug or ACK ...

- I have take look your code, before digging into more detail, please keep this in mind, a vicious cycle is not a good idea for communication channel testing. The controller that you have 3
set of transmission buffer and you does not seem to be consider required transmission time (data, bit stuffing, crc etc.) Maybe api can seek for the available TX buffer
for transmission but please sure that if it control that the message is transferred prior to load new data.  First you can set a regular interrupt (considering baud rate and data length etc.)
Your loop will be faster that a packet transmission even if 1Mbps for 29 bit and buffer can be uptaded continiously before find a means to transmit.

- Bus can be stuck a certain position, do you check bus condition (Error counts, error states etc.)

Regards.
0 Kudos

966 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wouter on Thu Apr 24 08:43:00 MST 2014
A schematic of your board and measurement on CAN TD/CANH/CANL signals may also be helpful
0 Kudos

966 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by R2D2 on Thu Apr 24 08:13:49 MST 2014

Quote: erdoganguler
...and SN65HVD230D...



RS  :quest:
0 Kudos

966 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by erdoganguler on Thu Apr 24 08:02:27 MST 2014
Hi,
Thanks for reply.  I use my own circuit. I use lpc1768 as uC. and SN65HVD230D as tranciever. I can read data on CAN Line. but I cant send any. do you think that if hardware have problem?
0 Kudos

966 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wouter on Tue Apr 22 09:46:00 MST 2014
Hi Erdogan,

If also the Keil example does not work, it's most likely a hardware issue. Which board are you using? You can also try running the LPCOpen CAN examlpe, which works for sure.

Regards,
Wouter
0 Kudos