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.

Compiler/CC2640: Change the stack-app memory map boundary

Part Number: CC2640

Tool/software: TI C/C++ Compiler

I have run out of memory in my BLE application using internal flash.  

Since there is unused in stack project, want to take 0x8000 from there.

So I try to change the code boundary manually.  I had followed the doc swru393d

  • 3.12.2 Disabling the Frontier Tool
  • modify both ccs_linker_defines.cmd & ccs_compiler_defines.bcfg

I had changed both cmd file in both Stack & Apps project.

/*
** Stack Frontier Generator 1.1.0 (2017-03-30 18:04:30.349000)
**
** WARNING - Auto-generated file. Modifications could be lost!
--define=ICALL_STACK0_START=0xe000
--define=ICALL_STACK0_ADDR=0xe001
*/

--define=ICALL_RAM0_START=0x20004348
--define=ICALL_STACK0_START=0x16000
--define=ICALL_STACK0_ADDR=0x16001

In the Apps map file, I do see the changes take place from E000 --> 16000

FLASH                           00000000 00016000 0000cf6e 00009092 R X
FLASH_LAST_PAGE  0001f000 00001000 00000058 00000fa8 R X

However, in Stack map file, it remain the same as E000, what did I missed should be changed ??

ENTRY POINT SYMBOL: "startup_entry" address: 0000e001

FLASH 00000000 0001f000 00010058 0000efa8 R X

Thanks for your advice