Burra,
That's not quite true. The software uses the XGATE to manage all the CAN communications and provides some drivers for the CPU to allow it to retrieve the messages. The bulk of the activity is handled by the XGATE.
I should also point out that the driver as published is for the first silicon of the XD512. It is mentioned on page 8 that it supports this mask set (L40V). The silicon you most likely have is from the second mask set (L15Y) and there are some differences in the initialisation of XGATE required. The format for the CodeWarrior project also changed.
The app note is in the queue to be updated but at the moment I don't have a completion date. The difference is in the XGMCTL register which is now a word write rather than a byte.
The latest version of codewarrior also has the option for automatically downloading the XGATE code to RAM, but this function is included in the source code as well.
If you want to use the app note as a starting point you should be able to use most of the code and update the XGATE initialisation and project format. If you want to use the app note "as is" it may be better to wait unitl the new app note & software is available.
timob, I've asked for the converted version to be posted immediately.
The app note revision is still underway and you'll see an update to that before long. Of course we may find that we want to make further enhancements to the software as we are updating the app note - in which case there may be another update in the near future.
Hey burra,
The Softec board should come with a CD that has some example projects on it. One of them is a MSCAN example and has some functions that do the basic CAN operations (initialize, receive, send). May want to take a look at those to see if they help.
- Michael