From 14a90e53861562d524526ee0252d4480f41bee45 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 29 Dec 2017 01:37:11 +0800 Subject: [PATCH] firmware: enlarge bootloader partition to 4 sectors. --- artiq/firmware/libboard/config.rs | 2 +- artiq/frontend/artiq_flash.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/artiq/firmware/libboard/config.rs b/artiq/firmware/libboard/config.rs index 5c673da5b..bfa3745f5 100644 --- a/artiq/firmware/libboard/config.rs +++ b/artiq/firmware/libboard/config.rs @@ -5,7 +5,7 @@ mod imp { use cache; use spiflash; - // 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 SIZE: usize = spiflash::PAGE_SIZE; diff --git a/artiq/frontend/artiq_flash.py b/artiq/frontend/artiq_flash.py index 61199af60..1033a1af0 100755 --- a/artiq/frontend/artiq_flash.py +++ b/artiq/frontend/artiq_flash.py @@ -69,8 +69,8 @@ def main(): "start": "xc7_program xc7.tap", "gateware": 0x000000, "bios": 0xaf0000, - "storage": 0xb00000, - "runtime": 0xb10000, + "storage": 0xb30000, + "runtime": 0xb40000, }, }[opts.target]