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.

How can I adjust the heap and stack values?

Other Parts Discussed in Thread: CONTROLSUITE, TMS320F28035, TMDSDOCK28035

customer said:

I tried adjusting the heap and stack values from the project properties and it doesn't seem to make any changes in the map file.

Can you see if you can re create the issue.

I can adjust the stack size without a problem.  Let's explore the differences between what I've done and what you have.  Here is my setup, procedure and results.

Setup:

IDE: Code Composer Studio  Version: 5.3.0.00090
    C2800 Compiler Tools 6.1.3
Firmware: controlSUITE v3.1.3 - February 26, 2013
    C:\TI\controlSUITE\Release Notes.txt
Example: FlashingLeds-F28035
    C:\TI\controlSUITE\development_kits\TemplateProjects\FlashingLeds-F28035_v1.0\FlashingLeds-Main.c
Device: TMS320F28035
Hardware: F28035 Piccolo Experimenter's Kit  TMDSDOCK28035

Procedure and results:

1. Compile with the default stack size.

a.  Import F2803x Flashing LEDs Project from TI Respirce Explorer
b.  Note stack size input.  
         Project --> Properties --> Build --> C2000 Linker --> Basic Options --> Set C system stack size --> 0x380 (default)
c.  Project --> Build project (or Run --> Debug)
d.  Note stack size output

FlashingLeds.map said:
 

.stack     1    00000050    00000380     UNINITIALIZED
                  00000050    00000380     --HOLE--

2. Compile with a smaller stack size

b.  Reduce the stack size input. 
         Project --> Properties --> Build --> C2000 Linker --> Basic Options --> Set C system stack size --> 0x370
c.  Build/Debug project
d.  Note stack size output

FlashingLeds.map said:

.stack     1    00000050    00000370     UNINITIALIZED
                  00000050    00000370     --HOLE--

3. Compile with a larger stack size

a.  Increase the stack size input. 
         Project --> Properties --> Build --> C2000 Linker --> Basic Options --> Set C system stack size --> 0x390
b.  Build/Debug project
c.  Note stack size output\

FlashingLeds.map said:

.stack     1    00000050    00000390     UNINITIALIZED
                  00000050    00000390     --HOLE--