Part Number: CC1310
Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI C/C++ Compiler
This may belong in a different forum, but here is what I'm seeing:
I've reserved the top two pages for application use in my memory map : (condensed cmd file)
#define FLASH_BASE 0x0
#define FLASH_SIZE 0x6000
#define APPFLASH_LENGTH 0x2000
#define APP_FLASH_BASE 0x6000
/* System memory map */
MEMORY
{
/* Application stored in and executes from internal flash */
FLASH (RX) : origin = FLASH_BASE, length = FLASH_SIZE
/* App Flash */
AppFlash(RW) : origin = APP_FLASH_BASE, length = APPFLASH_LENGTH
My program compiles and is smaller 24k (using CC1310F32RHB), but I get an error saying my .text section won't fit in available flash. When I look at my allocation map, the linker appears to be wasting almost an entire page of flash reserving space for sys bios.
SEGMENT ALLOCATION MAP
run origin load origin length init length attrs members
---------- ----------- ---------- ----------- ----- -------
00000000 00000000 0000003c 0000003c r--
00000000 00000000 0000003c 0000003c r-- .resetVecs
00000000 00000000 00004c48 00004c48 r-x
00000000 00000000 00004c48 00004c48 r-x .text
0000003c 0000003c 00000164 00000164 r--
0000003c 0000003c 00000164 00000164 r-- .const
000001a0 000001a0 0000020c 0000020c r--
000001a0 000001a0 0000020c 0000020c r-- .cinit
00001000 00001000 000004f0 000004f0 r--
00001000 00001000 0000003c 0000003c r-- .const:ti_sysbios_knl_Task_Object__PARAMS__C
0000103c 0000103c 00000034 00000034 r-- .const:ti_sysbios_knl_Mailbox_Object__PARAMS__C
Is it possible to move the ti objects, or place other objects between 20C and 1000?