GigaDevice Semiconductor GD32H7 Application Notes

GigaDevice Semiconductor GD32H7 Application Notes

Execution environment of ospi flash
Hide thumbs Also See for GD32H7:
Table of Contents

Advertisement

Quick Links

GigaDevice Semiconductor Inc.
Execution Environment of OSPI Flash of
GD32H7 MCU User Guide
Application Notes
AN122
Version 1.0
(April 2023)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the GD32H7 and is the answer not in the manual?

Questions and answers

Summary of Contents for GigaDevice Semiconductor GD32H7

  • Page 1 GigaDevice Semiconductor Inc. Execution Environment of OSPI Flash of GD32H7 MCU User Guide Application Notes AN122 Version 1.0 (April 2023)
  • Page 2: Table Of Contents

    AN122 Execution Environment of OSPI Flash of GD32H7 MCU User Guide Table of Contents Table of Contents ......................2 List of Figures ........................ 3 List of Tables ........................4 Introduction ......................5 Hardware resources ..................... 6 OSPI ..........................6 Real-time decryption (RTDEC) module ..............6 Algorithm download through IDE ................
  • Page 3: List Of Figures

    AN122 Execution Environment of OSPI Flash of GD32H7 MCU User Guide List of Figures Figure 6-1. Structure in public encryption mode ................14 Figure 6-2. Structure of online massive production in public encryption mode ......15 Figure 6-3. Structure of offline massive production in public encryption mode ......15 Figure 6-4.
  • Page 4: List Of Tables

    AN122 Execution Environment of OSPI Flash of GD32H7 MCU User Guide List of Tables Table 5-1. Boot mode selection ......................10 Table 5-2. Details of Boot mode ......................10 Table 5-3. OSPI GPIO pins ......................... 10 Table 6-1. File structure in OSPI Flash..................... 13 Table 6-2 Program file structure in public encryption mode ............
  • Page 5: Introduction

    AN122 Execution Environment of OSPI Flash of GD32H7 MCU User Guide Introduction OSPI can be used to connect external memories, including single, dual, quad, and octal SPI memories. It can work in three modes: indirect mode, status polling mode, and memory-ma pped mode.
  • Page 6: Hardware Resources

    AN122 Execution Environment of OSPI Flash of GD32H7 MCU User Guide Hardware resources OSPI GD32H7xx MCU provides two OSPI interfaces at most, namely OSPI0 and OSPI1. When OSPI is working in the indirect mode, OSPI register is used to perform all operations.
  • Page 7: Algorithm Download Through Ide

    AN122 Execution Environment of OSPI Flash of GD32H7 MCU User Guide Algorithm download through IDE Gigadevice official package provides the algorithm for downloading data to OSPI Flash through keil and IAR. After the package is installed, users can download data to OSPI Flash...
  • Page 8: Bootloader Support

    AN122 Execution Environment of OSPI Flash of GD32H7 MCU User Guide BootLoader support The built-in Bootloader of GD32H7xx MCU is able to burn data to OSPI Flash. For details, please refer to Precautions for AN126_GD32H7xx_BootLoader Operation.
  • Page 9: Boot From Ospi Flash

    AN122 Execution Environment of OSPI Flash of GD32H7 MCU User Guide Boot from OSPI Flash Supported modes of OSPI Flash 5.1. OSPI can operate in two modes, namely single data rate (SDR) and double transfer rate (DTR). SDR mode 5.1.1 Single mode: SPI flash of GD series, like GD25Q127C, GD25Q16E, GD25Q32E, GD25Q64F, and GD25F64F can operate in such mode.
  • Page 10: Gpio Mapping When Ospi Boots

    AN122 Execution Environment of OSPI Flash of GD32H7 MCU User Guide Table 5-1. Boot mode selection Pin selection for boot mode Boot source address BOOT MSB of the boot address: defined by BOOT_ADDR0[15:0] LSB of the boot address: 0x0000 MSB of the boot address: defined by BOOT_ADDR1[15:0] LSB of the boot address: 0x0000 Table 5-2.
  • Page 11: Ospi Boot Parameters

    AN122 Execution Environment of OSPI Flash of GD32H7 MCU User Guide OSPI0 GPIO pins OSPI1 GPIO OSPI0_IO3 PD13 OSPI1_IO3 OSPI0_IO4 OSPI1_IO4 OSPI0_IO5 OSPI1_IO5 OSPI0_IO6 OSPI1_IO6 PG10 OSPI0_IO7 OSPI1_IO7 PG11 OSPI0_CLK OSPI1_CLK OSPI0_NCS OSPI1_NCS PG12 OSPI boot parameters 5.2.3. When OSPI Flash boots, related parameters can be read from OSPI.
  • Page 12: Binding Of Ospi Flash With Mcu

    AN122 Execution Environment of OSPI Flash of GD32H7 MCU User Guide A RTDEC module corresponding to each OSPI is used to encrypt data in up to four areas, and KEY and IV defined by users can be used in each area.
  • Page 13: Introduction To Gd32H7Xx Lfix

    AN122 Execution Environment of OSPI Flash of GD32H7 MCU User Guide Introduction to GD32H7xx LFIx Resources related to LFIx (Licensed Firmware Install X) are used to help install OSPI Flash firmware of GD32H7xx series in public encryption mode and user encryption mode. In either mode, except for areas designated by users, data in OSPI Flash are always encrypted.
  • Page 14: Program File Structure In Public Encryption Mode

    AN122 Execution Environment of OSPI Flash of GD32H7 MCU User Guide based on AES 256/128, user programs and data use separate encryption parameters according to different phrases of LFIx and encrypted after adding salt, and significant parameters are encrypted in multiple layers for secure rapid development and low-cost production.
  • Page 15: Support To Massive Production

    AN122 Execution Environment of OSPI Flash of GD32H7 MCU User Guide Support to massive production 6.2.3. To support development and massive production of users, related tools are prepared for online and offline massive production. Online massive production In public encryption mode, online massive production is as shown in Figure 6-2.
  • Page 16: User Encryption Mode

    AN122 Execution Environment of OSPI Flash of GD32H7 MCU User Guide User encryption mode 6.3. In this mode, all information can only be viewed after related protocols are signed. Please contact Gigadevice. Program file structure in user encryption mode 6.3.1.
  • Page 17: Figure 6-4. Structure In Independent Encryption Mode

    AN122 Execution Environment of OSPI Flash of GD32H7 MCU User Guide Figure 6-4. Structure in independent encryption mode R&D GD32 Support Tools To Factory GD HSM Manufacture control inf Programer Manufacture control inf Non-encrypted Source Source Efuse Key Encrypted program File...
  • Page 18: Support To Massive Production

    AN122 Execution Environment of OSPI Flash of GD32H7 MCU User Guide Support to massive production 6.3.3. Online massive production In user encryption mode, online massive production is as shown in Structure Figure 6-6. of online massive production in user encryption mode.
  • Page 19: Figure 6-7. Structure Of Offline Massive Production In User Encryption Mode

    AN122 Execution Environment of OSPI Flash of GD32H7 MCU User Guide Figure 6-7. Structure of offline massive production in user encryption mode GD32 Support Tools From R&D Mass Production GD HSM Manufacture control inf Product Product COM / DFU Product...
  • Page 20: Revision History

    AN122 Execution Environment of OSPI Flash of GD32H7 MCU User Guide Revision history Table 7-1. Revision history Revision No. Description Date Apr.20, 2023 Initial release...
  • Page 21 Important Notice This document is the property of GigaDevice Semiconductor Inc. and its subsidiaries (the "Company"). This document, including any product of the Company described in this document (the “Product”), is owned by the Company under the intellectual property laws and treaties of the People’s Republic of China and other jurisdictions worldwide.

Table of Contents