How to view code size, ram usage etc?

Author
bupthebroker
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2014/11/25 03:00:22
  • Location: 0
  • Status: offline
2015/02/05 02:50:49 (permalink)
0

How to view code size, ram usage etc?

Hi,
how can i see my code size, RAM usage etc when i compile in MPLAB X with xc32?
 
It only shows the following:
The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x7dfff


Regards
#1

4 Replies Related Threads

    maxruben
    Super Member
    • Total Posts : 3300
    • Reward points : 0
    • Joined: 2011/02/22 03:35:11
    • Location: Sweden
    • Status: offline
    Re: How to view code size, ram usage etc? 2015/02/05 04:53:45 (permalink)
    +1 (1)
    Window->Dashboard
    Memory usage will be shown after a successful compilation.
     
    /Ruben
    #2
    annapolis
    Administrator
    • Total Posts : 1808
    • Reward points : 0
    • Status: offline
    Re: How to view code size, ram usage etc? 2015/02/05 08:47:46 (permalink)
    +1 (1)
    XC32 also provides usage info after the build:
    Project Properties - xc32-ld - Diagnostics
    Display memory usage
    Generate MAP file
    #3
    crosland
    Super Member
    • Total Posts : 1521
    • Reward points : 0
    • Joined: 2005/05/10 10:55:05
    • Location: Bucks, UK
    • Status: offline
    Re: How to view code size, ram usage etc? 2015/02/05 09:05:52 (permalink)
    0
    maxruben
    Window->Dashboard
    Memory usage will be shown after a successful compilation.

    Only if you set the option to import symbols after compilation.
     
    I had the same issue, example demo projects would show memory usage. Any new project I created would not, by default.
     
    Andrew
    #4
    JoshuaHartwig
    Super Member
    • Total Posts : 357
    • Reward points : 0
    • Joined: 2014/02/10 10:58:13
    • Location: 0
    • Status: offline
    Re: How to view code size, ram usage etc? 2015/02/06 09:27:10 (permalink)
    +1 (1)
    crosland
    Any new project I created would not, by default.

    Microchip found that loading symbols after every build could take quite a bit of time in larger projects, so they changed the default setting to not load symbols (you can't estimate memory usage without reloading the symbols after the build).  There have been several optimization improvements in this area in the last few versions of MPLab X, but they have not reverted this change.  You will have to turn it on yourself.  Luckily, they added a clickable info right where the memory display would be on the dashboard that will take you to the correct setting.  Unluckily, it's a very unobtrusive text field that doesn't stand out in any way that people tend to miss.

    MPLab X red squiggles can lie.  What does the Compiler output say?
    XC8 update missing PLIBs?  Now are a separate download.  Code Configurator recommended for new projects.
    #5
    Jump to:
    © 2019 APG vNext Commercial Version 4.5