mirror of
https://git.code.sf.net/p/openocd/code
synced 2024-11-26 01:06:47 +00:00
95c27731d4
Change-Id: I11af37309fe4684fcb340a00fcc7b2096b8dad76 Signed-off-by: Mark Zhuang <mark.zhuang@spacemit.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7584 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
29 lines
662 B
ArmAsm
29 lines
662 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/***************************************************************************
|
|
* Copyright (C) 2022 by Toms Stūrmanis *
|
|
* toms.sturmanis@gmail.com *
|
|
***************************************************************************/
|
|
|
|
.text
|
|
.syntax unified
|
|
.cpu cortex-m4
|
|
.thumb
|
|
.align 8
|
|
|
|
/*
|
|
* Params :
|
|
* r0-r2 = arguments
|
|
* r3 = target address in rom
|
|
*/
|
|
|
|
.thumb_func
|
|
.global _start
|
|
_start:
|
|
launch_program_in_rom:
|
|
// variables are already set, address to jump is in r3
|
|
blx r3
|
|
exit:
|
|
// Wait for OpenOCD
|
|
bkpt #0x00
|