__asm { ldr pc,=addr }
or
__asm { "ldr pc,=addr" }
getting compilation error, pc replaced with r15 but not getting compiled any suggestions/references
Hi, Thanks for the quick response. While using function pointer I get Hard Fault Exception with FORCED bit enabled.
>>I get Hard Fault Exception
So is it conceivable that you're not jumping to valid code? As I pointed out in other threads the address must be ODD for 16-bit THUMB code, the Cortex-M will not run 32-bit ARM code.