Hi,
Is there any information how to set the cache SRAM as normal RAM in IAR? I've enabled it in CCS modify the included CCFG (from appBLE_ccfg.c) and change:
#define SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM 0x1 // Cache is enabled and GPRAM is disabled (unavailable)
to
#define SET_CCFG_SIZE_AND_DIS_FLAGS_DIS_GPRAM 0x0 // Cache is disabled and GPRAM is available at 0x11000000-0x11001FFF
After doing this you I've added the GPRAM area as well in the linker file (TOOLS/cc26xx_ble_app.cmd).
#define GPRAM_SIZE 0x2000 #define GPRAM_BASE 0x11000000 ... MEMORY { ... GPRAM (RWX) : origin: GPRAM_BASE, length=GPRAM_SIZE } SECTIONS { ... .data : > SRAM | GPRAM .bss : > SRAM | GPRAM .sysmem : > SRAM | GPRAM }
But how to specify it in the IAR ARM Linker Configuration File cc26xx_ble_app.icf?