Content originally posted in LPCWare by cacycleworks on Wed Feb 25 15:34:24 MST 2015
Quote: St.Nicholas
Finally I got the 4357 CAN working both in Basic mode (not recommended), and in the unfiltered mode, i.e. the acceptance filter lets all the messages through. One major problem is that the 4357 user manual does not contain all the information, and some of it not clear.
1. Basic Mode: After reading the manual several times, I realised that the TEST bit in the control register had to be permanently set, as well as the BASIC bit in the test register. Also, there is no ware any information where to read the message ID from, and the message length - I had to reverse engineer it by watching all the registers to see what changed.
2. The LPCOPEN API is a bit crude. I had to resort to some bare register access, and rework the message object setup function, after which my application worked.
I must thank the STR9 & KEIL whose example for the same CAN cell actually works, and helped me to complete my mission.
Cheers, Nicholas
Do you have any sample code for how you did get the ID and length? Or notes about how you accessed this? I'm considering using NXP for a CAN application but it seems the code isn't really implemented.
Thanks,
Chris