Dual CAN support

来源:互联网 发布:聚宝盆时时彩计划软件 编辑:程序博客网 时间:2024/06/05 04:48

1. Dual CAN support is needed in one new project, MM-CAN and C-CAN

2. Regular processing

    a) Vector GENy configuration

    b) Tranceiver driver

    c) MCU (v850) interrupt enable, 2 CAN controllers enabled


Everything sounds OK, But...... Only one NM CAN MSG is sent out and no longer any MSG sent, CAN MSG RX also fail.


Root cause after debug:

CanInterruptRx and CanInterruptTx is used as ISR in source code, but for dual CAN support case, CanIsrRx_0/1 and CanIsrTx_0/1 should be used.

Because the channel number should be the parameter of function CanInterruptRx and CanInterruptTx.


0 0
原创粉丝点击