What stack size to put when using functions like fopen (in read mode) to prevent Hard Line Fault and overflowing the stack??
I tried by putting this
Stack EQU 0x00040000 It didn't work!
Is it overflowing the stack, or are you passing in NULL or broken pointers. Helps to identify what's actually causing the hard fault, rather than fishing for reasons.
The processor provides methods of identifying the location/cause, if you can move beyond a tight loop doing nothing.
Does fopen() have any code behind it to do anything, or is it hitting a BKPT/SWI?