From a3c7446a2b77d6c92e78bce3c6ca62b2e61fe01e Mon Sep 17 00:00:00 2001 From: Martin Troiber <34752929+developandplay@users.noreply.github.com> Date: Sat, 16 Oct 2021 04:34:45 +0200 Subject: [PATCH] Fix tang nano loopback and button --- litex_boards/platforms/sipeed_tang_nano.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litex_boards/platforms/sipeed_tang_nano.py b/litex_boards/platforms/sipeed_tang_nano.py index 13e9602..364fe45 100644 --- a/litex_boards/platforms/sipeed_tang_nano.py +++ b/litex_boards/platforms/sipeed_tang_nano.py @@ -27,7 +27,7 @@ _io = [ # Buttons. ("user_btn", 0, Pins("15"), IOStandard("LVCMOS33")), - ("user_btn", 0, Pins("14"), IOStandard("LVCMOS33")), + ("user_btn", 1, Pins("14"), IOStandard("LVCMOS33")), # Serial ("serial", 0, @@ -50,6 +50,7 @@ class Platform(GowinPlatform): def __init__(self): GowinPlatform.__init__(self, "GW1N-LV1QN48C6/I5", _io, _connectors, toolchain="gowin", devicename="GW1N-1") self.toolchain.options["use_done_as_gpio"] = 1 + self.toolchain.options["use_reconfign_as_gpio"] = 1 def create_programmer(self): return OpenFPGALoader("tangnano")