用JTAG V8 + STM32F103RB 调试,IDE-Version:礦ision3 V3.80 RealView MDK-ARM Version: 3.50
用FLASH调试正常,但是按照网上方法设置在RAM调试不成功,显示:
//--------------------------------
JLink Speed: 500 kHzVTarget = 3.300V
DLL version V4.03r, compiled Mar 9 2009 18:04:21
Firmware: J-Link ARM V8 compiled Dec 1 2009 11:42:48
Hardware: V8.00
TotalIRLen = 9, IRPrint = 0x0011
Found Cortex-M3 r1p1, Little endian.
TPIU fitted.
FPUnit: 6 code (BP) slots and 2 literal slots
Hardware-Breakpoints: 6
Software-Breakpoints: 2048
Watchpoints: 0
S/N : 20100214
Feature(s) : RDI,FlashDL,FlashBP,JFlash,GDBFull
VTarget = 3.300V
TotalIRLen = 9, IRPrint = 0x0011
Found Cortex-M3 r1p1, Little endian.
TPIU fitted.
FPUnit: 6 code (BP) slots and 2 literal slots
TotalIRLen = 9, IRPrint = 0x0011
Found Cortex-M3 r1p1, Little endian.
TPIU fitted.
FPUnit: 6 code (BP) slots and 2 literal slots
Found Cortex-M3 r1p1, Little endian.
TPIU fitted.
FPUnit: 6 code (BP) slots and 2 literal slots
TotalIRLen = 9, IRPrint = 0x0011
Found Cortex-M3 r1p1, Little endian.
TPIU fitted.
FPUnit: 6 code (BP) slots and 2 literal slots
Include "C:\\Documents and Settings\\Administrator\\桌面\\SD+UART\\RAM.ini"
/******************************************************************************/
/* RAM.INI: RAM Initialization File */
/******************************************************************************/
// <<< Use Configuration Wizard in Context Menu >>> //
/******************************************************************************/
/* This file is part of the uVision/ARM development tools. */
/* Copyright (c) 2005-2007 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. */
/******************************************************************************/
FUNC void Setup (void) {
SP = _RDWORD(0x20000000); // Setup Stack Pointer
PC = _RDWORD(0x20000004); // Setup Program Counter
// _WDWORD(0xE000ED08, 0x20000000); // Setup Vector Table Offset Register
}
LOAD Test.axf INCREMENTAL // Download
Setup(); // Setup for Running
g, main
***JLink Error: Could not write CPU register R13: Written: 0x00000501, Read 0x00000500
*** error 121: AGDI: cannot access target while executing
//--------------------------------
出错现象为,有程序下载过程(不确定下载到flash还是ram),下载完后马上自动退出调试。
请原子指点:谢谢! |