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.