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/TMS570LS0432: Reg_Read_Compare(XXX,REBASELINE);Reg_Read_Compare(XXX,COMPARE)

Part Number: TMS570LS0432
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Hello 

Team

 I use TMS570LS0432 cpu,I see the safe_library2.4.0

register_readback.c file 

for example

#if SYSTEM_ENABLED
#if !(defined(_RM42x_) || defined(_TMS570LS04x_))
static system_config_reg_t systemBaseline={NOT_BASELINED};
#endif

Can't check this register  SYSTEM_ENABLED ,and There's some registers  TCMFLASH、SRAM

 I don't know I need to modify the library file?They  dont use  Reg_Read_Compare(XXX,REBASELINE);Reg_Read_Compare(XXX,COMPARE).

  • Hello Whong,

    The SYSTEM_ENABLED, TCMFLASH_ENABLED etc are defined register_readback.h. If enabled, the functions (system.c) in HALCoGen generated code will be called: 

    void systemGetConfigValue(system_config_reg_t *config_reg, config_value_type_t type)

    void tcmflashGetConfigValue(tcmflash_config_reg_t *config_reg, config_value_type_t type)

    void sramGetConfigValue(sram_config_reg_t *config_reg, config_value_type_t type)

    If those functions are defined in your HALCoGen code, there is no problem to enable them and call them. Yes, you can modify the code to enable any existing module on the device.