完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
晚上好,我是愚蠢的,不明白我做错了什么。我已经使用PIC18的几年了,一切都很好,我想端口到一个16位处理器。这一切都是错误的。XC8到XC16是我预期的更大的变化集。我可以干净地编译代码,除了代码在定时器周围仍然是错误的,并且配置可能还不到100%。但它确实是编译和链接的。但是在编程时,我会遇到以下错误。目标设备ID(0x0)是无效的设备ID。请检查与目标设备的连接。于是,我又做了一次又一次,现在把我的头发拔出来。我把PACET3针1连接到P1 2到P13 3,到P8和P19 4到P7(PGEC1)5到P6(PGED1)。我需要将这些配置设置为EnabLePGEC1和PGED1用于编程,或者I缺少其他东西。杰夫的思想
以上来自于百度翻译 以下为原文 Good evening, I'm being stupid and don't understand what I'm doing wrong. I've been using PIC18's for a few years now and all is good, and I wanted to port to a 16bit processor. Thats when is all went wrong. XC8 to XC16 is bigger set of changes then I was expecting.. I can compile the code cleanly, I except that the code is still wrong around timers and the configs may not be 100% yet. But it does compile and link. But I'm getting the following error when it get to the programming. Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device. So I did, and did again, and again, and now pulling my hair out. I connected picket3 pin 1 to P1 2 to P13 3 to P8 and P19 4 to P7 (PGEC1) 5 to P6 (PGED1) Do I need to set the configs to enable PGEC1 and PGED1 for programming or an I missing something else. Many thanks for your thoughts. Regards Geoff |
|
相关推荐
2个回答
|
|
|
EnabLePGEC1和PGED1仅用于调试。你可以在任何一套上编程。如果需要,你有所有的帽子,包括VCAP吗?权力呢?
以上来自于百度翻译 以下为原文 enable PGEC1 and PGED1 is for debug only. You can program on any set. Do you have all your Caps, including Vcap if needed? What about Power? |
|
|
|
|
|
您已经有了PGED和PGEC交换。即使对于编程,您还需要将VDD与AVDD和VSS连接到AVSS,并将合适的电容连接到VCAP。请参阅数据表中的“图2-1:推荐的最小连接”。
以上来自于百度翻译 以下为原文 You have PGED and PGEC swapped. Even for programming, you need to connect Vdd to AVdd and Vss to AVss, and fit a suitable capacitor to Vcap. See "FIGURE 2-1: RECOMMENDED MINIMUM CONNECTION" in the datasheet. |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
473 浏览 0 评论
5793 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1124浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1097浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
873浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 07:03 , Processed in 0.741241 second(s), Total 74, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
3284