AN122
Execution Environment of OSPI Flash of GD32H7 MCU User Guide
2
Table of Contents
Table of Contents ...........................................................................................................2
List of Figures ................................................................................................................3
List of Tables ..................................................................................................................4
1Introduction...........................................................................................................5
2Hardware resources .............................................................................................6
2.1 OSPI.............................................................................................................................. 6
2.2 Real-time decryption (RTDEC) module ...................................................................... 6
3Algorithm download through IDE........................................................................7
4BootLoader support .............................................................................................8
5. Boot from OSPI Flash...........................................................................................9
5.1. Supported modes of OSPI Flash ................................................................................ 9
5.1.1 SDR mode .............................................................................................................................. 9
5.1.2 DTR mode............................................................................................................................... 9
5.2. OSPI boot configuration.............................................................................................. 9
5.2.1. OSPI boot mode selection ...................................................................................................... 9
5.2.2. GPIO mapping when OSPI boots ......................................................................................... 10
5.2.3. OSPI boot parameters ...........................................................................................................11
5.3. Security support in OSPI boot mode........................................................................ 11
5.3.1. Protection of files in OSPI Flash ............................................................................................11
5.3.2. Binding of OSPI Flash with MCU.......................................................................................... 12
6. Introduction to GD32H7xx LFIx .........................................................................13
6.1. File structure in OSPI Flash ...................................................................................... 13
6.2. Public encryption mode ............................................................................................ 13
6.2.1. Program file structure in public encryption mode ................................................................. 14
6.2.2. Preparation of massive production resources in public encryption mode ............................ 14
6.2.3. Support to massive production ............................................................................................. 15
6.3. User encryption mode............................................................................................... 16
6.3.1. Program file structure in user encryption mode.................................................................... 16
6.3.2. Preparation of massive production resources in user encryption mode .............................. 16
6.3.3. Support to massive production ............................................................................................. 18
7. Revision history..................................................................................................20