David Lattimore | 60e282a | 2021-05-26 11:27:48 +1000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | # Copyright 2021 The Chromium OS Authors. All rights reserved. |
| 4 | # Use of this source code is governed by a BSD-style license that can be |
| 5 | # found in the LICENSE file. |
| 6 | |
| 7 | # Builds and runs the Rust SOC ROM. ./scripts/proto2-run should already be |
| 8 | # running in a separate shell. |
| 9 | |
| 10 | set -e |
| 11 | |
| 12 | PROJECT_ROOT=$(git rev-parse --show-toplevel) |
David Lattimore | 42b2bb1 | 2022-01-06 08:58:29 +1100 | [diff] [blame] | 13 | ROM="${PROJECT_ROOT}/build/hps_platform/fpga_rom.bin" |
David Lattimore | 60e282a | 2021-05-26 11:27:48 +1000 | [diff] [blame] | 14 | |
David Lattimore | 42b2bb1 | 2022-01-06 08:58:29 +1100 | [diff] [blame] | 15 | "${PROJECT_ROOT}/scripts/build-fpga-rom-dev" |
David Lattimore | 52cfefc | 2021-11-26 13:24:49 +1100 | [diff] [blame] | 16 | |
David Lattimore | 60e282a | 2021-05-26 11:27:48 +1000 | [diff] [blame] | 17 | "${PROJECT_ROOT}/scripts/hps-mon" \ |
| 18 | --openocd-port 4444 \ |
| 19 | --gateware "${PROJECT_ROOT}/build/hps_platform/gateware/hps_platform.bit" \ |
| 20 | --soc-rom "${ROM}" \ |
David Lattimore | fdfb2e3 | 2022-04-28 14:08:01 +1000 | [diff] [blame^] | 21 | --test-data-dir "${PROJECT_ROOT}/test_data" \ |
David Lattimore | cf55e3b | 2022-02-01 12:07:30 +1100 | [diff] [blame] | 22 | --cmd 'reset_mcu; write_gateware; write_soc_rom; launch_app_without_i2c' \ |
David Lattimore | 60e282a | 2021-05-26 11:27:48 +1000 | [diff] [blame] | 23 | "$@" |