This is a really odd problem and i don't know where the problem comes from. I'm working on a piece of code that is a little math intense and i don't know whether this is an issue with stack size or the uC does not have enough RAM (2048 bytes). The problem is the program won't exit this function, Update Table (see attached file for more details). Initially, i thought it was the stack size so i increased the stack size to 0x350 in the .prm file (If i go any higher i will get memory allocation error) and the problem is still there.
I'm totally lost and don't know where to tackle the problem.
Original Attachment has been moved to: Calculation.c.zip