2024-12-10 04:10 AM
I have a problem here:
When calling strcat() on a target string with odd length and odd source, the controller goes into hardfault, SCB_UFST_UNALIGNED is set.
If I deactivate the unaligned trap (SCB_CCR_UNALIGN_TRP == 0), the following happens.
The controller goes into hardfault on calling putchar(), SCB_BFSR_IBUSERR set. Many previous calls to putchar() work fine.
I use CUBEide with GNU Tools for STM32 12.3rel1.
The code has already been compiled for other STM32 derivatives and other versions of GNU Tools, and works fine on these systems.