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.

LAUNCHXL-CC1352P: BOUND section ".TI.bound:flashBuf0" spans the boundary of an existing memory range FLASH

Part Number: LAUNCHXL-CC1352P
Other Parts Discussed in Thread: SYSCONFIG

Hi,

I have been getting the below error

error #10324-D: BOUND section ".TI.bound:flashBuf0" spans the boundary of an existing memory range FLASH
error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. run placement with alignment fails for section ".TI.bound:flashBuf0" size 0x8000
error #10010: errors encountered during linking;

If i change the value 0x8000 to 0x4000 in below code snippet in ti_driver_confi.c file, the above error disappears.

static char flashBuf0[0x8000] __attribute__ ((retain, noinit, location(0x4e000)));

#elif defined(__IAR_SYSTEMS_ICC__)

__no_init static char flashBuf0[0x8000] @ 0x4e000;

#elif defined(__GNUC__)

__attribute__ ((section (".nvs")))
static char flashBuf0[0x8000];

#endif

NVSCC26XX_Object nvsCC26XXObjects[1];

static const NVSCC26XX_HWAttrs nvsCC26XXHWAttrs[1] = {
/* CONFIG_NVSINTERNAL */
{
.regionBase = (void *) flashBuf0,
.regionSize = 0x8000
},
};

#define CONFIG_NVS_COUNT 1

const NVS_Config NVS_config[CONFIG_NVS_COUNT] = {
/* CONFIG_NVSINTERNAL */
{
.fxnTablePtr = &NVSCC26XX_fxnTable,
.object = &nvsCC26XXObjects[0],
.hwAttrs = &nvsCC26XXHWAttrs[0],
},
};

const uint_least8_t CONFIG_NVSINTERNAL_CONST = CONFIG_NVSINTERNAL;
const uint_least8_t NVS_count = CONFIG_NVS_COUNT;

How can i get rid of this with 0x8000 as the region size?

Regards,

Sameena Shaikh