在线时间0 小时
UID2012010
注册时间2013-5-19
NXP金币0
该用户从未签到
新手上路

- 积分
- 21
- 最后登录
- 1970-1-1
|
新人求教,以前没用过freescale的片子
板子是KwikStik-K40,不知道有没有用过这个板子的前辈
用IAR下载程序的时候,始终连接不上
不知道我的IAR设置有没有问题
在general option里面选的是Device Freescale K40Xxxx
在Debugger里面选的是J-LINK/J-Trace
在J-LINK/J-Trace里面connection选的是USB,interface选过JTAG也选过SWD,但都下不了
选JTAG的时候弹出下面这个
debug log 是下面这样的
Sun May 19 22:22:09 2013: JLINK command: ProjectFile = F:\project\freescale\LCD_trial\settings\LCDtrial_Debug.jlink, return = 0
Sun May 19 22:22:09 2013: JLINK command: device = K40Xxxx, return = 0
Sun May 19 22:22:09 2013: DLL version: V4.22?
Sun May 19 22:22:09 2013: Firmware: J-Link Lite-FSL V1 compiled Jan 31 2011 11:00:51
Sun May 19 22:22:09 2013: JTAG speed is initially set to: 32 kHz
Sun May 19 22:22:09 2013: TotalIRLen = 4, IRPrint = 0x01
Sun May 19 22:22:10 2013: ARM AP[0]: 0x24770011, AHB-AP
Sun May 19 22:22:10 2013: ARM AP[1]: 0x001C0000, JTAG-AP
Sun May 19 22:22:10 2013: TotalIRLen = 4, IRPrint = 0x01
Sun May 19 22:22:11 2013: ARM AP[0]: 0x24770011, AHB-AP
Sun May 19 22:22:11 2013: ARM AP[1]: 0x001C0000, JTAG-AP
Sun May 19 22:22:16 2013: Fatal error: No APB-AP found. Session aborted!
Sun May 19 22:22:16 2013: Failed to load debugee: F:\project\freescale\LCD_trial\Debug\Exe\LCDtrial.out
选SWD的时候弹出下面这个
debug log是下面这样的
Sun May 19 22:20:01 2013: JLINK command: ProjectFile = F:\project\freescale\LCD_trial\settings\LCDtrial_Debug.jlink, return = 0
Sun May 19 22:20:01 2013: JLINK command: device = K40Xxxx, return = 0
Sun May 19 22:20:01 2013: DLL version: V4.22
Sun May 19 22:20:01 2013: Firmware: J-Link Lite-FSL V1 compiled Jan 31 2011 11:00:51
Sun May 19 22:20:01 2013: Selecting SWD as current target interface.
Sun May 19 22:20:01 2013: JTAG speed is initially set to: 32 kHz
Sun May 19 22:20:01 2013: Found SWD-DP with ID 0x2BA01477
Sun May 19 22:20:01 2013: FPUnit: 1 code (BP) slots and 0 literal slots
Sun May 19 22:20:02 2013: FPUnit: 1 code (BP) slots and 0 literal slots
Sun May 19 22:20:02 2013: FPUnit: 1 code (BP) slots and 0 literal slots
Sun May 19 22:20:02 2013: CPU core locked up
Sun May 19 22:20:02 2013: CPU halted
Sun May 19 22:20:02 2013: Core is locked-up, trying to disable WDT.
Sun May 19 22:20:02 2013: CPU core locked up
Sun May 19 22:20:02 2013: CPU halted
Sun May 19 22:20:03 2013: Found SWD-DP with ID 0x2BA01477
Sun May 19 22:20:03 2013: CPU core locked up
Sun May 19 22:20:03 2013: CPU halted
Sun May 19 22:20:03 2013: Core is locked-up, trying to disable WDT.
Sun May 19 22:20:03 2013: CPU core locked up
Sun May 19 22:20:03 2013: CPU halted
Sun May 19 22:20:03 2013: Hardware reset with strategy 2 was performed
Sun May 19 22:20:03 2013: Initial reset was performed
Sun May 19 22:20:16 2013: Fatal error: Failed to prepare for programming. Could not read target memory. Please check your flash settings! Session aborted!
Sun May 19 22:20:17 2013: Failed to load debugee: F:\project\freescale\LCD_trial\Debug\Exe\LCDtrial.out
实在是搞不懂哪里出了问题,请前辈指点,谢谢
|
|