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.

TMS570LS0914: HalCoGen does not generate CAN3 interrupt handler

Part Number: TMS570LS0914
Other Parts Discussed in Thread: HALCOGEN

I'm using HalCogen 04.07.01, and while it is generating interrupt code fine for CAN1 and CAN2, it seems not to generate the routine can3HighLevelInterrupt despite having interrupt for several messge boxes enabled in the GUI and also having channel 45 enabled as an IRQ in the VIM.  Note that sys_vim.c does reference can3HighLevelInterrupt, so the output code does not even link successfully.

Is interrupting via CAN3 unsupported in HalCoGen?  Can I essentially copy the can2HighLevelInterrupt routine with edits of canREG2 to canREG3 (and maybe a couple other obvious changes)?

Thanks!

  • Hello,

    Please check the following in HALCoGen :

    1. Ensure the CAN3 driver is enabled in the Driver Enable Tab.

    2. Check whether VIM Channel 45 is enabled.

    HALCoGen does support CAN3 interrupts.I'm able to generate the can3HighLevelInterrupt code.

    Regards,
    Akshay

  • Ah THANK YOU!  I thought I had checked everything, but it was the enable driver that I was missing.  Sorry for a silly simple question. 

    However, I would like to suggest that HalCoGen should be a little better about flagging inconsistencies.  For example, if you enable CAN3 on the CAN3 GUI tab but have not enabled it on the driver page (or enable the interrupt on the gui but have not enabled it on the VIM page) it should flag that as a warning.

    Thanks again for the help!