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

LPC1768 hard fault when using a function pointer

Hello,

I am working with a LPC1768. I don't have a lot of experience with it yet, so I am stuck doing something that seems very simple - but I cannot find the reason in the manual.
I am calling a function via a function pointer. Why is it then that the very first instruction of the target function

0x00000250 B510      PUSH     {r4,lr}506]  ; @0x1FFF0098

causes a hard fault? I am using the MSP stack, nothing fancy.

Thanks

0