Jump to content
Forum sending old emails Read more... ×
Sign in to follow this  
dcjw

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

   

Share this post


Link to post
Share on other sites

From the compiler output, it seems like the max space is 196KB. Is it possible to increase it to 256KB? Thanks!

Share this post


Link to post
Share on other sites

I am using rev4.1 board, so it has 256kB RAM. Can Energia IDE automatically determine what type of board and how much RAM I am using?

Share this post


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  
}
 

Share this post


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,

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×