启动模式有两种
(1) 支持芯片内执行(支持 XiP)
(2) 支持 BootROM
1. Select required configuration in memory.h in Templates\ExtMem_Boot\Inc template.
The default configuration is:
- DATA_AREA set to USE_INTERNAL_SRAM
- CODE_AREA set to USE_QSPI
#define DATA_AREA USE_INTERNAL_SRAM //
#define CODE_AREA USE_QSPI
/* #define BINARY_AREA USE_MMC */
DATA_AREA:用于指定用于数据存储的易失性存储器。支持的存储器(取决于所用的板)有:
(1) USE_EXTERNAL_SDRAM:外部SDRAM用于数据存储
(2) USE_EXTERNAL_SRAM:外部SRAM用于数据存储
(3) USE_EXTERNAL_PSRAM:外部PSRAM用于数据存储
(4) USE_INTERNAL_SRAM:内部SRAM用于数据存储
CODE_AREA:用于指定用户应用程序的执行位置。该区域可以是用于BootROM 方案的易失性存储器,也可以是用于XiP方案的非易失性存储器。支持的存储器(取决于所用的硬件)有:
2. Program the internal Flash with the ExtMem_Boot (see below).
3. Program the external memory with this example (see below).
4. Start debugging user application or reset for free running.
Stm32h7
SDRAM Bank1 对应 着bank5 地址是0xC000 0000
SDRAM Bank2 对应 着bank6 地址是0xD000 0000
我使用的是bank2,所以这里需要修改