Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
controllerstech authored Sep 29, 2021
1 parent 230c4ef commit 79ae428
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions QSPI/N25Qxxx/EXT_MEM_BOOT/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,26 @@

## Following are the steps after creating a new project

1. Open the `system_stm32xxxx.c` file, goto System_Init, and add the following code to it.
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`

2. Open the `Flash.ld` script file, and change the FLASH address to the QSPI FLASH. Also change the size
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`

3. In the Debug configuration, goto debugger tab, and towards the bottom check the `external loader`.
5. In the Debug configuration, goto debugger tab, and towards the bottom check the `external loader`.

Click scan, select the board, and click apply

4. The Application will run from the External memory now.
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

0 comments on commit 79ae428

Please sign in to comment.