Files
bootloader/apps/demo_qspi/bdfile/qspi_image_alias_a000.bd
László Monda e6c1fce5b4 Add KBOOT.
2016-08-10 01:45:15 +02:00

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;
}