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.