This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

__main is going in hardfault

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.

Parents
  • Check the memory map passed to the linker, either via the IDE GUI or scatter file. Check also in the .MAP file, about the size of the created sections and against the specification of your particular part choice.

    It is like the RAM is at the wrong address, or specified as being too large.

Reply
  • Check the memory map passed to the linker, either via the IDE GUI or scatter file. Check also in the .MAP file, about the size of the created sections and against the specification of your particular part choice.

    It is like the RAM is at the wrong address, or specified as being too large.

Children