Jump to content
Sign in to follow this  
VisSim Forum Archives

how to know how much program memory is used by the DSP?

Recommended Posts

Submitted by huanbk05 on Mon, 01/25/2010 - 17:38 
Hello, I'm trying to compare between CCS and vissim about memory to be used on DSP after compiler program. example: my program is control open loop AC motor use V/f, and i see %CPU usage. now i want to see how much ram memory on dsp is used.

Share this post

Link to post
Share on other sites

Submitted by Anders89 on Tue, 01/26/2010 - 05:00.

There are 4 types of memory:


Memory Type Description Location
Program the executable code + constants (initialized data)    flash or RAM
Data variable storage (uninitialized data) RAM
Stack local variables kept on the function stack RAM
Heap dynamic memory RAM

All are allocated at compile time, but stack and heap are used during your program execution and the exact amount used can't be determined until your program is running. To see how much flash+RAM you are using, select Download in the Tools > Codegen... dialog, then click Coff Info.... At the bottom of the window you will see the summary of memory use.
To determine stack and heap usage, select VisSim/DSP > -your target- > Probe Target.... You can adjust the stack and heap allocation in the Code Gen.. dialog based on the results of the report.

Share this post

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.

You are posting as a guest. If you have an account, please sign in.
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.

Sign in to follow this  

  • Create New...