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 have problems to get the CAN controller on my Infineon XC886 CM running. Have someone example code for sending a CAN message via CAN node 0 (CAN RXD Port 1_6, CAN TXD Port 1_7)? I have tryed to use Dave-generated code with the following code in my main-function:
un_32bit canTestObject;
canTestObject.ubDB[0] = 0x77; canTestObject.ubDB[1] = 0x76; canTestObject.ubDB[2] = 0x75; canTestObject.ubDB[3] = 0x74;
CAN_vLoadData(0x00, &canTestObject.ulVal); CAN_vSetMSGVAL(0x00); CAN_vTransmit(0x00);
But it only works in the software-simulator (in der Peripherals->MultiCAN->CAN Communication 0 window the sended messages appear) but not on my self-made board (nothing to see with oscilliscope on the MCU-Pins 1_6 and 1_7).
Another one for the list of reasons why something might work in simulation, but not in real life:
* You have misunderstood the way some external device works, so your software is based on this misunderstanding and your simulation is based on the same misunderstanding - hence they work together in simulation, but not with the real behaviour of a real device in real life!