# How to boot from external flash memory
## Following are the steps after creating a new project
1. If you are here, means you have already enabled the MEMORY MAPPED MODE.
2. Now you have to create a new project, which will boot from the external Flash.
3. Open the `system_stm32xxxx.c` file, goto System_Init, and add the following code to it.
`RCC->CFGR = 0; // Reset the configuration register`
`SCB->VTOR = QSPI_BASE; // 0x90000000`
4. Open the `Flash.ld` script file, and change the FLASH address to the QSPI FLASH. Also change the size
`FLASH (rx) : ORIGIN = 0x90000000, LENGTH = 16M`
5. In the Debug configuration, goto debugger tab, and towards the bottom check the `external loader`.
Click scan, select the board, and click apply
6. The Application will run from the External memory now.
## Check out the Respective files if you don't understand the steps. Also check the .ioc file for the MPU Configuration
## Check out the video https://youtu.be/gAyuF20ok8c
没有合适的资源?快使用搜索试试~ 我知道了~
STM32-master.zip
共160个文件
h:67个
c:59个
md:19个
需积分: 5 0 下载量 126 浏览量
2024-03-02
11:43:24
上传
评论
收藏 820KB ZIP 举报
温馨提示
STM32 Projects based on HAL functions Here I will only add those files which require frequent updation The full projects can be downloaded from the website www.controllerstech.com
资源推荐
资源详情
资源评论
收起资源包目录
STM32-master.zip (160个子文件)
stm32f4xx_hal_tim.c 245KB
stm32f4xx_hal_rcc_ex.c 156KB
tft.c 127KB
stm32f4xx_hal_tim_ex.c 83KB
stm32f4xx_hal_flash_ex.c 50KB
stm32f4xx_hal_rcc.c 43KB
stm32f4xx_hal_dma.c 40KB
mt25tl01g.c 37KB
main.c 29KB
system_stm32f4xx.c 27KB
quadspi.c 26KB
stm32f4xx_hal_flash.c 24KB
stm32f4xx_hal_pwr_ex.c 23KB
stm32f4xx_hal_pwr.c 21KB
stm32f4xx_hal.c 19KB
stm32f4xx_hal_gpio.c 19KB
quadspi.c 19KB
stm32f4xx_hal_cortex.c 19KB
stm32f4xx_hal_exti.c 15KB
main.c 15KB
system_stm32h7xx_dualcore_boot_cm4_cm7.c 13KB
main.c 12KB
BME280_STM32.c 11KB
stm32f4xx_hal_dma_ex.c 11KB
system_stm32f7xx.c 9KB
uartRingBufDMA.c 9KB
main.c 9KB
main.c 8KB
main.c 8KB
ili9341.c 8KB
I2C.c 7KB
main.c 7KB
FLASH_SECTOR_H7.c 7KB
main.c 7KB
FLASH_SECTOR_F4.c 7KB
main.c 7KB
main.c 7KB
main.c 7KB
main.c 6KB
stm32f4xx_hal_flash_ramfunc.c 6KB
stm32f4xx_it.c 6KB
main.c 6KB
main.c 6KB
stm32f1xx_it.c 6KB
EEPROM.c 6KB
stm32f4xx_it.c 5KB
main.c 5KB
FlASH_PAGE_F1.c 5KB
xpt2046.c 4KB
RccConfig.c 3KB
i2c-lcd.c 3KB
sysmem.c 3KB
syscalls.c 2KB
lcd_lvgl.c 2KB
Delay_F103.c 2KB
stm32f4xx_hal_msp.c 2KB
Delay.c 2KB
TouchGFX_DataTransfer.c 742B
main.c 261B
STM32TouchController.cpp 2KB
stm32f446xx.h 1.32MB
stm32f4xx_hal_rcc_ex.h 430KB
stm32_hal_legacy.h 210KB
core_cm33.h 171KB
core_armv8mml.h 165KB
core_cm7.h 145KB
core_cm4.h 121KB
stm32f4xx_hal_tim.h 121KB
core_cm3.h 109KB
core_sc300.h 108KB
core_cm23.h 102KB
core_armv8mbl.h 96KB
stm32f4xx_hal_gpio_ex.h 81KB
stm32f4xx_hal_rcc.h 74KB
stm32f4xx_hal_flash_ex.h 64KB
cmsis_gcc.h 61KB
cmsis_armclang.h 55KB
core_cm0plus.h 49KB
core_sc000.h 46KB
core_cm1.h 42KB
core_cm0.h 41KB
stm32f4xx_hal_dma.h 38KB
cmsis_iccarm.h 28KB
cmsis_armcc.h 28KB
lv_conf.h 21KB
stm32f4xx_hal_conf.h 20KB
stm32f4xx_hal_cortex.h 17KB
stm32f4xx_hal_tim_ex.h 17KB
mt25tl01g.h 16KB
stm32f4xx_hal_pwr_ex.h 16KB
stm32f4xx_hal_exti.h 15KB
stm32f4xx_hal_flash.h 15KB
stm32f4xx_hal_pwr.h 14KB
stm32f4xx_hal_gpio.h 14KB
stm32f4xx_hal.h 13KB
stm32f4xx.h 12KB
mpu_armv7.h 11KB
mpu_armv8.h 11KB
cmsis_compiler.h 9KB
n25q128a.h 8KB
共 160 条
- 1
- 2
资源评论
xiaoshun007~
- 粉丝: 3856
- 资源: 3129
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功