This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/AWR1642BOOST: there is high risk that system stuck during initializing CANFD/MCAN in busy CAN traffic

Part Number: AWR1642BOOST
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI C/C++ Compiler

Hello,

Without heavy CAN traffic, system initialize almost success without problem.

But once in busy CAN traffic(two or above CANs with 80ms cycle), system have high risk to dead stuck during CANFD initialization.

Tracing code and found CANFD_init() stuck at HwiP_create() and no return.

Any comments or solution?

mmwave_sdk: v03_05_00_04

bios: v6_73_01_01

xdctools: v3_50_08_24

toolchain: ti-cgt-arm_16.9.6.LTS

  • Hello Huang,

    The code location you mentioned, is during the setup of CANFD data & error interrupt (HwiP_create) with TI-rtos.

    So is stuck at data interrupt setup or error interrupt within CANFD_init() function?

    And you say that this behavior is observed during high traffic only. does it stuck within sysBios/Tirtos hwi_create function which is being called within HwiP_create function to enable interrupt and its handler.

    One possibility I can think of if device gets any CANFD interrupt (due to external traffic), and during that moment application is still preparing for CANFD initialization.

    Address: 0xFFF7CA54 is CANFD:IE which has all the interrupt bits, could you check if any of these bits gets set while calling CANFD_init.

    Regards,

    Jitendra