Skip to content

Trouble with "LED to believe" tutorial for Tang Nano target #74

@timvgso

Description

@timvgso

I tried the LED to believe tutorial in https://github.com/fusesoc/blinky for a Sipeed Tang Nano board with a fresh install of FuseSoc, Yosys, and Apicula with Python 3.9.5 on Linux Mint x86_64.

After running fusesoc core list and finding a core called fusesoc:utils:blinky in the list, I tried to build the project with:
fusesoc run --target=tang_nano fusesoc:utils:blinky

This produced an error message that wasn't helpful to me as someone just getting started with FuseSoC:
ERROR: No tool was supplied on command line or found in 'fusesoc:utils:blinky' core description

I carefully re-checked my installation and ran fusesoc library update as instructed just in case, even though a brand new installation should have been (and was) up to date, but the error persisted. Finally after looking through the repositories and reading the various files, I eventually discovered that there was a tang_nano target in https://github.com/fusesoc/blinky/blob/master/blinky.core that was not present in https://github.com/fusesoc/fusesoc-cores/blob/master/fusesoc_utils/blinky-1.0.core.

The instructions said to install blinky as a new core library, with the command fusesoc library add blinky https://github.com/fusesoc/blinky, "If it's still not there, or if you want to modify the project, e.g. to add support for an additional board," none of which applied in my case. But after running this command (and addressing a separate issue with Edalize) I was able to build and run blinky.

This could be a lot more pleasant for someone just getting started with FuseSoC. Is there a reason why the two blinky cores are not identical, or in any case don't support the same range of targets? If so, could there be clearer instructions for users with boards that require use of the stand-alone blinky core?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions