From 8c50366d15940a04c602672712acc8ca4fb543b5 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 2 Sep 2021 11:26:56 +0200 Subject: [PATCH] litespi/spiflash: Use shorted message when first SPI Flash block is erased and freq test cannot be done. --- litex/soc/software/liblitespi/spiflash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/software/liblitespi/spiflash.c b/litex/soc/software/liblitespi/spiflash.c index fef9f7462..26ea525aa 100644 --- a/litex/soc/software/liblitespi/spiflash.c +++ b/litex/soc/software/liblitespi/spiflash.c @@ -30,7 +30,7 @@ int spiflash_freq_init(void) /* Check if block is erased (filled with 0xFF) */ if(crc == CRC32_ERASED_FLASH) { - printf("Block of size %d, started on address 0x%lx is erased. Cannot proceed with SPI Flash frequency test.\n\r", SPI_FLASH_BLOCK_SIZE, SPIFLASH_BASE); + printf("First SPI Flash block erased, unable to perform freq test.\n\r"); return -1; }