Yahoo Groups just went screwy on me so I lost my nice long response. I'll do what I can to repeat it. I'm relatively sure that the CAN to USB connector and the software are running fine. I borrowed a test board from a co-worker that's working on something similar but with the 8051 board and his CAN is working. I hooked it up to my laptop and the software registered getting packets. I'll try and answer your other points now. > > - termination. Both ends of your cable need to be > terminated. BTW what are you using for cable? It is possible even likely > that neither the board or the Peak convertor have on-board termination > since the usual use of CAN is on a bus and only the ends of the bus should > be terminated. Like I said above, I think this is a non issue because it worked with another chip and board. The only difference was that I had to use a gender changer on mine to plug the PEAK CAN to USB converter into my board. > - baud rate. Make sure both sides are using the same baud > rate. Unfortunately that's not as straight forward a question as it sounds > since the rate is determined by the interaction of a set of parameters. This I'll have to do more searching on. I did check every one of the preset baud rates in the software on the laptop and none of them worked, but I'll do some more looking and get back to you. > - I expect that the Peak SW will include a facility to show the > error counters and bus state. It would be a good idea to take a look at > them although I expect at this point all they will tell you is that you are > in buss off state due to accumulated errors. Speaking of which, you must > reset both ends when retrying, otherwise you will be stuck in bus- off and > won't end up testing the changes. The only information I have about the buss in the software is that I get a "BUSHEAVY" message (whatever that is) when I unplug and plug in the cable to the board. It also tells me that overruns are 0 and QXmtFull (whatever that is) is 0. > - Another simple check make sure you haven't got your wires crossed. Since it worked on the other board, I have to assume this is ok. > - Also check to see if the Peak convertor has an isolated > interface. It may need power coming in from the bus side. > The PEAK converter gets its power from the USB cable according to the website. I appreciate your help on this, Robert. Some questions I have thought of, though I'm not experienced enough to know the answers to are: Is there a change in the code that is needed to make code targeted for a lpc2100 work on a lpc22xx board? What changes to the target options (if any) would I have to make? Are the clock speeds different for the different boards meaning I would have to recalculate my baud rate? If anybody has an idea, I'd really like to hear some suggestions. Thanks. Josh
Message
Re: CAN Examples on LPC2294
2005-06-15 by Josh Ferguson
Attachments
- No local attachments were found for this message.