We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I wrote a program to transmit an 8 bit A/D result on CAN2 controller port and reveive it on CAN1 controller port.The Tx happens properly but the CAN1 RX buffer is not able to capture it. My question is while simulating the program, is it necessary to 'connect' the pins of the 2 CAN controllers by some setting in the simulator? (because on a real target board, you would have to do so).
Yes. You would need to write a simulation script to do that. Fortunately, it's pretty easy to do. Take a look at the information for CAN simulation. Basically, you sit in a loop waiting for output on CAN2 and when you receive it you "send" it into CAN1.
This application note should get you started (http://www.keil.com/appnotes/docs/apnt_147.asp).
Jon