blob: 03ae5dc44fdf5a780eb951f06499889b48712419 [file] [log] [blame]
#!/bin/bash
# Copyright 2021 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
set -e
PROJECT_ROOT=$(realpath "$(dirname "${BASH_SOURCE[0]}")"/..)
MCU_ROM="${PROJECT_ROOT}/rust/mcu/target/thumbv6m-none-eabi/debug/stage1_app"
"${PROJECT_ROOT}/scripts/hps-mon" \
--openocd-port 4444 \
--mcu-rom "${MCU_ROM}" \
--gateware "${PROJECT_ROOT}/build/hps_platform/gateware/hps_platform.bit" \
--soc-rom "${PROJECT_ROOT}/build/hps_platform/fpga_rom.bin" \
--test-data-dir "${PROJECT_ROOT}/test_data" \
"$@"