You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.5 KiB
60 lines
1.5 KiB
.. zephyr:board:: hifive1 |
|
|
|
Overview |
|
******** |
|
|
|
The HiFive1 is an Arduino-compatible development board with an FE310-G000 RISC-V SoC. |
|
|
|
.. figure:: img/hifive1.jpg |
|
:align: center |
|
:alt: SiFive HiFive1 board |
|
|
|
SiFive HiFive1 board (image courtesy of SiFive) |
|
|
|
Programming and debugging |
|
************************* |
|
|
|
.. zephyr:board-supported-runners:: |
|
|
|
Building |
|
======== |
|
|
|
Applications for the HiFive1 board configuration can be built as usual (see |
|
:ref:`build_an_application`) using the corresponding board name: |
|
|
|
.. zephyr-app-commands:: |
|
:board: hifive1 |
|
:goals: build |
|
|
|
Flashing |
|
======== |
|
|
|
In order to upload the application to the device, you'll need OpenOCD with |
|
RISC-V support. Download the tarball for your OS from the `SiFive website |
|
<https://www.sifive.com/boards>`_ and extract it. |
|
|
|
The Zephyr SDK uses a bundled version of OpenOCD by default. You can |
|
overwrite that behavior by adding the |
|
``-DOPENOCD=<path/to/riscv-openocd/bin/openocd>`` parameter when building: |
|
|
|
.. zephyr-app-commands:: |
|
:board: hifive1 |
|
:goals: build |
|
:gen-args: -DOPENOCD=<path/to/riscv-openocd/bin/openocd> |
|
|
|
When using a custom toolchain it should be enough to have the downloaded |
|
version of the binary in your ``PATH``. |
|
|
|
Now you can flash the application as usual (see :ref:`build_an_application` and |
|
:ref:`application_run` for more details): |
|
|
|
.. code-block:: console |
|
|
|
west flash |
|
|
|
Depending on your OS you might have to run the flash command as superuser. |
|
|
|
Debugging |
|
========= |
|
|
|
Refer to the detailed overview about :ref:`application_debugging`.
|
|
|