ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
main.c File Reference

CPU0 (M85) Secure world fallback for the trustzone_threadx_demo. More...

#include <stdint.h>
#include "ra8_boot_entry.h"
Include dependency graph for main.c:

Go to the source code of this file.

Functions

void main (void)
 Secure fallback main entry point.

Variables

volatile uint32_t g_tz_threadx_demo_fallback_count = 0U
 Diagnostic counter incremented if Secure fallback main is reached.

Detailed Description

CPU0 (M85) Secure world fallback for the trustzone_threadx_demo.

Tag
[Ring 6 / APP] {World: S}

Under normal execution, SystemInit runs ra8_trustzone_init which transitions the CPU directly to the Non-Secure world to run ThreadX.

If the transition fails, main() serves as a fallback.

Since
0.1.0

Definition in file main.c.

Function Documentation

◆ main()

void main ( void )

Secure fallback main entry point.

The application entry point Reset_Handler hands control to.

Since
0.1.0

Definition at line 34 of file main.c.

References g_tz_threadx_demo_fallback_count.

Variable Documentation

◆ g_tz_threadx_demo_fallback_count

volatile uint32_t g_tz_threadx_demo_fallback_count = 0U

Diagnostic counter incremented if Secure fallback main is reached.

Since
0.1.0

Definition at line 28 of file main.c.

Referenced by main().