Skip to content

Commit

Permalink
set mode option on vendor IDE only
Browse files Browse the repository at this point in the history
  • Loading branch information
pepijndevos committed Aug 19, 2024
1 parent e02fb67 commit b2e58d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion litex_boards/platforms/sipeed_tang_nano_4k.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ def __init__(self, toolchain="gowin"):
GowinPlatform.__init__(self, "GW1NSR-LV4CQN48PC6/I5", _io, _connectors, toolchain=toolchain, devicename="GW1NS-4")
# Licensed GoWin IDE v. 1.9.7.06 Beta
# GowinPlatform.__init__(self, "GW1NSR-LV4CQN48PC7/I6", _io, _connectors, toolchain=toolchain, devicename="GW1NSR-4C")
#self.toolchain.options["use_mode_as_gpio"] = 1

# this is just a software check that doesn't translate to hardware
# apicula does not implement this check, so beware of bricking your board
if toolchain=="gowin":
self.toolchain.options["use_mode_as_gpio"] = 1

self.toolchain.options["use_mspi_as_gpio"] = 1
self.toolchain.options["use_done_as_gpio"] = 1

Expand Down

0 comments on commit b2e58d5

Please sign in to comment.