From 2093ce7520ea466c149cf08574047ba460b9439b Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Thu, 14 Dec 2023 11:48:14 +0100 Subject: [PATCH] gowin: fix gw1n external flash access --- src/gowin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gowin.cpp b/src/gowin.cpp index d7677a0..8444b7e 100644 --- a/src/gowin.cpp +++ b/src/gowin.cpp @@ -1152,6 +1152,9 @@ bool Gowin::prepare_flash_access() return false; } } else if (!is_gw2a) { + if (!enableCfg()) { + return false; + } send_command(0x3D); }