Improve workflow for running the MCU program

Old workflow:
* Run ./scripts/proto2-run in one terminal
* Run ./scripts/proto2-mon in a separate terminal to see output

Each time you made a change, you needed to rerun both.

New workflow:
* Run ./scripts/proto2-openocd in one terminal.
* Run ./scripts/mcu-run in a second terminal.

Each time you make a change, you only need to rerun scripts/mcu-run.
This builds and displays output using hps-mon.

In addition to reducing the number of terminals that you need to
interact with when you make a code change, this also makes the workflow
more similar to scripts/fpga-rom, which already had this workflow.

In order to keep the instructions for the test-models script simple, we
just have it flash both the MCU and FPGA ROMs.

BUG=b:245032828
TEST=./scripts/proto2-openocd
TEST=./scripts/mcu-run

Change-Id: Id7dc60d25728e75f86f45ec990a1e467ba47f519
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/hps-firmware/+/3874627
Commit-Queue: David Lattimore <dml@chromium.org>
Tested-by: David Lattimore <dml@chromium.org>
Reviewed-by: Dan Callaghan <dcallagh@chromium.org>
9 files changed
tree: 31a5f904497b6af42844a39ed2768977c2a57ec9
  1. .vscode/
  2. avr/
  3. bin/
  4. docs/
  5. models/
  6. renode/
  7. rust/
  8. scripts/
  9. soc/
  10. test_data/
  11. third_party/
  12. toolchain/
  13. .clang-format
  14. .gitignore
  15. .gn
  16. BUILD.gn
  17. BUILDCONFIG.gn
  18. DIR_METADATA
  19. environment
  20. LICENSE
  21. OWNERS
  22. PRESUBMIT.cfg
  23. pylintrc
  24. README.md
  25. rust-toolchain.toml
README.md

ChromiumOS Human Presence Sensor

The ChromiumOS Human Presence Sensor is a hardware peripheral which can detect the presence of one or more humans in front of the Chromebook.

This repository contains source code for the firmware which runs on the peripheral.

For more information, refer to the design document (Googlers only).

Documentation