Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to Colorlight 5a-75e #380

Closed
roby2014 opened this issue Apr 3, 2024 · 1 comment
Closed

Add support to Colorlight 5a-75e #380

roby2014 opened this issue Apr 3, 2024 · 1 comment
Labels

Comments

@roby2014
Copy link

roby2014 commented Apr 3, 2024

Hello. Could someone point me to the right direction when adding support for a new board :)
make.py:

class Colorlight_5a_75e(Board):
    def __init__(self):
        from litex_boards.targets import colorlight_5a_75x
        Board.__init__(self, colorlight_5a_75x.BaseSoC("5a-75e", "6.0"), soc_capabilities={
            # Communication
        })

./make.py --board=colorlight_5a_75e --cpu-count=1 --build:

Traceback (most recent call last):
  File "/home/roby/repos/linux-on-litex-vexriscv/./make.py", line 998, in <module>
    main()
  File "/home/roby/repos/linux-on-litex-vexriscv/./make.py", line 866, in main
    board = supported_boards[board_name]()
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/roby/repos/linux-on-litex-vexriscv/./make.py", line 538, in __init__
    Board.__init__(self, colorlight_5a_75x.BaseSoC("5a-75e", "6.0"), soc_capabilities={
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/roby/litex/litex-boards/litex_boards/targets/colorlight_5a_75x.py", line 145, in __init__
    with_rst     = kwargs["uart_name"] not in ["serial", "crossover"] # serial_rx shared with user_btn_n.
                   ~~~~~~^^^^^^^^^^^^^
KeyError: 'uart_name'
(.venv) [roby@thonkpad linux-on-litex-vexriscv]$ 
@enjoy-digital
Copy link
Member

Hi @roby2014,

the project required a UART so you'll have to ensure your target provide at least one that can be used by the project. Another point is that the project currently requires 32MB of RAM while your board only has 8MB, so you'll maybe for now have to switch to another board to use the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants