firmware: enlarge bootloader partition to 4 sectors.

This commit is contained in:
whitequark 2017-12-28 14:38:56 +00:00
parent a9ad4f08e9
commit 55cfdec644
2 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@ mod imp {
use spiflash; use spiflash;
use super::Error; use super::Error;
// One flash sector immediately after the bootloader. // One flash sector immediately before the firmware.
const ADDR: usize = ::mem::FLASH_BOOT_ADDRESS - spiflash::PAGE_SIZE; const ADDR: usize = ::mem::FLASH_BOOT_ADDRESS - spiflash::PAGE_SIZE;
const SIZE: usize = spiflash::PAGE_SIZE; const SIZE: usize = spiflash::PAGE_SIZE;

View File

@ -195,8 +195,8 @@ def main():
"variants": ["nist_clock", "nist_qc2"], "variants": ["nist_clock", "nist_qc2"],
"gateware": (0, 0x000000), "gateware": (0, 0x000000),
"bootloader": (0, 0xaf0000), "bootloader": (0, 0xaf0000),
"storage": (0, 0xb00000), "storage": (0, 0xb30000),
"runtime": (0, 0xb10000), "runtime": (0, 0xb40000),
}, },
"sayma": { "sayma": {
"programmer_factory": ProgrammerSayma, "programmer_factory": ProgrammerSayma,
@ -204,8 +204,8 @@ def main():
"variants": ["standalone"], "variants": ["standalone"],
"gateware": (0, 0x000000), "gateware": (0, 0x000000),
"bootloader": (1, 0x000000), "bootloader": (1, 0x000000),
"storage": (1, 0x010000), "storage": (1, 0x040000),
"runtime": (1, 0x020000), "runtime": (1, 0x050000),
}, },
}[opts.target] }[opts.target]