-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDbg_RAM.ini
26 lines (19 loc) · 1.17 KB
/
Dbg_RAM.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/******************************************************************************/
/* Dbg_RAM.ini: Initialization Script for Debugging in RAM */
/******************************************************************************/
/* This file is part of the uVision/ARM development tools. */
/* Copyright (c) 2010 Keil Software. All rights reserved. */
/* This software may only be used under the terms of a valid, current, */
/* end user licence from KEIL for a compatible version of KEIL software */
/* development tools. Nothing else gives you the right to use this software. */
/******************************************************************************/
//MAP 0xF800, 0xF8FF READ WRITE // allow R/W access to IO space
FUNC void Setup (void) {
SP = _RDWORD(0x10000000); // Setup Stack Pointer
PC = _RDWORD(0x10000004); // Setup Program Counter
// _WDWORD(0xE000ED08, 0x10000000); // No VTOR register in Cortex-M0
_WDWORD(0x40048000, 0x00000001); // Interrupt vectors are re-mapped to Static RAM
}
load %L incremental
Setup(); // Setup for Running
g, main