I am getting a unaligned access hardfault on the ldr.w instruction with Thumb2 on ARM Cortex-M7. The microcontroller is an STM32H745xx and I am using STM32CubeIDE.
I am using the STM32 arm-eabi-none-gcc toolchain to compile the project, with the -mno-unaligned-access option.
instruction: ldr.w r3, [r3, #1288] ; 0x508
Any ideas on how this might be fixed?
FYI: I am very new to the embedded world.