tree: e0463ea34a5fb26a5b17fb96440cf20b497bfebc
  1. ipc/
  2. registers/
  3. signing/
  4. syscall_latency/
  5. threads/
  6. tooling/
  7. unittest_runner/
  8. BUILD.bazel
  9. config.rs
  10. console.rs
  11. defs.bzl
  12. entry.rs
  13. epmp.rs
  14. README.md
  15. target.ld.jinja
target/earlgrey/README.md

OpenTitan Pigweed target

Example project of the Pigweed kernel running on the OpenTitan Earl Grey chip.

Building

To build the IPC test, run:

.. code-block:: console

bazelisk build //target/earlgrey/ipc/user:ipc

Running

To run the IPC test, run

.. tab-set::

.. tab-item:: CW310
    .. code-block:: console

        bazelisk run //target/earlgrey/ipc/user:ipc_runner_hyper310

.. tab-item:: CW340
    .. code-block:: console

        bazelisk run //target/earlgrey/ipc/user:ipc_runner_hyper340

.. tab-item:: Verilator
    .. code-block:: console

        bazelisk run //target/earlgrey/ipc/user:ipc_runner_verilator

Testing

To run the unittests, run

.. tab-set::

.. tab-item:: CW310
    .. code-block:: console

        bazelisk test --test_output=all --cache_test_results=no //target/earlgrey/unittest_runner:hyper310_test

.. tab-item:: CW340
    .. code-block:: console

        bazelisk test --test_output=all --cache_test_results=no //target/earlgrey/unittest_runner:hyper340_test

VS Code setup

.. _rust-analyzer: https://rust-analyzer.github.io/

.. code-block:: console

bazelisk run @rules_rust//tools/rust_analyzer:gen_rust_project -- //target/...