Page 1 of 1

using can 1

Posted: Fri 9. Dec 2016, 17:07
by JPS7495
Hello
I try to use can 2 (can 1 is working).
When I replace CanIf0 by CanIf1 it doesn't change anything, it is always Can1 which works.

Do you have an example with Can2 working?

regards

Re: using can 1

Posted: Mon 12. Dec 2016, 09:10
by S.Michaelsen
In the example sources the second CAN interface is used for the OBDII communication. If you want to use it for other purposes plase make sure to remove any OBDIIServer() call in mian.c.

BR,
Stephan

Re: using can 1

Posted: Mon 12. Dec 2016, 09:56
by JPS7495
Hello
OBDIIServer is not call in main.c.
and the duplication of u8_t CAN_Startup (u32_t dwCANBaudrate) by replacing Canif1 by CanIf 0 doesn't work.
How can we do?
Is it possible to have the source code for Library to modify easily the software and adapt out own software without disturbing you?

Regards

Re: using can 1

Posted: Mon 12. Dec 2016, 13:38
by S.Michaelsen
Have you defined and used separate receive and transmit queues (e.g. CanTxQueue2 and CanRxQueue2)?
No, unfortunately it is not possible.

Best Regards,
Stephan