Skip to content

Commit 4b50663

Browse files
committed
mimxrt: update MIMXRT1060 flash algo parameters
python tools/generate_flash_algo.py \ --pack-path NXP.MIMXRT1062_DFP.13.1.1.pack \ -o source/family/nxp/mimxrt1060_spi_flash/flash_blob.c \ arm/MIMXRT106x_QSPI_4KB_SEC.FLM
1 parent ff10f64 commit 4b50663

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

source/family/nxp/mimxrt1060_spi_flash/flash_blob.c

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
/* Flash OS Routines (Automagically Generated)
2-
* Copyright (c) 2009-2021 Arm Limited
1+
/* Flash algorithm for MIMXRT106x 8mB QuadSPI NOR Flash
2+
*
3+
* DAPLink Interface Firmware
4+
* Copyright (c) 2009-2021 Arm Limited, All Rights Reserved
35
* SPDX-License-Identifier: Apache-2.0
46
*
57
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,8 +17,12 @@
1517
* limitations under the License.
1618
*/
1719

20+
// Generated from 'MIMXRT106x_QSPI_4KB_SEC.FLM' (MIMXRT106x 8mB QuadSPI NOR Flash)
21+
// Originating from 'NXP.MIMXRT1062_DFP.13.1.1.pack'
22+
// digest = 4b2722f4859e5a519ee072466d51eb02e131fbffbe5d8bdffdf025e5f71923ad, file size = 2847664
23+
// algo version = 0x101, algo size = 2880 (0xb40)
1824
static const uint32_t MIMXRT106x_QSPI_4KB_SEC_flash_prog_blob[] = {
19-
0xE00ABE00,
25+
0xe7fdbe00,
2026
0x4770ba40, 0x4770ba40, 0x4770ba40, 0x4770bac0, 0x4770bac0, 0x4770bac0, 0x4855b51c, 0x48559000,
2127
0x08498901, 0x81010049, 0x890a4953, 0x00520852, 0x8802810a, 0x07522304, 0xda022a00, 0x439a8802,
2228
0x88088002, 0xd5020740, 0x43988808, 0x484c8008, 0x6041494a, 0x6081494b, 0x22806801, 0x22204391,
@@ -131,20 +137,25 @@ static const program_target_t flash = {
131137
0x20000125, // EraseChip
132138
0x20000139, // EraseSector
133139
0x20000157, // ProgramPage
134-
0x0, // Verify
140+
0x00000000, // Verify
135141

136142
// BKPT : start of blob + 1
137143
// RSB : blob start + header + rw data offset
138144
// RSP : stack pointer
139145
{
140146
0x20000001,
141147
0x20000934,
142-
0x20008000
148+
0x20001400
143149
},
144150

145-
0x20000000 + 0x00004000, // mem buffer location
146-
0x20000000, // location to write prog_blob in target RAM
147-
sizeof(MIMXRT106x_QSPI_4KB_SEC_flash_prog_blob), // prog_blob size
148-
MIMXRT106x_QSPI_4KB_SEC_flash_prog_blob, // address of prog_blob
149-
0x00000100 // ram_to_flash_bytes_to_be_written
151+
// mem buffer location
152+
0x20001400,
153+
// location to write prog_blob in target RAM
154+
0x20000000,
155+
// prog_blob size
156+
sizeof(MIMXRT106x_QSPI_4KB_SEC_flash_prog_blob),
157+
// address of prog_blob
158+
MIMXRT106x_QSPI_4KB_SEC_flash_prog_blob,
159+
// ram_to_flash_bytes_to_be_written
160+
0x00000100
150161
};

0 commit comments

Comments
 (0)