Hot!Info on required stack size increases for different components.

Author
boyfreda
New Member
  • Total Posts : 12
  • Reward points : 0
  • Joined: 2017/10/03 05:32:40
  • Location: 0
  • Status: offline
2018/09/25 11:36:37 (permalink)
0

Info on required stack size increases for different components.

Hello,
 
I have been debugging an issue related to the heap on a harmony project I have been working on.  I traced this issue back to a function fp_mulmod which eats 544 bytes out of the stack for a local variable and also calls an fp_mod function which eats another 544 bytes out of the stack.  This was overflowing the allocated stack memory and corrupting the heap.  I inquired on a post in the compiler section of the forums and I was informed that I am supposed to calculate my own stack size (Otherwise the default appears to be 1024 from the xc32 user's guide, not even enough to make a single fp_mulmod function call).
 
What I would like to know, is, is there any info in the harmony documentation or elsewhere on stack requirements for different harmony components?  I could not find any info in the harmony documentation, specifically the crypto library help, that would indicate the stack size requirements for it.
#1

0 Replies Related Threads

    Jump to:
    © 2019 APG vNext Commercial Version 4.5