cancel
Showing results for 
Search instead for 
Did you mean: 

Different hard faults on STM32H562

lors
Associate

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.

0 REPLIES 0