Board logo

标题: [求助] 我调试是遇到的问题,谁能帮忙看看问题在哪里? [打印本页]

作者: azurysky    时间: 2007-8-23 15:31     标题: [求助] 我调试是遇到的问题,谁能帮忙看看问题在哪里?

芯片用的是 MC9S12HZ256,仿真器 P&E multilink 晶振是外部晶振。
仿真时通讯不上。提示如下:
Loading Target ...
Initializing STARTUP command file:
CMDFILE STARTUP ON ".\cmd\P&E_Multilink_CyclonePro_startup.cmd"
Initializing RESET command file:
CMDFILE RESET ON ".\cmd\P&E_Multilink_CyclonePro_reset.cmd"
Initializing PRELOAD command file:
CMDFILE PRELOAD ON ".\cmd\P&E_Multilink_CyclonePro_preload.cmd"
Initializing POSTLOAD command file:
CMDFILE POSTLOAD ON ".\cmd\P&E_Multilink_CyclonePro_postload.cmd"
Initializing VPPON command file:
CMDFILE VPPON ON ".\cmd\P&E_Multilink_CyclonePro_vppon.cmd"
Initializing VPPOFF command file:
CMDFILE VPPOFF ON ".\cmd\P&E_Multilink_CyclonePro_vppoff.cmd"
Initializing UNSECURE command file:
CMDFILE UNSECURE ON ".\cmd\P&E_Multilink_CyclonePro_erase_unsecure_hcs12.cmd"
close_port()
usb: open_port(1);
preset_communication_speed(50);
set_speed_no_reset() => 1
reset_cable()
check_cable_error() => 0

BDMSTS BDM register not correct or status mismatch.
A hardware reset might have occurred.
read_bd_byte(0xFF01)
=> 0x0
write_bd_byte(0xFF01,0x80)
read_bd_byte(0xFF01)
=> 0x0
The BDM mode has been re-enabled.

find_speed(0, 10, 0) => 0
find_speed(10, 20, 0) => 0
find_speed(20, 29, 0) => 0
find_speed(30, 38, 0) => 0
find_speed(40, 48, 0) => 0
find_speed(50, 57, 0) => 0
find_speed(60, 66, 0) => 0
find_speed(70, 76, 0) => 0
find_speed(80, 85, 0) => 0
find_speed(90, 94, 0) => 0
find_speed(100, 104, 0) => 0
find_speed(110, 113, 0) => 0
find_speed(120, 122, 0) => 0
find_speed(130, 132, 0) => 0
find_speed(140, 141, 0) => 0
find_speed(150, 150, 0) => 0
find_speed(160, 160, 0) => 0
find_speed(170, 170, 0) => 0
find_speed(181, 181, 0) => 0
find_speed(193, 193, 0) => 0
find_speed(205, 205, 0) => 0
find_speed(218, 218, 0) => 0
find_speed(232, 232, 0) => 0
find_speed(247, 247, 0) => 0
find_speed(263, 263, 0) => 0
find_speed(280, 280, 0) => 0
find_speed(298, 298, 0) => 0
find_speed(317, 317, 0) => 0
find_speed(338, 338, 0) => 0
find_speed(360, 360, 0) => 0
find_speed(384, 384, 0) => 0
find_speed(409, 409, 0) => 0
find_speed(436, 436, 0) => 0
find_speed(465, 465, 0) => 0
find_speed(496, 496, 0) => 0
find_speed(529, 529, 0) => 0

最后提示 :failed find communication speed

可能的问题在哪里?


作者: strongchen    时间: 2007-8-23 15:44

仔细检查一下晶振是否起振,信号是否稳定,波形是否正常。
作者: azurysky    时间: 2007-8-24 09:31

用的是外部有源晶振,所以EXTAL脚信号正常的,那如何证明芯片的时钟是否正常呢?
作者: strongchen    时间: 2007-8-24 14:25

用示波器看过晶振信号吗?频率是多少?
作者: azurysky    时间: 2007-8-27 15:23

频率正常.
很奇怪的现象 ,今天一切又工作正常。
以前也是,时而工作正常,时而连接不上。不知道问题到底在哪里?




欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0