OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 13204|回复: 1

KEIL 下用RAM调试出错

[复制链接]

2

主题

4

帖子

0

精华

新手上路

积分
42
金钱
42
注册时间
2010-12-15
在线时间
2 小时
发表于 2011-11-1 16:55:05 | 显示全部楼层 |阅读模式

用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),下载完后马上自动退出调试。
 请原子指点:谢谢!

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165536
金钱
165536
注册时间
2010-12-1
在线时间
2117 小时
发表于 2011-11-1 18:16:49 | 显示全部楼层
回复【楼主位】hzh81:
---------------------------------
参考本论坛一个网友发的帖子就可以了.
我是开源电子网www.openedv.com站长,有关站务问题请与我联系。
正点原子STM32开发板购买店铺http://openedv.taobao.com
正点原子官方微信公众平台,点击这里关注“正点原子”
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-6-10 10:20

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表