|
31 | 31 | * 0x0010_0000 Secondary image area (2KB): |
32 | 32 | * 0x0010_0000 Secure image secondary (320KB) (Dummy) |
33 | 33 | * 0x0015_0000 Non-secure image secondary (576KB) (Dummy) |
34 | | - * 0x001E_0000 Scratch area (4KB) (Dummy) |
| 34 | + * 0x001E_0000 Scratch area (16KB) (Dummy) |
35 | 35 | * |
36 | 36 | * SDH Flash: |
37 | 37 | * 0x0000_0000 Secondary image area (896KB) |
38 | 38 | * 0x0000_0000 Secure image secondary (320KB) |
39 | 39 | * 0x0005_0000 Non-secure image secondary (576KB) |
40 | | - * 0x0020_0000 Scratch area (4 KB) |
| 40 | + * 0x0020_0000 Scratch area (16 KB) |
41 | 41 | * |
42 | 42 | * Flash layout on M2354 with BL2 (multiple image boot): |
43 | 43 | * |
|
50 | 50 | * 0x0007_0000 Non-secure image primary slot (576KB) |
51 | 51 | * 0x0010_0000 Secure image secondary slot (320KB) (Dummy) |
52 | 52 | * 0x0015_0000 Non-secure image secondary slot (576KB) (Dummy) |
53 | | - * 0x001E_0000 Scratch area (4KB) (Dummy) |
| 53 | + * 0x001E_0000 Scratch area (16KB) (Dummy) |
54 | 54 | * |
55 | 55 | * SDH Flash: |
56 | 56 | * 0x0000_0000 Secure image secondary slot (320KB) |
57 | 57 | * 0x0010_0000 Non-secure image secondary slot (576KB) |
58 | | - * 0x0020_0000 Scratch area (2 KB) |
| 58 | + * 0x0020_0000 Scratch area (16 KB) |
59 | 59 | */ |
60 | 60 |
|
61 | 61 | /* This header file is included from linker scatter file as well, where only a |
|
123 | 123 | #if NU_UPDATE_STAGE_SDH |
124 | 124 | #define FLASH_AREA_SCRATCH_ID (FLASH_AREA_2_ID + 1) |
125 | 125 | #define FLASH_AREA_SCRATCH_OFFSET (0x200000) |
126 | | -#define FLASH_AREA_SCRATCH_SIZE (0x1000) |
| 126 | +#define FLASH_AREA_SCRATCH_SIZE (0x4000) |
127 | 127 | #define FLASH_DEVICE_ID_SCRATCH SDH_FLASH_DEVICE_ID |
128 | 128 | #define FLASH_DEV_NAME_SCRATCH SDH_FLASH_DEV_NAME |
129 | 129 | #else |
130 | 130 | #define FLASH_AREA_SCRATCH_ID (FLASH_AREA_2_ID + 1) |
131 | 131 | #define FLASH_AREA_SCRATCH_OFFSET (FLASH_AREA_2_OFFSET + FLASH_AREA_2_SIZE) |
132 | | -#define FLASH_AREA_SCRATCH_SIZE (0x1000) |
| 132 | +#define FLASH_AREA_SCRATCH_SIZE (0x4000) |
133 | 133 | #endif |
134 | 134 |
|
135 | 135 | /* The maximum number of status entries supported by the bootloader. */ |
|
181 | 181 | #if NU_UPDATE_STAGE_SDH |
182 | 182 | #define FLASH_AREA_SCRATCH_ID (FLASH_AREA_3_ID + 1) |
183 | 183 | #define FLASH_AREA_SCRATCH_OFFSET (0x200000) |
184 | | -#define FLASH_AREA_SCRATCH_SIZE (0x1000) |
| 184 | +#define FLASH_AREA_SCRATCH_SIZE (0x4000) |
185 | 185 | #define FLASH_DEVICE_ID_SCRATCH SDH_FLASH_DEVICE_ID |
186 | 186 | #define FLASH_DEV_NAME_SCRATCH SDH_FLASH_DEV_NAME |
187 | 187 | #else |
188 | 188 | #define FLASH_AREA_SCRATCH_ID (FLASH_AREA_3_ID + 1) |
189 | 189 | #define FLASH_AREA_SCRATCH_OFFSET (FLASH_AREA_3_OFFSET + FLASH_AREA_3_SIZE) |
190 | | -#define FLASH_AREA_SCRATCH_SIZE (0x1000) |
| 190 | +#define FLASH_AREA_SCRATCH_SIZE (0x4000) |
191 | 191 | #endif |
192 | 192 |
|
193 | 193 | /* The maximum number of status entries supported by the bootloader. */ |
|
0 commit comments