Skip to content

Instantly share code, notes, and snippets.

@wojtess
Created June 14, 2024 15:55
Show Gist options
  • Save wojtess/21259881e213c2d0e25607efa5218de0 to your computer and use it in GitHub Desktop.
Save wojtess/21259881e213c2d0e25607efa5218de0 to your computer and use it in GitHub Desktop.
Tang nano 9k problem with UART under litex.
PROBLEM:
my tang nano 9k was having problems with uart under litex. It looks like problem with internal UART to USB converter.
pin 17 and 18(default used in `litex_boards/platforms/sipeed_tang_nano_9k.py` file) are connected to BL702,
so I assume that this is problem with proprietary software made my sipeed.
HOW TO FIX:
Change pins of UART and use external UART to USB module.
change `serial` pins in `_io` array.
to do this change lines from 34 to 39 to this:
```
# Serial
("serial", 0,
Subsignal("rx", Pins("41")),
Subsignal("tx", Pins("42")),
IOStandard("LVCMOS33")
),
```
pins 41 and 42 are just example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment