PK3CMD Program only selected Program Memory Range

[复制链接]
 楼主| zhaosr19 发表于 2012-8-25 09:12 | 显示全部楼层 |阅读模式
Readme for PK3CMD.txt中
Program Memory Range -N####,####
#### is a hexidecimal number representing Start and End Address in sequence
PK3CMD.txt给了个例子
Program only selected Program Memory Range:
PK3CMD -P18F67J50 -FC:\DemoCode.Hex -M -N100,2FF

使用
PK3CMD -P16F723 -V4.750 -FF:\a3.hex -M -N8,A8
或使用
PK3CMD -P16F723 -V4.750 -FF:\a3.hex -M -N4,54

Connecting...
PICkit 3 detected
Connecting to PICkit 3...
Firmware Suite Version...... 01.27.04
Firmware type......................Midrange
PICkit 3 Connected.
Device ID Revision = 00000012

Programming Device ...
Warning: Addresses must be aligned on a(n) 8 byte boundary
Failed to perform Program !!!

经过我逐步分析,问题就出现在-N8,A8或-N4,54,哪位大侠还能指点一下?谢谢

a3.hex

:040000008A110D282C
:10000800FE00030E83120313A0000A08A1008A1140
:100018006C2A8A11E82E8316A401A6018A11DA2512
:100028008A11831203131215D601C901CA01C70127
:10003800C801060886000530A900AA018A116825AA
:100048008A112908DA00CF01D001D701871156118A
:100058009F149E019F182E281E08CF070318D00A48
:10006800D70A04305702031C48285008BD004F081F
:10007800BC000310BD0CBC0C0310BD0CBC0C3C0830
:10008800D800CF01D001D701640863040319D72829
:100098001430650203189B286308A2006408A300B3
:1000A8000730A401A501A901A800A130A7002030AC
:00000001FF

 楼主| zhaosr19 发表于 2012-8-25 10:13 | 显示全部楼层
PK3CMD -P16F723 -V4.750 -FF:\a3.hex -M -N4, 54

PK3CMD -P16F723 -V4.750 -FF:\a3.hex -M -N8, A8
又出现下面的告警了,真是怪

Connecting...
PICkit 3 detected
Connecting to PICkit 3...
Firmware Suite Version...... 01.27.04
Firmware type......................Midrange
PICkit 3 Connected.
Device ID Revision = 00000012

Invalid Program Memory End Address !!!
yewuyi 发表于 2012-8-25 16:19 | 显示全部楼层
是不是问题出在你的芯片型号设置上?
         PK3CMD -P18F67J50 -FC:\DemoCode.Hex -M -N100,2FF
使用    PK3CMD -P16F723 -V4.750 -FF:\a3.hex -M -N8,A8
或使用 PK3CMD -P16F723 -V4.750 -FF:\a3.hex -M -N4,54
 楼主| zhaosr19 发表于 2012-8-25 22:31 | 显示全部楼层
应该不是,我现在需要写的就是16f723
yewuyi 发表于 2012-8-27 09:45 | 显示全部楼层
你需要的是16F723,但看PK3CMD -P18F67J50 -FC:\DemoCode.Hex -M -N100,2FF ,你可能导入了18F67J50的HEX文件啊

你自己再验证一下是不是这么操作了?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

22

主题

59

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部

22

主题

59

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部