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.
Solved! Go to Solution.
2024-12-12 03:52 AM
I can't say exactly which action solved the problem, in this code some timers are used, the corresponding interrupt service routines were installed. I deactivated all these timers for the time being. So the problem was elsewhere.
2024-12-12 03:22 AM
The Problem is solved.
2024-12-12 03:23 AM
Hello,
Please, put the description of the solution and mark it as solution.
Thanks.
2024-12-12 03:52 AM
I can't say exactly which action solved the problem, in this code some timers are used, the corresponding interrupt service routines were installed. I deactivated all these timers for the time being. So the problem was elsewhere.