35 lines
983 B
Plaintext
35 lines
983 B
Plaintext
# The sources block assigns file names to identifiers
|
|
sources {
|
|
# SREC File path
|
|
mySrecFile = "led_demo_qspi_alias_a000.srec";
|
|
# QCB file path
|
|
qspiConfigBlock = "qspi_config_block.bin";
|
|
}
|
|
|
|
# The section block specifies the sequence of boot commands to be written to
|
|
# the SB file
|
|
section (0) {
|
|
|
|
#1. Erase the vector table and flash config field.
|
|
erase 0xa000..0xa800;
|
|
|
|
# Step 2 and Step 3 are optional if the QuadSPI is configured at startup.
|
|
#2. Load the QCB to RAM
|
|
load qspiConfigBlock > 0x20000000;
|
|
|
|
#3. Configure QuadSPI with the QCB above
|
|
enable qspi 0x20000000;
|
|
|
|
#4. Erase the QuadSPI memory region before programming.
|
|
erase 0x04000000..0x04004000;
|
|
|
|
#5.Load the QCB above to the start address of QuadSPI memory
|
|
load qspiConfigBlock > 0x68000000;
|
|
|
|
#6. Load all boot_to_qspi_alias_memory applcation
|
|
load mySrecFile;
|
|
|
|
#7. Reset target.
|
|
reset;
|
|
|
|
} |