bootloader/stm32: Add support for flash reset pin.

This commit is contained in:
iabdalkader 2024-12-31 07:56:50 +01:00
parent 8cb6bf61e7
commit af63cf8144

View File

@ -142,6 +142,14 @@ int xspi_flash_init() {
return -1;
}
// Hardware reset the flash
#if defined(OMV_BOOT_XSPI_FLASH_RST_PIN)
port_pin_write(OMV_BOOT_XSPI_FLASH_RST_PIN, 0);
port_delay_ms(1);
port_pin_write(OMV_BOOT_XSPI_FLASH_RST_PIN, 1);
port_delay_ms(10);
#endif
// Reset the XSPI
if (xspi_flash_reset() != 0) {
return -1;