Microchip
直播中

何丽

7年用户 271经验值
私信 关注
[问答]

当PIC12F1572关闭时丢失程序

嗨,我正面临着PIC12F1572的问题。我创建了我的程序并运行在PIC中,所有的都看起来不错。当我关机后,PIC又失去了程序,需要重新编程。我想它是在EEPROM的程序。我怎么能编程EEPROM,因为我不松动我的程序当我关掉和打开PIC?非常感谢你。

以上来自于百度翻译


      以下为原文

    Hi,

I am facing an issue with PIC12F1572. I created my program and run in PIC and all seems me ok.
When I turn off and after turn on again the PIC lose the program and it is needed to program again.

I think the program it is in EEPROM. How can I program the EEPROM for I don't loose my program when I turn off and turn on the PIC?

Thank you a lot

回帖(6)

王竹

2019-4-29 14:54:57
你有可能在调试模式下编程吗?

以上来自于百度翻译


      以下为原文

    Do you possibly program it in debug mode?
举报

王焕树

2019-4-29 15:04:24
该程序是在Flash中,而不是EEPROM。这是唯一的地方它可以在你的照片。我认为vloki是正确的,你正在编程芯片调试模式。我们只能猜测,你没有提到你使用的是哪一个MPLAB(MPLAB8/MLabx),哪个程序员(PK3,ICD3,真正的ICE),或者你运行程序的精确性。

以上来自于百度翻译


      以下为原文

   
The program is in FLASH, not EEPROM. That is the only place it can be in your PIC.
I think vloki is right, you are programming the chip in debug mode. We can only guess, you did not mention which MPLAB you are using (MPLAB8/MLABX), which programmer (PK3, ICD3, Real-Ice), or how exactly you are running your program.
 
举报

李捷

2019-4-29 15:20:25
嗨,我正在使用MPLAB X IDE V3.40选择器IT3i解决两件事:A)“运行程序”B)“调试模式”我如何才能把程序发送到PIC12F1572,以便把我的程序存储在PIC中,而不在我关机和PIC上电源时被删除?非常感谢。

以上来自于百度翻译


      以下为原文

    Hi,
 
I am using MPLAB X IDE v3.40
PICK it3
I tryed two things:
    a)  "Run the program"
    b) "Debug mode"
 
How can I send the program to PIC12F1572 in order to put my program and be storage in PIC without be deleted when I power off and power on the PIC?
 
Thank you a lot
 

 
****************************************************
Connecting to MPLAB PICkit 3...
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.44.26
Firmware type..............Enhanced Midrange
Programmer to target power is enabled - VDD = 3.250000 volts.
Target device PIC12F1572 found.
Device ID Revision = 2000
Device Erased...
Programming...
The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x1bf
configuration memory
Programming/Verify complete
 
 
举报

王竹

2019-4-29 15:37:12
程序总是存储在闪存中,它一直存在,直到它被新的编程序列删除。根本不可能把程序放在任何其他地方。问题可能是你在调试模式下编程。然后程序需要调试器工具启动。制作设备和其他设备?

以上来自于百度翻译


      以下为原文

    The program is always stored in the FLASH memory.
It stays there until it gets deleted by a new programming sequence.
It is not possible at all to put the program anywhere else.
 
The problem might be that you programmed in debug mode.
Then the Program requires the debugger tool to get started.
Do you use  Make and Program Device or something else?
 
举报

更多回帖

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