1# Copyright (c) 2022-2024 Intel Corporation
2# SPDX-License-Identifier: Apache-2.0
3# Description:
4# Download preloader and .elf using GDB commands
5
6set confirm off
7set pagination off
8
9#Download and Run preloader
10source boards/intel/socfpga_std/cyclonev_socdk/support/preloader_dl_cmd.txt
11
12#Stop watchdog timer
13#permodrst Reg , reset watch dog timer
14set $permodrst = (int *)0xffd05014
15set *$permodrst = (*$permodrst) | (1<<6)
16set *$permodrst = (*$permodrst) & ~(1<<6)
17
18quit
19