Hardfaults because of alignment after updating to STM32CubeIDE 1.18.1
I am using STM32U5 MCUs in my development. The code seems to be broken after updating from 1.16.1 to 1.18.1 and migrating the project using the latest version of compiler tools.
Following the debug to disassembly, I see 16-bit or 32-bit STR, LDR access to odd addresses. These are part of a struct that has a byte and 16-bit/32-bit elements. Based on my understanding of any ARMV8, the compiler tools are supposed to do byte access when not aligned.
The USBX CDCACM code based on the example generated from the 1.16.1 IDE, migrated to 1.18.1 seems to see the issue as well with lots of structures defined as PACKED (ALIGNED(1)).
Is this a known issue or am I missing something.
Thanks
Sansh
