Jump to content
43oh

Changing address space of .bss section for CC3200


Recommended Posts

Hi 

I am developing a program for CC3200. The global variables in my program consumes quite an amount of space. As I continue to develop, I foresee there will be more space required. 

I am seeing the following from Energia compiler output. CC3200 has 1MB Flash. Both .text section and .bss section take 196KB. It seems like there is still space available. Is it possible to change the loader configuration to extend the address space of .bss section?

"Sketch uses 35440 bytes (18%) of program storage space. Maximum is 196608 bytes.
Global variables use 167124 bytes (85%) of dynamic memory, leaving 29484 bytes for local variables. Maximum is 196608 bytes.
Low memory available, stability problems may occur."

Thanks,
Dennis

   

Link to post
Share on other sites

Hi Rei,

I am not quite familiar with the syntax for linker. It seems like I just need to change the length like the following. May I run by you if this is the only place to be modified or is there other place require update as well? Thanks! 

MEMORY
{
    SRAM (rwx) : ORIGIN = 0x20004000, LENGTH = 0x00040000  
}
 

Link to post
Share on other sites

The only change I made on the cc3200.ld was to modify the heap size.

You can find more information at the §3 Linker Scripts of The GNU linker.

Alternatively,

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...