From 41108652d405e674f516499ac53172545bc490f3 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 11 Apr 2022 16:54:16 +0100 Subject: [PATCH] annoying, read from wrong offset in SPI FLASH --- coldboot/coldboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coldboot/coldboot.c b/coldboot/coldboot.c index 4f699a5..d725c83 100644 --- a/coldboot/coldboot.c +++ b/coldboot/coldboot.c @@ -257,7 +257,7 @@ int main(void) { puts("\n"); } #endif - volatile uint32_t *qspi = (uint32_t*)spi_offs; + volatile uint32_t *qspi = (uint32_t*)SPI_FLASH_BASE+spi_offs; //volatile uint8_t *qspi_bytes = (uint8_t*)spi_offs; // let's not, eh? writel(0xDEAF0123, (unsigned long)&(qspi[0])); // tmp = readl((unsigned long)&(qspi[0])); -- 2.30.2