查看: 4436|回复: 2

[其他] 高手显灵啊!!!!!!!!!!!!!!!!

[复制链接]

该用户从未签到

2

主题

12

帖子

0

新手上路

Rank: 1

积分
14
最后登录
1970-1-1
发表于 2011-3-21 16:15:19 | 显示全部楼层 |阅读模式
 

 
这几天焊了一块电路板,用XDP512 LQFP112 MAL型号的, 电路都是正确的,程序却只能烧一次进去,现在还能运行,我用灯显示的
 
但再烧程序时,就报错,无论烧什么程序都报错!!(程序都是没问题的)
 
具体如下:
 
executing C_layout.hwl
!OPEN source 0 0 60 39
NO CONNECTION
!Source < attributes MARKS off
!OPEN assembly 60 0 40 31
!Assembly < attributes ADR on,CODE off,ABSADR on,SYMB off,TOPPC 0xF88C
!OPEN procedure 0 39 60 17
!Procedure < attributes VALUES on,TYPES off
!OPEN register 60 31 40 25
!Register < attributes FORMAT AUTO,COMPLEMENT None
!OPEN memory 60 56 40 22
!Memory < attributes FORMAT hex,COMPLEMENT None,WORD 1,ASC on,ADR on,ADDRESS 0x80
!OPEN data 0 56 60 22
!Data:1 < attributes SCOPE global,COMPLEMENT None,FORMAT Symb,MODE automatic,UPDATERATE 10,NAMEWIDTH 16
!OPEN data 0 78 60 22
!Data:2 < attributes SCOPE local,COMPLEMENT None,FORMAT Symb,MODE automatic,UPDATERATE 10,NAMEWIDTH 16
!OPEN command 60 78 40 22
!Command < attributes CACHESIZE 1000
!bckcolor 50331647
!font 'Courier New' 9 BLACK
!AUTOSIZE on
!ACTIVATE Data:2 Command Procedure Data:1 Source Register Assembly Memory
done C_layout.hwl
Loading Target ...
SETCOMM DRIVER NOPROTOCOL NOPERIODICAL
SETCOMM COMPORT NONE
IO registers loaded for MC9S12XDP512 from D:\Program Files\CodeWarrior\prog\REG\MCU03F0.REG
SETCOMM DRIVER NOPROTOCOL NOPERIODICAL
SETCOMM COMPORT LPT "TBDML #1"
executing .\cmd\TBDML_startup.cmd
!// At startup the commands written below will be executed
Startup command file correctly executed.
Target Ready
done .\cmd\TBDML_startup.cmd
Startup command file correctly executed.
executing .\cmd\TBDML_preload.cmd
!// Before load the commands written below will be executed
done .\cmd\TBDML_preload.cmd
Preload command file correctly executed.
executing .\cmd\TBDML_reset.cmd
!// After reset the commands written below will be executed
done .\cmd\TBDML_reset.cmd
Reset command file correctly executed.
FP: FLASH parameters loaded for MC9S12XDP512_V10(NVMIF2 rev 2,2,2,1,1,1,1) from D:\Program Files\CodeWarrior\prog\FPP\mcu03F0.fpp
      MCU clock speed: 8000000 Hz
Block Module Name      Address Range   Status
   0  FLASH_4000        4000 -  7FFF   Blank - Unselected
   1  FLASH_C000        C000 -  FFFF   Programmed - Unselected
   2  ALL_PPAGES      E08000 -FFBFFF   Programmed - Unselected
   3  EEPROM_C00         C00 -   FFF   Blank - Unselected
   4  ALL_EPAGES      FC0800 -FF0BFF   Blank - Unselected
   5  EEPROM_800         800 -   BFF   Blank - Unselected
   6  FLASH_8000        8000 -  BFFF   Programmed - Unselected
FP: The UNPROTECT command is not available for the FLASH_4000 flash module => Skipped.
FP: The UNPROTECT command is not available for the FLASH_C000 flash module => Skipped.
FP: The UNPROTECT command is not available for the ALL_PPAGES flash module => Skipped.
FP: The UNPROTECT command is not available for the EEPROM_C00 flash module => Skipped.
FP: The UNPROTECT command is not available for the ALL_EPAGES flash module => Skipped.
FP: The UNPROTECT command is not available for the EEPROM_800 flash module => Skipped.
FP: The UNPROTECT command is not available for the FLASH_8000 flash module => Skipped.
executing .\cmd\TBDML_vppon.cmd
!// Before programming the flash, the commands written below will be executed
done .\cmd\TBDML_vppon.cmd
Vppon command file correctly executed.
TARGET SELF-RESET DETECTED
CANNOT CONNECT. RESETING TARGET.
FP: Operation failed on ALL_PPAGES flash module.
executing .\cmd\TBDML_vppoff.cmd

!// After programming the flash, the commands written below will be executed
done .\cmd\TBDML_vppoff.cmd
Vppoff command file correctly executed.
FP: Arm FLASH for loading.
executing .\cmd\TBDML_vppon.cmd
!// Before programming the flash, the commands written below will be executed
done .\cmd\TBDML_vppon.cmd
Vppon command file correctly executed.
executing .\cmd\TBDML_vppoff.cmd
!// After programming the flash, the commands written below will be executed
done .\cmd\TBDML_vppoff.cmd
Vppoff command file correctly executed.
FP: FLASH disarmed.
executing .\cmd\TBDML_reset.cmd
!// After reset the commands written below will be executed
done .\cmd\TBDML_reset.cmd
Reset command file correctly executed.
executing .\cmd\TBDML_postload.cmd
!// After load the commands written below will be executed
RESET
done .\cmd\TBDML_postload.cmd
Postload command file correctly executed.
main 0xFE8025'L T
STARTED
RUNNING
ILLEGAL_BP
in>
 
最后附上BDM烧程序时弹出的界面:
 
 
我知道答案 目前已有1人回答
未命名1.JPG
未命名2.JPG
未命名3.JPG
回复

使用道具 举报

该用户从未签到

3

主题

15

帖子

0

注册会员

Rank: 2

积分
77
最后登录
1970-1-1
发表于 2011-4-8 12:12:51 | 显示全部楼层

回复:高手显灵啊!!!!!!!!!!!!!!!!

这个问题在CodeWarrior烧写程序时会经常莫名其妙出现,比如刚才还烧得好好的,下次同样的程序就烧写不成功,很恼人的。
现象:例如就出现报警:
xxxxxx unselected
FP:Operation failed on ALL_PPAGES flash module
 
分析原因:这时候BDM连接器通信应该是正确的,写不进的原因大概有2个---1、写入时钟频率与目标板MCU还没找到匹配;2、芯片进入了加密状态
解决方法:
1、拔掉BDM,重新烧写;(先用个极简单的程序)
2、检查目标MCU的加电情况是否正确;
3、BDM调试器错误连接或没有连接、写入错误等,CW均会弹出错误提示。若弹出连接错误信息,则要进行BDM调试器通信连接的正确设置:例如对于APS12XDT512SLK集成的BDM调试器,连接调试器菜单→ Communication中的IO_DELAY_CNT应设为59;若弹出写入错误信息,则可以尝试进行连接调试器菜单→ Unsecure操作,在出现的询问参数填入适当数字如9。
 
以上过程反复折腾,终能解决。
最笨的办法是卸载CodeWarrior,重装、重烧,也是能行的。
  • TA的每日心情
    奋斗
    2024-9-13 10:15
  • 签到天数: 35 天

    连续签到: 1 天

    [LV.5]常住居民I

    13

    主题

    500

    帖子

    0

    金牌会员

    Rank: 6Rank: 6

    积分
    1183
    最后登录
    2024-12-10
    发表于 2012-10-11 23:42:50 | 显示全部楼层

    回复:高手显灵啊!!!!!!!!!!!!!!!!

    加密了应该无法写入程序啊,我的可以写入啊!
    问题解决没有?我有一个二手的xdp256cal,板子,是工程机械上面的,故障板,电源问题我修好了,自己做实验板玩玩。弄了个简单的程序下了后,可以实时仿真及查看变量数据,但是只要用万用表的表棒一接触板子的地线就看见这个提示:TARGET SELF-RESET DETECTED,用手按地线都没事。崩溃了,我!
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /3 下一条

    Archiver|手机版|小黑屋|恩智浦技术社区

    GMT+8, 2025-7-20 22:51 , Processed in 0.088512 second(s), 23 queries , MemCache On.

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.

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