carloscn / blog

My blog
Apache License 2.0
119 stars 34 forks source link

[S32K344] Boot And Reset Sequence #215

Open carloscn opened 3 months ago

carloscn commented 3 months ago

[S32K344] Boot And Reset Sequence

This document describes the boot and reset sequence on the S32K344 hardware platform. In this section, we need to understand many mechanisms, the state machine, boot flow, and a variety of funtional resets. After reading this section, you will grasp at which point in the reset sequence the secure boot occurs.

The items tagged red are corresponding with the HSE firmware and the secure boot.

The reset process of the chip is shown in the following diagram:

We can separate two boot stages at the point of the HSE core, which are respectively before and behind the HSE core, the Reset process and Startup Process:

The following figure shows the all sub-stages of the boot and reset sequence:

1. Reset Process

The blocks are shown in the following diagram:

1.1 Power on Reset

1.2 Destructive Reset

1.3 Functional Reset

2. Boot Process

Note, BAF is the Secure Boot Assist Flash.

The IVT shall be:

IVT (IMAGE VECTOR TABLE) HEADER STRUCTURE [ BOOT_HEADER.C ]

3. Startup Process

Startup process (Applications core codes) From first instruction of Application Cores to before first instruction on main ().

APPLICATION BOOT SEQUENCE:

4. Summary