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.

RM46L852: Wrong define for VIM_CHANNELS (in sl_sys_vim.h)?

Part Number: RM46L852
Other Parts Discussed in Thread: HALCOGEN

Dear Hercules Team,

 

I have got another question from my customer regarding VIM_SRAM test using the TI Safety Library.

When working with HalCoGen for the RM46, it generates a sys_vim.h with #define VIM_CHANNELS 96U.

In the TI-Safety Library (Version 2.4.0) you find in sl_sys_vim.h the following code (line 52..60):

/* VIM General Configuration */

#if defined(_TMS570LS31x_) || defined(_TMS570LS12x_) || defined(_TMS570LS09x_) || defined(_TMS570LS07x_) || defined(_RM48x_) || defined(_RM46x_) || defined(_RM44x_) || defined(_RM42x_) || defined(_TMS570LS04x_)

#define SL_VIM_CHANNELS 96U

#endif

#if defined(_TMS570LC43x_) || defined(_RM57Lx_)

#define SL_VIM_CHANNELS 128U

#endif

 

That means, also here the #define VIM_CHANNELS will be set to 96U for the RM46 MCUs.

According to the datasheet, the VIM has 128 channels.

Can you please clarify if this is an bug in the TI Safety Library and also in the HalCoGen tool?

 

Thanks,

BR,
Matthias

  • Hi Matthias,
    which version of HALCoGen are they using? I verified in HALCoGen 04.07.00, that this define comes up with a value of 128.

    This is a bug in Hercules safety diagnostic library header file, but not used in the safety diagnostic library.
    thanks,
    Girish