From d02d3897afe13298603c5cd446824b3fe2a01fce Mon Sep 17 00:00:00 2001 From: Daniel Jobson Date: Wed, 10 Jul 2024 12:29:49 +0200 Subject: [PATCH] Test other release power down --- hw/application_fpga/fw/spifw/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/application_fpga/fw/spifw/main.c b/hw/application_fpga/fw/spifw/main.c index ab4372e..aedd901 100644 --- a/hw/application_fpga/fw/spifw/main.c +++ b/hw/application_fpga/fw/spifw/main.c @@ -94,12 +94,12 @@ int main(void) uint8_t read_buf[0xff] = {0x00}; - // touch_wait(LED_BLUE, 0); // start test - flash_release_powerdown(); + read_buf[0] = RELEASE_POWER_DOWN; - // touch_wait(LED_BLUE, 0); // start test - flash_release_powerdown(); + spi_write(read_buf, sizeof(read_buf), NULL, 0); + spi_write(read_buf, sizeof(read_buf), NULL, 0); // Read out IDs + memset(read_buf, 0x00, sizeof(read_buf)); flash_read_manufacturer_device_id(read_buf); write(read_buf, 2);