Took me forever to be able to log back in for some reason. Thank you for your comments.
There is definitely enough stack space as I have allocated 0x800 and monitoring the stack during usage, it never goes above 0x30E. Oddly enough, after adding that code, the issue never happened and hasn't happened since?
I will monitor this and post anything new in case it pops back up.
Quick question about the stack although I think I know the answer.
- The stack works backwards, yes?
- So if the stack goes up to 0x1FFFFFFF, then the maximum stack size should be monitoring the minimum value starting at 0x1FFFFFFF?
I used the following code to trace the stack:
static inline uint32_t __get_MSP(void)
{
register uint32_t regMainStackPointer __ASM("sp");
return(regMainStackPointer);
}