共3条
1/1 1 跳转至页
ULINK 我所作的一个简单的项目,为什么不能使用ULINK调试?
问
#include "LPC2132.h"
#include "Config.h"
#include "define.h"
void DelayNS (uint32 dly)
{
uint32 i;
for( ; dly>0; dly--)
{
for (i=0; i<50000; i++);
}
}
void statioc(void)
{
/***---------------------------管脚全局配置---------------------------***/
PINSEL0 = 0x00000000; // 设置管脚连接GPIO
PINSEL1 = 0x00000000; // 设置管脚连接GPIO
IO0DIR = 0x00000000; // 设置P0口为输入
IO1DIR = 0x00000000; // 设置P1口为输入
/***---------------------------显 示 配 置---------------------------***/
IO0DIR |= (1 << RCK); // 设置RCK控制口为输出
IO0DIR |= (1 << SCK); // 设置SCK控制口为输出
IO0DIR |= (1 << DAI); // 设置DAI控制口为输出
IO0DIR |= (1 << LED1); // 显示LED1控制口为输出
IO0DIR |= (1 << LED2); // 显示LED2控制口为输出
IO0DIR |= (1 << LED3); // 显示LED3控制口为输出
IO0DIR |= (1 << LED4); // 显示LED4控制口为输出
IO0DIR |= (1 << LED5); // 显示LED5控制口为输出
IO0DIR |= (1 << LED6); // 显示LED6控制口为输出
/***---------------------------数 据 采 集---------------------------***/
PINSEL0 = 0x00000005;
PINSEL1 = 1 << 22; // P0.27连接到AD0.0
PINSEL1 = 1 << 18; // P0.30连接到AD0.4
PINSEL1 = 1 << 20; // P0.30连接到AD0.5
/***---------------------------外部继电器控制------------------------***/
IO1DIR |= (1 << RELAYA); // 显示LED1控制口为输出
IO1DIR |= (1 << RELAYB); // 显示LED2控制口为输出
IO1DIR |= (1 << RELAYC); // 显示LED3控制口为输出
IO1DIR |= (1 << RELAYD); // 显示LED4控制口为输出
IO1DIR |= (1 << RELAYE); // 显示LED5控制口为输出
}
void SendData(unsigned char data)
{
unsigned char i;
for (i = 0; i < 8; i ++)
{
IO0CLR = (1 << SCK);
if (data & 0x80)
{
IO0SET = (1 << DAI);
}
else
{
IO0CLR = (1 << DAI);
}
data <<= 1;
IO0SET = (1 << SCK);
}
}
void LedShow(void)
{
uint8 ShowBuf[6];
uint8 const DispTab[10] = {
// 0 1 2 3 4 5 6 7 8 9
0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8, 0x80,0x90,
};
for(i=0;i<6;i++)
{
if(i<4)
{
ShowBuf[i]=DispTab[LedShowBuf][i]];
}
else
{
ShowBuf[i]=LedShowBuf[i];
}
SendData(ShowBuf[i]);
}
}
int main (void)
{
statioc();
while(1)
{
uint8 h;
for(h=0;h<7;h++)
{
LedShowBuf[h]=h;
}
LedShow();
}
return 0;
}
在模拟调试的时候没有问题,但就是不能使用Ulink调试!
请问是那里的原因啊?
注意:
use keil ARM tools 答 1: 不能用ulink调试是什么意思? 答 2: 就是不能运行啊?程序好象是没有编译! 答 3: 其它程序可以么?首先你要找到故障的原因点。 答 4: 换句话说:不能连接目标板调试!使用 SIM 一切正常! 答 5: ULINK 可以找到目标板. 答 6: 连接 ULINK 后的错误提示Menory missmatch!
address:0x80000000
value=0x18
expected=0x90 答 7: 你是否使用外部FLASH吗? 答 8: 写ram或者flash错误啊 看你的启动配置正常不? 答 9: 注意以下几点:你在工程中设的晶振频率对不对,在DEBUG后面的UTIL下的FLASH配置中选ULINK,在SETTING中加上你的代码位置。参考我的下面两图 答 10: 另一幅 答 11: 你是否使用外部FLASH吗?你是否使用外部FLASH吗?
不是的!我就是用的内部的啊!
另外转到ADS的环境里面调试就没有问题!
难道还是KEIL的配置问题?
谢谢 z_no1 答 12: 我需要修改下面的什么啊?LARM LINKER/LOCATER V2.40 06/24/2006 15:31:31 PAGE 1
LARM LINKER/LOCATER V2.40, INVOKED BY:
C:\KEIL\ARM\BIN\LA.EXE Startup.obj, Commonality.obj, TargetResetInit.obj, Main.obj, Show.obj, station.obj, KeyGather.obj
>> , DataGather.obj, Execute.obj, EnergyTab.obj, IIC.obj, DelayNS.obj, SendData.obj TO power IXREF (NOLIBRARIES) WARNING
>> LEVEL (0) CLASSES (DATA (0X40000000-0X40003FFF), CODE (0X0-0XFFFF), CONST (0X0-0XFFFF), DATA (0X40000000-0X40003FFF),
>> CODE (0X0-0XFFFF), CONST (0X0-0XFFFF)))
CPU MODE: LITTLE ENDIAN
INPUT MODULES INCLUDED:
Startup.obj (STARTUP)
COMMENT TYPE 0: AA V2.40a
Commonality.obj (Commonality)
COMMENT TYPE 0: CARM V2.40a
TargetResetInit.obj (TargetResetInit)
COMMENT TYPE 0: CARM V2.40a
Main.obj (Main)
COMMENT TYPE 0: CARM V2.40a
Show.obj (Show)
COMMENT TYPE 0: CARM V2.40a
station.obj (station)
COMMENT TYPE 0: CARM V2.40a
KeyGather.obj (KeyGather)
COMMENT TYPE 0: CARM V2.40a
DataGather.obj (DataGather)
COMMENT TYPE 0: CARM V2.40a
Execute.obj (Execute)
COMMENT TYPE 0: CARM V2.40a
EnergyTab.obj (EnergyTab)
COMMENT TYPE 0: CARM V2.40a
IIC.obj (IIC)
COMMENT TYPE 0: CARM V2.40a
DelayNS.obj (DelayNS)
COMMENT TYPE 0: CARM V2.40a
SendData.obj (SendData)
COMMENT TYPE 0: CARM V2.40a
C:\KEIL\ARM\LIB\CAL.LIB (FIQ)
COMMENT TYPE 0: AA V2.40a
C:\KEIL\ARM\LIB\CAL.LIB (IRQ)
COMMENT TYPE 0: AA V2.40a
C:\KEIL\ARM\LIB\CAL.LIB (DABT)
COMMENT TYPE 0: AA V2.40a
C:\KEIL\ARM\LIB\CAL.LIB (PABT)
COMMENT TYPE 0: AA V2.40a
C:\KEIL\ARM\LIB\CAL.LIB (SWI)
COMMENT TYPE 0: AA V2.40a
C:\KEIL\ARM\LIB\CAL.LIB (UNDEF)
COMMENT TYPE 0: AA V2.40a
ACTIVE MEMORY CLASSES OF MODULE: power (STARTUP)
BASE START END USED MEMORY CLASS
========================================================
00000000H 40000000H 40003FFFH 000004A8H DATA
40000000H 40003FFFH
00000000H 00000000H 0000FFFFH 00000338H CODE
00000000H 0000FFFFH
00000000H 00000000H 0000FFFFH 0000002AH CONST
00000000H 0000FFFFH
MEMORY MAP OF MODULE: power (STARTUP)
LARM LINKER/LOCATER V2.40 06/24/2006 15:31:31 PAGE 2
START STOP LENGTH ALIGN RELOC MEMORY CLASS SEGMENT NAME
=========================================================================
00000000H 0000010FH 00000110H 4 AT.. CODE STARTUPCODE
00000110H 00000119H 0000000AH 4 UNIT CONST ?CON?Show
0000011AH 0000011BH 00000002H --- --- **GAP**
0000011CH 00000133H 00000018H 4 UNIT CONST ?C_CLRSEG
00000134H 0000013BH 00000008H 4 UNIT CONST ?C_INITSEG
0000013CH 000001ABH 00000070H 4 UNIT CODE ?PR?main?Main
000001ACH 00000213H 00000068H 4 UNIT CODE ?PR?LedShow?T?Show
00000214H 000002FFH 000000ECH 4 UNIT CODE ?PR?statioc?T?station
00000300H 0000034BH 0000004CH 4 UNIT CODE ?PR?SendData?T?SendData
0000034CH 0000034FH 00000004H 4 UNIT CODE ?C?FIQ
00000350H 00000353H 00000004H 4 UNIT CODE ?C?IRQ
00000354H 00000357H 00000004H 4 UNIT CODE ?C?DABT
00000358H 0000035BH 00000004H 4 UNIT CODE ?C?PABT
0000035CH 00000363H 00000008H 4 UNIT CODE ?C?UNDEF
00000364H 3FFFFFFFH 3FFFFC9CH --- --- **GAP**
40000000H 4000048FH 00000490H 4 UNIT DATA STACK
40000490H 40000497H 00000008H 4 UNIT DATA ?DT0?Commonality
40000498H 400004A7H 00000010H 4 UNIT DATA ?DT0?IIC
REMOVED FUNCTIONS OF MODULE: power (STARTUP)
ATTRIBUTE FUNCTION NAME
========================
unused TargetResetInit?T
unused key?T
unused ad?T
unused relay?T
unused energy?T
unused ISendByte?T
unused IRcvByte?T
unused I2C_ReadNByte?T
unused I2C_WriteNByte?T
unused IRQ_I2C?T
unused DelayNS?T
PUBLIC SYMBOLS OF MODULE: power (STARTUP)
VALUE CLASS TYPE PUBLIC SYMBOL NAME
================================================
0000011CH --- --- ?C?CLRTAB
0000013CH --- --- ?C?INIT
00000134H --- --- ?C?INITTAB
00000354H CODE --- DAbt_Handler?A
00000000H CODE --- DelayNS?T
0000034CH CODE --- FIQ_Handler?A
00000000H CODE --- I2C_ReadNByte?T
00000000H CODE --- I2C_WriteNByte?T
4000049CH DATA --- I2C_buf
400004A6H DATA BYTE I2C_end
400004A0H DATA --- I2C_num
400004A4H DATA BYTE I2C_sla
40000498H DATA --- I2C_suba
400004A7H DATA BYTE I2C_suba_en
400004A5H DATA BYTE I2C_suba_num
00000350H CODE --- IRQ_Handler?A
00000000H CODE --- IRQ_I2C?T
00000000H CODE --- IRcvByte?T
00000000H CODE --- ISendByte?T
000001ACH CODE --- LedShow?T
LARM LINKER/LOCATER V2.40 06/24/2006 15:31:31 PAGE 3
40000492H DATA --- LedShowBuf
00000358H CODE --- PAbt_Handler?A
0000035CH CODE --- SWI_Handler?A
00000300H CODE --- SendData?T
00000000H CODE --- TargetResetInit?T
00000360H CODE --- Undef_Handler?A
00000000H CODE --- __startup
00000000H CODE --- ad?T
00000000H CODE --- energy?T
000000F0H CODE --- exit?A
000000F4H CODE --- exit?T
40000490H DATA BYTE i
40000491H DATA BYTE j
00000000H CODE --- key?T
00000170H CODE --- main
00000000H CODE --- relay?T
00000214H CODE --- statioc?T
INTER-MODULE CROSS-REFERENCE LISTING
NAME . . . . . . . CLASS MODULE NAMES
========================================
?C?CLRTAB. . . . . --- ** LARM GENERATED **
?C?INIT. . . . . . --- ** LARM GENERATED **
?C?INITTAB . . . . --- ** LARM GENERATED **
DAbt_Handler?A . . CODE ** LARM GENERATED **
DelayNS?T. . . . . CODE ** LARM GENERATED **
FIQ_Handler?A. . . CODE ** LARM GENERATED **
I2C_ReadNByte?T. . CODE ** LARM GENERATED **
I2C_WriteNByte?T . CODE ** LARM GENERATED **
I2C_buf. . . . . . DATA ** LARM GENERATED **
I2C_end. . . . . . DATA ** LARM GENERATED **
I2C_num. . . . . . DATA ** LARM GENERATED **
I2C_sla. . . . . . DATA ** LARM GENERATED **
I2C_suba . . . . . DATA ** LARM GENERATED **
I2C_suba_en. . . . DATA ** LARM GENERATED **
I2C_suba_num . . . DATA ** LARM GENERATED **
IRQ_Handler?A. . . CODE ** LARM GENERATED **
IRQ_I2C?T. . . . . CODE ** LARM GENERATED **
IRcvByte?T . . . . CODE ** LARM GENERATED **
ISendByte?T. . . . CODE ** LARM GENERATED **
LedShow. . . . . CODE ** LARM GENERATED **
LedShowBuf . . . . DATA ** LARM GENERATED **
PAbt_Handler?A . . CODE ** LARM GENERATED **
SWI_Handler?A. . . CODE ** LARM GENERATED **
SendData . . . . CODE ** LARM GENERATED **
TargetResetInit?T. CODE ** LARM GENERATED **
Undef_Handler?A. . CODE ** LARM GENERATED **
__startup. . . . . CODE ** LARM GENERATED **
ad?T . . . . . . . CODE ** LARM GENERATED **
energy?T . . . . . CODE ** LARM GENERATED **
exit?A . . . . . . CODE ** LARM GENERATED **
exit?T . . . . . . CODE ** LARM GENERATED **
i. . . . . . . . . DATA ** LARM GENERATED **
j. . . . . . . . . DATA ** LARM GENERATED **
key?T. . . . . . . CODE ** LARM GENERATED **
main . . . . . . . CODE ** LARM GENERATED **
relay?T. . . . . . CODE ** LARM GENERATED **
statioc. . . . . CODE ** LARM GENERATED **
Program Size: data=1192 const=42 code=824
LARM LINKER/LOCATER V2.40 06/24/2006 15:31:31 PAGE 4
LARM RUN COMPLETE. 0 WARNING(S), 0 ERROR(S)
答 13: 也许是RO和RW地址没设置对吧。 答 14: 你的问题是代码校验没通过你进入DEBUG状态后,ULINK要先把编译好的代码下栽到片内的FLASH中,才能执行,你按我的图检查一下就知道了。 答 15: 问题是:我有时候可以在Ulink里面调试,但是概率很低!很不清楚是那里的问题? 答 16: 是不是ISP引脚的问题? 答 17: 问题解决:主要是外置看门狗不能正常的下载程序!谢谢大家对我的支持!
以后还多多向各位学习!\
谢谢! 答 18: 应该是这样吧~~~ 答 19: 有一个小问题这对以下问题我经常碰到
但只要重新上电就没有问题了!
Menory missmatch!
address:0x80000000
value=0x18
expected=0x90
#include "Config.h"
#include "define.h"
void DelayNS (uint32 dly)
{
uint32 i;
for( ; dly>0; dly--)
{
for (i=0; i<50000; i++);
}
}
void statioc(void)
{
/***---------------------------管脚全局配置---------------------------***/
PINSEL0 = 0x00000000; // 设置管脚连接GPIO
PINSEL1 = 0x00000000; // 设置管脚连接GPIO
IO0DIR = 0x00000000; // 设置P0口为输入
IO1DIR = 0x00000000; // 设置P1口为输入
/***---------------------------显 示 配 置---------------------------***/
IO0DIR |= (1 << RCK); // 设置RCK控制口为输出
IO0DIR |= (1 << SCK); // 设置SCK控制口为输出
IO0DIR |= (1 << DAI); // 设置DAI控制口为输出
IO0DIR |= (1 << LED1); // 显示LED1控制口为输出
IO0DIR |= (1 << LED2); // 显示LED2控制口为输出
IO0DIR |= (1 << LED3); // 显示LED3控制口为输出
IO0DIR |= (1 << LED4); // 显示LED4控制口为输出
IO0DIR |= (1 << LED5); // 显示LED5控制口为输出
IO0DIR |= (1 << LED6); // 显示LED6控制口为输出
/***---------------------------数 据 采 集---------------------------***/
PINSEL0 = 0x00000005;
PINSEL1 = 1 << 22; // P0.27连接到AD0.0
PINSEL1 = 1 << 18; // P0.30连接到AD0.4
PINSEL1 = 1 << 20; // P0.30连接到AD0.5
/***---------------------------外部继电器控制------------------------***/
IO1DIR |= (1 << RELAYA); // 显示LED1控制口为输出
IO1DIR |= (1 << RELAYB); // 显示LED2控制口为输出
IO1DIR |= (1 << RELAYC); // 显示LED3控制口为输出
IO1DIR |= (1 << RELAYD); // 显示LED4控制口为输出
IO1DIR |= (1 << RELAYE); // 显示LED5控制口为输出
}
void SendData(unsigned char data)
{
unsigned char i;
for (i = 0; i < 8; i ++)
{
IO0CLR = (1 << SCK);
if (data & 0x80)
{
IO0SET = (1 << DAI);
}
else
{
IO0CLR = (1 << DAI);
}
data <<= 1;
IO0SET = (1 << SCK);
}
}
void LedShow(void)
{
uint8 ShowBuf[6];
uint8 const DispTab[10] = {
// 0 1 2 3 4 5 6 7 8 9
0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8, 0x80,0x90,
};
for(i=0;i<6;i++)
{
if(i<4)
{
ShowBuf[i]=DispTab[LedShowBuf][i]];
}
else
{
ShowBuf[i]=LedShowBuf[i];
}
SendData(ShowBuf[i]);
}
}
int main (void)
{
statioc();
while(1)
{
uint8 h;
for(h=0;h<7;h++)
{
LedShowBuf[h]=h;
}
LedShow();
}
return 0;
}
在模拟调试的时候没有问题,但就是不能使用Ulink调试!
请问是那里的原因啊?
注意:
use keil ARM tools 答 1: 不能用ulink调试是什么意思? 答 2: 就是不能运行啊?程序好象是没有编译! 答 3: 其它程序可以么?首先你要找到故障的原因点。 答 4: 换句话说:不能连接目标板调试!使用 SIM 一切正常! 答 5: ULINK 可以找到目标板. 答 6: 连接 ULINK 后的错误提示Menory missmatch!
address:0x80000000
value=0x18
expected=0x90 答 7: 你是否使用外部FLASH吗? 答 8: 写ram或者flash错误啊 看你的启动配置正常不? 答 9: 注意以下几点:你在工程中设的晶振频率对不对,在DEBUG后面的UTIL下的FLASH配置中选ULINK,在SETTING中加上你的代码位置。参考我的下面两图 答 10: 另一幅 答 11: 你是否使用外部FLASH吗?你是否使用外部FLASH吗?
不是的!我就是用的内部的啊!
另外转到ADS的环境里面调试就没有问题!
难道还是KEIL的配置问题?
谢谢 z_no1 答 12: 我需要修改下面的什么啊?LARM LINKER/LOCATER V2.40 06/24/2006 15:31:31 PAGE 1
LARM LINKER/LOCATER V2.40, INVOKED BY:
C:\KEIL\ARM\BIN\LA.EXE Startup.obj, Commonality.obj, TargetResetInit.obj, Main.obj, Show.obj, station.obj, KeyGather.obj
>> , DataGather.obj, Execute.obj, EnergyTab.obj, IIC.obj, DelayNS.obj, SendData.obj TO power IXREF (NOLIBRARIES) WARNING
>> LEVEL (0) CLASSES (DATA (0X40000000-0X40003FFF), CODE (0X0-0XFFFF), CONST (0X0-0XFFFF), DATA (0X40000000-0X40003FFF),
>> CODE (0X0-0XFFFF), CONST (0X0-0XFFFF)))
CPU MODE: LITTLE ENDIAN
INPUT MODULES INCLUDED:
Startup.obj (STARTUP)
COMMENT TYPE 0: AA V2.40a
Commonality.obj (Commonality)
COMMENT TYPE 0: CARM V2.40a
TargetResetInit.obj (TargetResetInit)
COMMENT TYPE 0: CARM V2.40a
Main.obj (Main)
COMMENT TYPE 0: CARM V2.40a
Show.obj (Show)
COMMENT TYPE 0: CARM V2.40a
station.obj (station)
COMMENT TYPE 0: CARM V2.40a
KeyGather.obj (KeyGather)
COMMENT TYPE 0: CARM V2.40a
DataGather.obj (DataGather)
COMMENT TYPE 0: CARM V2.40a
Execute.obj (Execute)
COMMENT TYPE 0: CARM V2.40a
EnergyTab.obj (EnergyTab)
COMMENT TYPE 0: CARM V2.40a
IIC.obj (IIC)
COMMENT TYPE 0: CARM V2.40a
DelayNS.obj (DelayNS)
COMMENT TYPE 0: CARM V2.40a
SendData.obj (SendData)
COMMENT TYPE 0: CARM V2.40a
C:\KEIL\ARM\LIB\CAL.LIB (FIQ)
COMMENT TYPE 0: AA V2.40a
C:\KEIL\ARM\LIB\CAL.LIB (IRQ)
COMMENT TYPE 0: AA V2.40a
C:\KEIL\ARM\LIB\CAL.LIB (DABT)
COMMENT TYPE 0: AA V2.40a
C:\KEIL\ARM\LIB\CAL.LIB (PABT)
COMMENT TYPE 0: AA V2.40a
C:\KEIL\ARM\LIB\CAL.LIB (SWI)
COMMENT TYPE 0: AA V2.40a
C:\KEIL\ARM\LIB\CAL.LIB (UNDEF)
COMMENT TYPE 0: AA V2.40a
ACTIVE MEMORY CLASSES OF MODULE: power (STARTUP)
BASE START END USED MEMORY CLASS
========================================================
00000000H 40000000H 40003FFFH 000004A8H DATA
40000000H 40003FFFH
00000000H 00000000H 0000FFFFH 00000338H CODE
00000000H 0000FFFFH
00000000H 00000000H 0000FFFFH 0000002AH CONST
00000000H 0000FFFFH
MEMORY MAP OF MODULE: power (STARTUP)
LARM LINKER/LOCATER V2.40 06/24/2006 15:31:31 PAGE 2
START STOP LENGTH ALIGN RELOC MEMORY CLASS SEGMENT NAME
=========================================================================
00000000H 0000010FH 00000110H 4 AT.. CODE STARTUPCODE
00000110H 00000119H 0000000AH 4 UNIT CONST ?CON?Show
0000011AH 0000011BH 00000002H --- --- **GAP**
0000011CH 00000133H 00000018H 4 UNIT CONST ?C_CLRSEG
00000134H 0000013BH 00000008H 4 UNIT CONST ?C_INITSEG
0000013CH 000001ABH 00000070H 4 UNIT CODE ?PR?main?Main
000001ACH 00000213H 00000068H 4 UNIT CODE ?PR?LedShow?T?Show
00000214H 000002FFH 000000ECH 4 UNIT CODE ?PR?statioc?T?station
00000300H 0000034BH 0000004CH 4 UNIT CODE ?PR?SendData?T?SendData
0000034CH 0000034FH 00000004H 4 UNIT CODE ?C?FIQ
00000350H 00000353H 00000004H 4 UNIT CODE ?C?IRQ
00000354H 00000357H 00000004H 4 UNIT CODE ?C?DABT
00000358H 0000035BH 00000004H 4 UNIT CODE ?C?PABT
0000035CH 00000363H 00000008H 4 UNIT CODE ?C?UNDEF
00000364H 3FFFFFFFH 3FFFFC9CH --- --- **GAP**
40000000H 4000048FH 00000490H 4 UNIT DATA STACK
40000490H 40000497H 00000008H 4 UNIT DATA ?DT0?Commonality
40000498H 400004A7H 00000010H 4 UNIT DATA ?DT0?IIC
REMOVED FUNCTIONS OF MODULE: power (STARTUP)
ATTRIBUTE FUNCTION NAME
========================
unused TargetResetInit?T
unused key?T
unused ad?T
unused relay?T
unused energy?T
unused ISendByte?T
unused IRcvByte?T
unused I2C_ReadNByte?T
unused I2C_WriteNByte?T
unused IRQ_I2C?T
unused DelayNS?T
PUBLIC SYMBOLS OF MODULE: power (STARTUP)
VALUE CLASS TYPE PUBLIC SYMBOL NAME
================================================
0000011CH --- --- ?C?CLRTAB
0000013CH --- --- ?C?INIT
00000134H --- --- ?C?INITTAB
00000354H CODE --- DAbt_Handler?A
00000000H CODE --- DelayNS?T
0000034CH CODE --- FIQ_Handler?A
00000000H CODE --- I2C_ReadNByte?T
00000000H CODE --- I2C_WriteNByte?T
4000049CH DATA --- I2C_buf
400004A6H DATA BYTE I2C_end
400004A0H DATA --- I2C_num
400004A4H DATA BYTE I2C_sla
40000498H DATA --- I2C_suba
400004A7H DATA BYTE I2C_suba_en
400004A5H DATA BYTE I2C_suba_num
00000350H CODE --- IRQ_Handler?A
00000000H CODE --- IRQ_I2C?T
00000000H CODE --- IRcvByte?T
00000000H CODE --- ISendByte?T
000001ACH CODE --- LedShow?T
LARM LINKER/LOCATER V2.40 06/24/2006 15:31:31 PAGE 3
40000492H DATA --- LedShowBuf
00000358H CODE --- PAbt_Handler?A
0000035CH CODE --- SWI_Handler?A
00000300H CODE --- SendData?T
00000000H CODE --- TargetResetInit?T
00000360H CODE --- Undef_Handler?A
00000000H CODE --- __startup
00000000H CODE --- ad?T
00000000H CODE --- energy?T
000000F0H CODE --- exit?A
000000F4H CODE --- exit?T
40000490H DATA BYTE i
40000491H DATA BYTE j
00000000H CODE --- key?T
00000170H CODE --- main
00000000H CODE --- relay?T
00000214H CODE --- statioc?T
INTER-MODULE CROSS-REFERENCE LISTING
NAME . . . . . . . CLASS MODULE NAMES
========================================
?C?CLRTAB. . . . . --- ** LARM GENERATED **
?C?INIT. . . . . . --- ** LARM GENERATED **
?C?INITTAB . . . . --- ** LARM GENERATED **
DAbt_Handler?A . . CODE ** LARM GENERATED **
DelayNS?T. . . . . CODE ** LARM GENERATED **
FIQ_Handler?A. . . CODE ** LARM GENERATED **
I2C_ReadNByte?T. . CODE ** LARM GENERATED **
I2C_WriteNByte?T . CODE ** LARM GENERATED **
I2C_buf. . . . . . DATA ** LARM GENERATED **
I2C_end. . . . . . DATA ** LARM GENERATED **
I2C_num. . . . . . DATA ** LARM GENERATED **
I2C_sla. . . . . . DATA ** LARM GENERATED **
I2C_suba . . . . . DATA ** LARM GENERATED **
I2C_suba_en. . . . DATA ** LARM GENERATED **
I2C_suba_num . . . DATA ** LARM GENERATED **
IRQ_Handler?A. . . CODE ** LARM GENERATED **
IRQ_I2C?T. . . . . CODE ** LARM GENERATED **
IRcvByte?T . . . . CODE ** LARM GENERATED **
ISendByte?T. . . . CODE ** LARM GENERATED **
LedShow. . . . . CODE ** LARM GENERATED **
LedShowBuf . . . . DATA ** LARM GENERATED **
PAbt_Handler?A . . CODE ** LARM GENERATED **
SWI_Handler?A. . . CODE ** LARM GENERATED **
SendData . . . . CODE ** LARM GENERATED **
TargetResetInit?T. CODE ** LARM GENERATED **
Undef_Handler?A. . CODE ** LARM GENERATED **
__startup. . . . . CODE ** LARM GENERATED **
ad?T . . . . . . . CODE ** LARM GENERATED **
energy?T . . . . . CODE ** LARM GENERATED **
exit?A . . . . . . CODE ** LARM GENERATED **
exit?T . . . . . . CODE ** LARM GENERATED **
i. . . . . . . . . DATA ** LARM GENERATED **
j. . . . . . . . . DATA ** LARM GENERATED **
key?T. . . . . . . CODE ** LARM GENERATED **
main . . . . . . . CODE ** LARM GENERATED **
relay?T. . . . . . CODE ** LARM GENERATED **
statioc. . . . . CODE ** LARM GENERATED **
Program Size: data=1192 const=42 code=824
LARM LINKER/LOCATER V2.40 06/24/2006 15:31:31 PAGE 4
LARM RUN COMPLETE. 0 WARNING(S), 0 ERROR(S)
答 13: 也许是RO和RW地址没设置对吧。 答 14: 你的问题是代码校验没通过你进入DEBUG状态后,ULINK要先把编译好的代码下栽到片内的FLASH中,才能执行,你按我的图检查一下就知道了。 答 15: 问题是:我有时候可以在Ulink里面调试,但是概率很低!很不清楚是那里的问题? 答 16: 是不是ISP引脚的问题? 答 17: 问题解决:主要是外置看门狗不能正常的下载程序!谢谢大家对我的支持!
以后还多多向各位学习!\
谢谢! 答 18: 应该是这样吧~~~ 答 19: 有一个小问题这对以下问题我经常碰到
但只要重新上电就没有问题了!
Menory missmatch!
address:0x80000000
value=0x18
expected=0x90
共3条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
【有奖活动——B站互动赢积分】活动开启啦! | |
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |