Part Number: RM57L843
Other Parts Discussed in Thread: HALCOGEN
Hi!
I have a user-defined function inside which I have a local array of size 550 (uint8 uc_array[550]).
Whenever the program flow/control executes this function, after its successful execution, it jumps to "_prefetch". When I decrease the array size from 550 to lets say 250 or so, it works fine.
I guessed that its a problem with the stack size. Therefore, I increased the stack size from 0x00001000 to 0x0004500 (User Stack Length field) in Halcogen so that it reflects in my .map file. Even after doing this, I still get the same problem i.e., stopping at "_prefetch" post execution of the function.
I tried to see the value of CPSR instruction status register and the address register to see that maybe an imprecise abort has got the controller in this situation. I find the status register with a value of "0x00000000" and the instruction address register to be, "0x00FE00FF".
I want to understand why is this happening and how to go about it (as in declaring local variables of higher sizes and not expecting "_prefetch").
Thanks,
Chetan.
