ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
secure_exception.c
Go to the documentation of this file.
1
28
29#include <stdint.h>
30
31#include "ra8_log.h"
32
33static const char* s_tag = "SECEXC";
34
35typedef enum : uintptr_t {
36 k_ra8_sfsr_addr = 0xE000EDE4UL,
38
61void SecureFault_Handler(void);
63{
64 const uint32_t sfsr = *(volatile uint32_t*)k_ra8_sfsr_addr;
65 ra8_log_error_val(s_tag, "SecureFault SFSR", sfsr);
66 __asm__ volatile("cpsid i");
67 while (1) {
68 __asm__ volatile("wfi");
69 }
70}
ra8_secure_excep_addr_t
@ k_ra8_sfsr_addr
SecureFault Status Register.
void SecureFault_Handler(void)
Cortex-M85 SecureFault handler (NVIC vector 7).
static const char * s_tag
Logging / check tag.
Definition ra8_app.c:17
Lightweight Logging Interface for ra8-firmware.
#define ra8_log_error_val(tag, message, value)
RA8 log error val.
Definition ra8_log.h:337