soc/add_uart: Improve error message for unsupported UART.
This commit is contained in:
parent
73d70cf594
commit
804a1a5b26
|
@ -1326,10 +1326,10 @@ class LiteXSoC(SoC):
|
|||
"rx_fifo_depth": fifo_depth,
|
||||
}
|
||||
if (uart_pads is None) and (uart_name not in supported_uarts):
|
||||
self.logger.error("{} UART {}, supported are: {}.".format(
|
||||
self.logger.error("{} UART {}, supported are: \n{}.".format(
|
||||
colorer(uart_name),
|
||||
colorer("not supported/found on board", color="red"),
|
||||
colorer(", ".join(supported_uarts))))
|
||||
colorer("- " + "\n- ".join(supported_uarts))))
|
||||
raise SoCError()
|
||||
|
||||
# Crossover.
|
||||
|
|
Loading…
Reference in New Issue