完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
HeloLooWayl今天在我的Ubuntu OS上安装了使用PACKIT3作为程序员的MPLABX V3.40。当我尝试上传一个HEX文件时,我得到了下面的输出,最后一个地址错误://My配置文件看起来是这样的:谢谢马丁。
以上来自于百度翻译 以下为原文 Hello Today I installed MPLABX v3.40 on my UBUNTU OS using Pickit3 as a programmer. When I try to upload a hex file I get the following output and at the end an address error: Connecting to MPLAB PICkit 3... Currently loaded firmware on PICkit 3 Firmware Suite Version.....01.44.26 Firmware type..............Enhanced Midrange Target voltage detected Target device PIC16F1782 found. Device ID Revision = 6 Device Erased... Programming... The following memory area(s) will be programmed: program memory: start address = 0x0, end address = 0x7ff configuration memory program memory Address: 0 Expected Value: 2801 Received Value: 3fff Failed to program device // My config file looks like this: // CONFIG1 #pragma config FOSC = INTOSC // Oscillator Selection (INTOSC oscillator: I/O function on CLKIN pin) #pragma config WDTE = OFF // Watchdog Timer Enable (WDT disabled) #pragma config PWRTE = OFF // Power-up Timer Enable (PWRT disabled) #pragma config MCLRE = ON // MCLR Pin Function Select (MCLR/VPP pin function is MCLR) #pragma config CP = OFF // Flash Program Memory Code Protection (Program memory code protection is disabled) #pragma config CPD = OFF // Data Memory Code Protection (Data memory code protection is disabled) #pragma config BOREN = ON // Brown-out Reset Enable (Brown-out Reset enabled) #pragma config CLKOUTEN = OFF // Clock Out Enable (CLKOUT function is disabled. I/O or oscillator function on the CLKOUT pin) #pragma config IESO = ON // Internal/External Switchover (Internal/External Switchover mode is enabled) #pragma config FCMEN = ON // Fail-Safe Clock Monitor Enable (Fail-Safe Clock Monitor is enabled) // CONFIG2 #pragma config WRT = OFF // Flash Memory Self-Write Protection (Write protection off) #pragma config VCAPEN = OFF // Voltage Regulator Capacitor Enable bit (Vcap functionality is disabled on RA6.) #pragma config PLLEN = OFF // PLL Enable (4x PLL disabled) #pragma config STVREN = ON // Stack Overflow/Underflow Reset Enable (Stack Overflow or Underflow will cause a Reset) #pragma config BORV = LO // Brown-out Reset Voltage Selection (Brown-out Reset Voltage (Vbor), low trip point selected.) #pragma config LPBOR = OFF // Low Power Brown-Out Reset Enable Bit (Low power brown-out is disabled) #pragma config LVP = OFF // Low-Voltage Programming Enable (High-voltage on MCLR/VPP must be used for programming) Thanks Martin |
|
相关推荐
3个回答
|
|
这是告诉你,它没有编程的第一个位置在芯片上。一个空白字是0x3FFF,所以它仍然是空白。你如何为您的PIC供电?从PK3,还是从一个独立的供应?PIC接收电压是多少?你有旁路帽连接到你的PIC的VDD/VSS管脚吗?VSS引脚是否都接地?
以上来自于百度翻译 以下为原文 That is telling you that it failed to program the very first location in the chip. A blank word is 0x3FFF, so it's still blank. How are you powering your PIC? From the PK3, or from an independent supply? What voltage is the PIC receiving? Do you have bypass cap connected close to your PIC's VDD/VSS pins? Are both VSS pins connected to ground? |
|
|
|
Heloi对我自己的反应。问题是没有连接的GND引脚。出乎意料的是PIC仍然被识别。解决了马丁。
以上来自于百度翻译 以下为原文 Hello I response to myself. The problem was the GND pin what was not connected. Surprisingly the PIC got still recognized. Solved Martin |
|
|
|
阅读的能力比写的要少,所以当你试图写的时候,坏的地方就出现了。
以上来自于百度翻译 以下为原文 It takes less power to read than to write, so the bad ground showed up as soon as you tried to write. |
|
|
|
只有小组成员才能发言,加入小组>>
5171 浏览 9 评论
2001 浏览 8 评论
1931 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3176 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2228 浏览 5 评论
737浏览 1评论
622浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
509浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
635浏览 0评论
533浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-26 04:11 , Processed in 1.271185 second(s), Total 82, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号