OK. That looks correct.
Can you try the GPIO test I mentioned earlier? Confirm at least that the PINS are causing a transmit and that there is a received signal back?
OK. That looks correct.
Can you try the GPIO test I mentioned earlier? Confirm at least that the PINS are causing a transmit and that there is a received signal back?
@ Dave McLaughlin -
it works, when I use
CAN can = new CAN(CAN.Channel.Channel_1, (uint)(((T2 - 1) << 20) | ((T1 - 1) << 16) | ((BRP - 1) << 0)));
CAN can2 = new CAN(CAN.Channel.Channel_2, (uint)(((T2 - 1) << 20) | ((T1 - 1) << 16) | ((BRP - 1) << 0)));
to define the two cans.
if I use
can_dw.InitializeCAN(15, 8, 20);
can_dw2.InitializeCAN(15, 8, 20);
it doesnot. Maybe, there are some problem that I did not find. but, anyway, I can move to the next step now. XD, thank you!!
I hope GHI can check this, I do not know if this only happens to me.
I am not familiar with the code but the first calls have the option to select the CAN channel
The optional calls do not so they will default, I assume, to channel 1.
Good luck with your project.
@ Dave McLaughlin -
yes, you are right, thank you!!