diff options
author | Joey Castillo <joeycastillo@utexas.edu> | 2022-01-27 14:28:37 -0500 |
---|---|---|
committer | Joey Castillo <joeycastillo@utexas.edu> | 2022-01-27 14:28:37 -0500 |
commit | 45aa04f4acda9d4e67eedef84bb2b8e87994f999 (patch) | |
tree | b9602a540235dda974151837c904c4b8b1d60a2d /watch-library | |
parent | 3801ee6b19fdb62004d6655604788b9a820e8603 (diff) | |
download | Sensor-Watch-45aa04f4acda9d4e67eedef84bb2b8e87994f999.tar.gz Sensor-Watch-45aa04f4acda9d4e67eedef84bb2b8e87994f999.tar.bz2 Sensor-Watch-45aa04f4acda9d4e67eedef84bb2b8e87994f999.zip |
spi test: set first 4096 bytes to 0
Diffstat (limited to 'watch-library')
-rw-r--r-- | watch-library/shared/driver/spiflash.c | 2 |
1 files changed, 2 insertions, 0 deletions
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(); |