I am working on Cortex M0+ controller. Following is issue i am facing in __main library function.
While executing library function __main (Keil compiler internal fucntion for initializatioin data and bss section) code is going in hardfault. If any one has solution for this please let me know.
Well I suspect if the decompression is breaking, something on the input side is wrong.
If you have a failing case, I'd suggest you send it to Keil Support for review. There's not enough information here to replicate the conditions.
You need to look closely at the .MAP file to see why the address might be going out of bounds and inducing the Hard Fault.