# The source block assign file name to identifiers sources { myBinFile = extern (0); } constants { kAbsAddr_Start= 0x70200000; kAbsAddr_Ivt = 0x70201000; kAbsAddr_App = 0x70202000; } # The section block specifies the sequence of boot commands to be written to the SB file section (0) { #1. Prepare Flash option # 0xc0000207 is the tag for Serial NOR parameter selection # bit [31:28] Tag fixed to 0x0C # bit [27:24] Option size fixed to 0 # bit [23:20] Flash type option # 0 - QuadSPI SDR NOR # bit [19:16] Query pads (Pads used for query Flash Parameters) # 0 - 1 # bit [15:12] CMD pads (Pads used for query Flash Parameters) # 0 - 1 # bit [11: 08] Quad Mode Entry Setting, fixed to 0 for this device # bit [07: 04] Reserved, fixed to 0 # bit [03: 00] Flash Frequency, device specific # load 0xc0000008 > 0x2000; load 0xc0000007 > 0x2000; # Configure QSPI NOR FLASH using option a address 0x2000 enable flexspinor 0x2000; #2 Erase the second half (2 MBytes) of the FLASH. erase 0x70200000..0x70400000; #3. Program config block # 0xf000000f is the tag to notify Flashloader to program FlexSPI NOR config block to the start of device # skip this when creating FW2 load 0xf000000f > 0x3000; # Notify Flashloader to response the option at address 0x3000 # skip this when creating FW2 enable flexspinor 0x3000; #5. Program image load myBinFile > kAbsAddr_Ivt; #7. set offset address 8*256K load fuse 0x00080000 > 0x2e; }