Jump to content

Recommended Posts

Hi All,

 

Got the following warning whilst compiling this morning:

 

Building CASM file

Serious Warning: Call stack usage exceeds:8!

 

Call Stack Usage Report

=======================

main and Task(s): hw used:7, exceeded by:0

interrupt: hw used:2, exceeded by:0

 

My question - Given 7 < 8 is this something I need to be worried about?

Or is the issue that 7 + 2 > 8 ?

ie. Does BoostC add an extra stack call (or two) and thus cause problems, or is it just warning me i've hit the maximum, or have I already exceeded the limit?

 

Boring stuff: SourceBoost 6.91, 16F876A 20MHz.

 

Thanks,

Matt.

Edited by doozer
Link to post
Share on other sites

doozer,

Building CASM file

Serious Warning: Call stack usage exceeds:8!

 

Call Stack Usage Report

=======================

main and Task(s): hw used:7, exceeded by:0

interrupt: hw used:2, exceeded by:0

 

My question - Given 7 < 8 is this something I need to be worried about?

Or is the issue that 7 + 2 > 8 ?

ie. Does BoostC add an extra stack call (or two) and thus cause problems, or is it just warning me i've hit the maximum, or have I already exceeded the limit?

You have hit the limit of the hardware call stack that the processor has - 8 for PIC16s.

 

It is only a warning as even though the total depth could spell danger, that might not actually be the case. For example you may have 8 deep calls while interrupts are disabled (or not yet enabled), and only 6 deep call when interrupts are enabled, and with your interrupt routine using a depth of 2 on the call stack your program would still function correctly.

 

You can use the additional software call stack if you desired to increase the call depth, but there is some additional overhead in RAM and code.

 

Regards

Dave

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...
×
×
  • Create New...