|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
CPU0 (M85) Secure world bootloader/fallback for the e-reader. More...
Go to the source code of this file.
Functions | |
| void | main (void) |
| Secure fallback main entry point. | |
Variables | |
| volatile uint32_t | g_ra8_secure_fallback_count = 0U |
| Diagnostic counter incremented if Secure fallback main is reached. | |
CPU0 (M85) Secure world bootloader/fallback for the e-reader.
On normal execution, this function is not reached. SystemInit calls ra8_trustzone_init, which configures the SAU regions and transitions the CPU to the Non-Secure world to run the actual e-reader firmware.
If the transition fails or is bypassed (e.g. on off-target builds), main() runs as a fallback, increments a diagnostic counter, and parks the CPU safely.
Definition in file main.c.
| void main | ( | void | ) |
Secure fallback main entry point.
The application entry point Reset_Handler hands control to.
Definition at line 37 of file main.c.
References g_ra8_secure_fallback_count, internal_audio_loopback_init_clocks_and_led(), internal_audio_loopback_init_codec(), internal_audio_loopback_init_console(), internal_audio_loopback_panic_halt(), internal_audio_loopback_print_count(), k_audio_loopback_block_samples, k_audio_loopback_print_period, k_ra8_board_led1, k_ra8_ok, ra8_board_audio_play_sample_block(), ra8_board_led_toggle(), ra8_isr_globals_enable(), and s_audio_loopback_silence.
Referenced by Reset_Handler().