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.

CC2640 & OAD : #10099-D error

Other Parts Discussed in Thread: CC2640

Hi, 

When I try to switch to a OAD with off chip flash it seems that I run out of space in my application, getting the following linker error:

"C:/ti/simplelink/ble_cc26xx_2_01_00_44423/Projects/ble/common/cc26xx/CCS/cc26xx_ble_app_oad.cmd", line 106: error #10099-D: program will not fit into available memory. placement with alignment fails for section ".const" size 0x2b6a . Available memory ranges:
FLASH size: 0xefff unused: 0x707 max hole: 0x6f7
error #10010: errors encountered during linking; "CC2640_App.out" not built

  • I tried changing  and defining ICALL_STACK0_ADDR used by cc26xx_ble_app_oad.cmd ( it looks ke i can squeeze out some space from the stack section) but in the .map the length doe not change and I keep getting the error.
  • What is PAGE_SIZE in cc26xx_ble_app_oad.cmd ?

I need some guidance in reshaping the map and try to make my application fit again

Providing relevant copy and paste below.

Thanks

Paolo 

My incomplete App .map file:

MEMORY CONFIGURATION

name origin length used unused attr fill
---------------------- -------- --------- -------- -------- ---- --------
FLASH 00001000 0000efff 0000eaf8 00000507 R X
SRAM 20000000 000044bb 00003fe4 000004d7 RW X


SEGMENT ALLOCATION MAP

run origin load origin length init length attrs members
---------- ----------- ---------- ----------- ----- -------
00000000 00000000 00000598 00000598 r--
00000000 00000000 00000598 00000598 r-- .cinit
00000000 00000000 00002b6a 00002b6a r--
00000000 00000000 00002b6a 00002b6a r-- .const
00001010 00001010 0000eaf8 0000eaf8 r-x
00001010 00001010 0000003c 0000003c r-- .resetVecs
0000104c 0000104c 0000eabc 0000eabc r-x .text
20000000 20000000 000000c8 00000000 rw-
20000000 20000000 000000c8 00000000 rw- .vecs
20000430 20000430 00000010 00000000 rw-
20000430 20000430 00000010 00000000 rw- .TI.bound:dmaRxControlTableEntry0$42
20000440 20000440 00000010 00000000 rw-
20000440 20000440 00000010 00000000 rw- .TI.bound:dmaTxControlTableEntry0$42
20000500 20000500 00000010 00000000 rw-
20000500 20000500 00000010 00000000 rw- .TI.bound:dmaRxControlTableEntry1$42
20000510 20000510 00003af3 00000000 rw-
20000510 20000510 00000010 00000000 rw- .TI.bound:dmaTxControlTableEntry1$42
20000520 20000520 00002389 00000000 rw- .data
200028b0 200028b0 00001753 00000000 rw- .bss
200040b8 200040b8 00000400 00000000 rw-
200040b8 200040b8 00000400 00000000 rw- .stack

My BLE stack .map file show the following: 

MEMORY CONFIGURATION

name origin length used unused attr fill
---------------------- -------- --------- -------- -------- ---- --------
FLASH 00011000 0000e000 0000da68 00000598 R X
SRAM 200044bc 0000042b 00000400 0000002b RW X
$BOUND$0x20004fec 20004fec 00000010 00000010 00000000 R IX