Im using threadx, in that i have defined a task in which i initialize my external flash memory regions i have a 116 byte structure which contains memory information
when i use this structure locally i get a never execute hardfault error where as when i move that variable to global i dont get hardfault please note that the stack size of task is 6200 bytes Attaching screenshots
please note that the stack size of task is 6200 bytes
So have you tried increasing that - by at least 116 bytes ... ?
A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.