2 years ago
#64730
ethorn
ldr.w instruction causing unaligned access hardfault on ARM Cortex-M7 with Thumb2
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.
arm
stm32
cortex-m
thumb
stm32cubeide
0 Answers
Your Answer