Jump to content
Sign in to follow this  
TomF

Out Of Memory Popup

Recommended Posts

Hi,

 

My pic is now out of memory, so i need to optomise some functions which are using loads of code space.

 

(my program is text string heavy, so its using all the code space!)

 

However, the codebar -> function info tab is empty, which is really not very helpful.

 

Can this be changed to show function info even if out of memory?

 

This would be a great help.

Share this post


Link to post
Share on other sites

Function info is generated by linker (because this information is only known when actual code is generated) so if project can't be linked no function info will be available.

 

Regards,

Pavel

Share this post


Link to post
Share on other sites
Function info is generated by linker (because this information is only known when actual code is generated) so if project can't be linked no function info will be available.
Not quite true. Some dummy target memory is used in linker so that a program that exceeds the target devices memory will still generate the memory info even if the actual target memory is all used. Max overusage is 512 instructions on PIC16 and 2048 instructions on PIC18 devices. Above this level no memory report is generated.

 

Regards

Dave

Share this post


Link to post
Share on other sites
OK, so can function info be shown when out of memory error is shown?
Yes, as long as you are not more than 512 instructions over on a PIC16 and 2048 instructions over on a PIC18.

 

Regards

Dave

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.

Loading...
Sign in to follow this  

×
×
  • Create New...