Microchip
直播中

王睦羽

8年用户 216经验值
私信 关注
[问答]

dsPIC33EP64MC202无法调试但可以编程

大家好,这是我第一次使用DSPIC,我有一个奇怪的问题,一个DSIC33 EP64 MC202。我建立了一个自定义板,我可以编程,但我不能调试DSPIC。我的HW配置是由一个24MHz的外部OSC。4K7电阻在MCLR,7UF在VCAP和I使用PGED2和PGEC2用于ICSP。MCC I配置:FoSC=120 MHz,PTG=禁用。有没有一些想法或暗示?提前感谢。

以上来自于百度翻译


      以下为原文

    Hi all,
This is the first time I use a dsPIC I have a strange problem with a dsPIC33EP64MC202.
I build a custom board and I can program  but i Can't debug the dsPic.
My HW configuration is composed by: an 24Mhz external osc. 4k7 resistor in MCLR, 7uF on Vcap and i use PGED2 and PGEC2 for ICSP.
with MCC I configured : FOSC=120 MHz and PTG = disabled.
Does some has some ideas or hints?

Thanks in advance..

回帖(6)

王璨

2018-9-30 16:06:06
你的保险丝设置是通过PGED2/PGEC2进行调试的吗?

以上来自于百度翻译


      以下为原文

    And your fuse settings are for debugging via PGED2/PGEC2 ?
举报

吴键洪

2018-9-30 16:17:05
+1-配置设置对于编程不重要,但是调试是必需的。因为没有显示配置设置,所以我们必须断定您没有设置它。

以上来自于百度翻译


      以下为原文

   
+1
That config setting doesn't matter for programming, but it is REQUIRED for debugging.
As you did not show your config settings, we must conclude you have not set it.
 
举报

张晶

2018-9-30 16:34:37
嗨,谢谢你给我答案,但是也许你们两个都对了:也许我在HW中连接了PGED3E PGEC3并把它设置成MCC的PGED2E PGEC2管脚。昨天当我完成电路时已经太迟了,经过一些电路更改,也许我错了MCC的设置。可能是真正的错误。今晚,我必须检查参数。

以上来自于百度翻译


      以下为原文

    Hi all
thank's for answer to me, but maybe both of you have right:
maybe I connected in HW the PGED3 e PGEC3 and set into MCC the PGED2 e PGEC2 pins.
Yesterday when I finished the circuit it was too late, And after some circuital change, maybe I Wrong the setting of MCC.
Im not sure, but probably This can be the real error.
This evening, I must check the parameters.
举报

杨叶

2018-9-30 16:46:01
嗨,In MCC,可以设置配置位。确保你选择的ICSP配对与你的电子示意图相匹配。其他要点:你提到VCAP= 7UF。帽子看起来很奇怪,真的是7UF吗?Vcap是非常重要的4.7uf绝对最小(包括容差),并且必须是钽技术(低ESR),用于MCLR上拉,您可能想要增加到10K或更多。

以上来自于百度翻译


      以下为原文

    Hi,
In MCC it is possible to set configuration bits. Make sure that the ICSP pair you select matches your electronic schematic.
Other point : you mention Vcap = 7uF. It seems a very strange value for a cap is it really 7uF ?
Vcap is very important 4.7uF absolute min (including tolerance) and must be tantalum technology (low ESR)
For MCLR pull-up you may want to increase to 10K or more
Regards
举报

更多回帖

发帖
×
20
完善资料,
赚取积分