From 45aa04f4acda9d4e67eedef84bb2b8e87994f999 Mon Sep 17 00:00:00 2001 From: Joey Castillo Date: Thu, 27 Jan 2022 14:28:37 -0500 Subject: spi test: set first 4096 bytes to 0 --- watch-library/shared/driver/spiflash.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'watch-library') diff --git a/watch-library/shared/driver/spiflash.c b/watch-library/shared/driver/spiflash.c index da6b2630..0fb7f437 100644 --- a/watch-library/shared/driver/spiflash.c +++ b/watch-library/shared/driver/spiflash.c @@ -88,7 +88,9 @@ bool spi_flash_write_data(uint32_t address, uint8_t *data, uint32_t data_length) address_to_bytes(address, request + 1); flash_enable(); bool status = watch_spi_write(request, 4); + printf("status? "); if (status) { + printf("status! Writing %d bytes to %02x %02x %02x\n", data_length, request[1], request[2], request[3]); status = watch_spi_write(data, data_length); } flash_disable(); -- cgit v1.2.3