Hardfault Error Due to Misaligned Thumb-2 Function Pointer in ARM Cortex-M
ARM Cortex-M Thumb-2 Instruction Set and Function Pointer Misalignment The issue at hand involves a Hardfault error occurring during the execution of a callback function in an ARM Cortex-M-based system. The fault manifests when the program attempts to branch to a function pointer stored in register r3. The function pointer value in r3 is 0x00422091,…