Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Hello All,
Environment :CC26504XS custom board, IAR Workbench version - 7.40.2.8570, TIMAC - 1.5.2, TI RTOS - V 2.11.01.09. TI RTOS V 2.11 is selected as it supports TI MAC.
On TI RTOS V2.11, I am unable to use Cache as RAM, however the same is working fine on RTOS V2.16.
I have followed the steps mentioned in the below link:
On RTOS V2.11, ccfg.c DEFAULT_CCFG_SIZE_AND_DIS_FLAGS is defined as below without GPRAM flags,
#define DEFAULT_CCFG_SIZE_AND_DIS_FLAGS ( \
( ((uint32_t)( SET_CCFG_SIZE_AND_DIS_FLAGS_SIZE_OF_CCFG << CCFG_SIZE_AND_DIS_FLAGS_SIZE_OF_CCFG_S )) | ~CCFG_SIZE_AND_DIS_FLAGS_SIZE_OF_CCFG_M ) & \
( ((uint32_t)( SET_CCFG_SIZE_AND_DIS_FLAGS_DISABLE_FLAGS << CCFG_SIZE_AND_DIS_FLAGS_DISABLE_FLAGS_S )) | ~CCFG_SIZE_AND_DIS_FLAGS_DISABLE_FLAGS_M ) & \
( ((uint32_t)( SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_ALT_DCDC_SETTING << CCFG_SIZE_AND_DIS_FLAGS_DIS_ALT_DCDC_SETTING_S )) | ~CCFG_SIZE_AND_DIS_FLAGS_DIS_ALT_DCDC_SETTING_M ) & \
( ((uint32_t)( SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_XOSC_OVR << CCFG_SIZE_AND_DIS_FLAGS_DIS_XOSC_OVR_S )) | ~CCFG_SIZE_AND_DIS_FLAGS_DIS_XOSC_OVR_M ) )
The flags CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM_S and CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM_M are not defined in hw_ccfg.h of V 2.11 hence I modified the DEFAULT_CCFG_SIZE_AND_DIS_FLAGS as below by defining CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM_S, CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM_M as the same values that of startup/ccfg.c of RTOS V 2.16.
#define DEFAULT_CCFG_SIZE_AND_DIS_FLAGS ( \
( ((uint32_t)( SET_CCFG_SIZE_AND_DIS_FLAGS_SIZE_OF_CCFG << CCFG_SIZE_AND_DIS_FLAGS_SIZE_OF_CCFG_S )) | ~CCFG_SIZE_AND_DIS_FLAGS_SIZE_OF_CCFG_M ) & \
( ((uint32_t)( SET_CCFG_SIZE_AND_DIS_FLAGS_DISABLE_FLAGS << CCFG_SIZE_AND_DIS_FLAGS_DISABLE_FLAGS_S )) | ~CCFG_SIZE_AND_DIS_FLAGS_DISABLE_FLAGS_M ) & \
( ((uint32_t)( SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM << CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM_S )) | ~CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM_M ) & \
( ((uint32_t)( SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_ALT_DCDC_SETTING << CCFG_SIZE_AND_DIS_FLAGS_DIS_ALT_DCDC_SETTING_S )) | ~CCFG_SIZE_AND_DIS_FLAGS_DIS_ALT_DCDC_SETTING_M ) & \
( ((uint32_t)( SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_XOSC_OVR << CCFG_SIZE_AND_DIS_FLAGS_DIS_XOSC_OVR_S )) | ~CCFG_SIZE_AND_DIS_FLAGS_DIS_XOSC_OVR_M ) )
compiler/linker files are also correctly defined.
Code compiles, links and loads. If i check the GPRAM memory its contents are "-- -- --" no data is available in GPRAM.
Please suggest if there are specific settings needs to be performed for RTOS V 2.11.
Best regards
Naveen