From a8057fb2ac9bd56efb9eeab321bd4cc6e90732b2 Mon Sep 17 00:00:00 2001
From: Paolo Pisati
Date: Thu, 23 Dec 2021 18:37:07 +0100
Subject: [PATCH] boards: icesugar: correct reset address to 0x820000 since
flash is memory mapped @ 0x800000
Signed-off-by: Paolo Pisati
---
FemtoRV/RTL/CONFIGS/icesugar_config.v | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/FemtoRV/RTL/CONFIGS/icesugar_config.v b/FemtoRV/RTL/CONFIGS/icesugar_config.v
index 45a22b7f..ae4d13f2 100644
--- a/FemtoRV/RTL/CONFIGS/icesugar_config.v
+++ b/FemtoRV/RTL/CONFIGS/icesugar_config.v
@@ -18,7 +18,7 @@
//`define NRV_FEMTORV32_PETITBATEAU // RV32IMFC + IRQ, does not fit on IceBreaker
`define NRV_FREQ 12 // Frequency in MHz. Recomm: 15 MHz Overclocking: 20-25 MHz
-`define NRV_RESET_ADDR 32'h00420000 // Jump execution to SPI Flash (400000h, +128k(20000h) for FPGA bitstream)
+`define NRV_RESET_ADDR 32'h00820000 // Jump execution to SPI Flash (800000h, +128k(20000h) for FPGA bitstream)
// tinyraytracer: 30 MHz RV32IM electron 3:12
// 20 MHz RV32IM gracilis 3:44
// 20 MHz RV32IMC gracilis 3:32