Skip to content

Commit 8fb60c9

Browse files
committed
fix: Set max_size to fill remainder of 512kB eFlash
1 parent 2b04068 commit 8fb60c9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tockloader/board_interface.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,15 +291,16 @@ class BoardInterface:
291291
"max_size": 0x00100000,
292292
},
293293
},
294-
"opentitan_earlgrey_rom_ext": {
295-
"description": "OpenTitan EarlGrey chip with ROM_EXT targeting the Earlgrey-M2.5.2-RC0 hardware",
294+
"opentitan_earlgrey_secure_boot": {
295+
"description": "OpenTitan EarlGrey chip targeting the Earlgrey-M2.5.2-RC0 hardware with secure boot",
296296
"arch": "rv32imc",
297297
"page_size": 512,
298298
"no_attribute_table": True,
299299
"address_translator": lambda addr: addr - 0x20010000,
300300
"flash_file": {
301-
# Set to the maximum flash size.
302-
"max_size": 0x00100000,
301+
# Set to the half of maximum flash size, to keep image sizes smaller
302+
# (also ensures room for data at end of flash).
303+
"max_size": 0x00070000,
303304
},
304305
},
305306
}

0 commit comments

Comments
 (0)