2025-01-22 07:27 AM
Hello,
I'm currently tring to do an app and I want to switch in unprivileged mode when I'm in secure and privileged mode. The switch is working but the uart is not working in unprivileged mode. It works in privileged mode. When I debug my code go in the hardfaultHandler(). I don't understand why. Here is my code attached. The hardfault happen in line 227. It exactly happen when I try to acces with the HAL_UART_Received().
Thanks for your help
2025-01-22 07:33 AM
@ECoud.1 wrote:When I debug my code go in the hardfaultHandler(). I don't understand why.
Debugging Hard Faults:
2025-01-22 07:43 AM
I already know where the fault is. I'm using generated code by ioc to program. I have not write the function so it's really hard to understand. The way it's configured it's supposed to work because the same program work for app with no TrustZone so it's really weird. I would really like to have some help.
Thank you