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.

CCS/TMS570LC4357: Is halcogen code defining/using VIM_CHANNELS correct?

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

In Halcogen generated code, in HL_sys_vim.h the define is

(line 85)

#define VIM_CHANNELS 96U

This is used in HL_sys_vim.c in two places:

lines 62 through 65

typedef volatile struct vimRam
{
    t_isrFuncPTR ISR[VIM_CHANNELS];
} vimRAM_t;

and in vimInit()

        for (i = 0U; i < VIM_CHANNELS; i++)
        {
            vimRAM->ISR[i] = s_vim_init[i];
        }

Question: Is the macro for VIM_CHANNELS incorrect? What happens with the VIM Channel 96-127? Should VIM_CHANNELS be 126?

There are VIM channels associated with SCI4 Low (119), SCI4 high (114) etc.

Please clarify.

Thank you

Subu