Problem with UART in secure and unprivileged mode U5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-22 7: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
- Labels:
-
STM32U5 series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-22 7:33 AM
@ECoud.1 wrote:When I debug my code go in the hardfaultHandler(). I don't understand why.
Debugging Hard Faults:
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-22 7: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
