Tool/software: TI-RTOS
Hi,
I was developing my program on the CC1310 launchpad without any problems. Now I am migrating my codes to my custom board based on the CC1310F32.
In the project properties, I have changed the device to CC1310F32 and in the CC1310_LAUNCHXL_TIROS.cmd file, I change the flash and ram definition to:
* ======== CC1310_LAUNCHXL.cmd ======== */ --stack_size=1024 /* C stack is also used for ISR stack */ HEAPSIZE = 0x1000; /* Size of heap buffer used by HeapMem */ /* Override default entry point. */ --entry_point ResetISR /* Allow main() to take args */ --args 0x8 /* Suppress warnings and errors: */ /* - 10063: Warning about entry point not being _c_int00 */ /* - 16011, 16012: 8-byte alignment errors. Observed when linking in object */ /* files compiled using Keil (ARM compiler) */ --diag_suppress=10063,16011,16012 /* The starting address of the application. Normally the interrupt vectors */ /* must be located at the beginning of the application. */ //#define FLASH_BASE 0x0 //#define FLASH_SIZE 0x20000 //#define RAM_BASE 0x20000000 //#define RAM_SIZE 0x5000 #define FLASH_BASE 0x0 #define FLASH_SIZE 0x8000 #define RAM_BASE 0x20000000 #define RAM_SIZE 0x4000
Now I am getting the error:
warning #10325-D: creating memory range $BOUND$0x1b000 to accommodate BOUND section ".TI.bound:flashBuf"
"../CC1310_LAUNCHXL_TIRTOS.cmd", line 77: error #10099-D: program will not fit into available memory. placement with alignment fails for section ".text" size 0x854b . Available memory ranges:
FLASH size: 0x8000 unused: 0x6c50 max hole: 0x6ab8
error #10010: errors encountered during linking; "rfWakeOnRadioRx_CC1310_LAUNCHXL_tirtos_ccs.out" not built
Is this settings correct? How do I know how much memory my current program is using? I am using NVS in my program and I need about 100 bytes to store some information. Is there any possibility of freeing up more memory, or I will have to use another CC1310 with more memory eg CC1310F64 or CC1310F128?