I've been over the sequential write portion of code more times than I can count and it may have something to do with the problem. I was just now able to succeed sending data over the CAN! While the information isn't correct, some of the numbers I'm putting in are coming up on the computer so that's a good thing.
I think the sequential write/bit modify stuff has something to do with it. Where I'm expecting data (i.e. - the data for byte one (D0) in the data field), I'm seeing the address. Perhaps it is expecting just to run through the data and not have to address each variable when I load the buffer. That may be why I was overloading the number of bytes and crashed the Microchip interface. Instead of seeing 8 bytes of data, it was seeing 16.
First I'm going to SAVE this code! Then I'll start to modify the code a little bit and work my way up to two-way communication with all of the little additions needed to have an error free CAN node. If it took me this long to get something going, I can't imagine how long it will take to write the full code
But, at least I'm past step one, which hopefully was the hardest. Again, thank you so much for your help. I'll be back sooner rather than later to ask a million more questions.
Chris
Bookmarks