Hi,
I'm debugging my software on Zephyr using gcc. My processor is Cortex-M7(Armv7-M) with PU.
I got UNALIGNED fault as shown below. It looks like independent from CCR setting. So I guess my problem is categorized as "Unaligned LDM, STM, LDRD, and STRD instructions always fault irrespective of the setting of UNALIGN_TRP."
I'm using gcc with -O2 option. This problem intermittently occurred depending on #source files. Does anyone help what gcc options I should use resolve/debug this problem?
Best regards,
Koji
Don't look at gcc, look at your code for bad pointers. Check the exception address, BFAR and MMFAR.