• AVR Freaks

AnsweredHot!Program Upgrade

Author
Enrique_gf
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2020/08/06 11:25:47
  • Location: 0
  • Status: offline
2020/08/10 15:11:47 (permalink)
0

Program Upgrade

I am upgrading a custom production program from WinXP and VB6 to Win7 and VB.Net. I am doing this because the old computer died and the there are no replacements. I had to install MPlab X on the new computar because the older version was not compatible with Win7 and I had to install IPE because pm3cmd. e x e is not compatible with PMLabx. In my custom program I am using this command in ipecmd
"-5 -P16F870 -E -FXXXXXXX.hex -M -Y -TPPM3
 , which is the same command that was used in pm3cmd in the old version of the custom program, however I am getting this error Message: "No image is present on PM3. Please transfer a hex file before programming or verifying."
the hex files are located on a folder and xxxxx is the path of the folder and the name of the file. I have tried to put the file on the PM3 using a SDcard but I have not been able to use one.
to work around this problem I need to open the GUI version of IPE and load the program manually and program a product, after this I can close the IPE and continue working with my custom program using the above mentioned command. My questions is why is this command not working anymore, I just purchased a new programmer and I am getting the same results.

#1
ric
Super Member
  • Total Posts : 28378
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: offline
Re: Program Upgrade 2020/08/11 13:36:56 (permalink)
5 (1)
Enrique_gf
...
I had to install MPlab X on the new computar because the older version was not compatible with Win7

Who told you that?
I've been running MPLAB 8.92 on Win 7 for years. Nothing special required.
 
Sorry, I've never used a PM3, so don't know the solution to your later questions.
 

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#2
Enrique_gf
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2020/08/06 11:25:47
  • Location: 0
  • Status: offline
Re: Program Upgrade 2020/08/11 14:20:53 (permalink)
0
Ill try to install 8.92. But what about the code do you have an idea of why its not working. I found this sample batch file "demoipecmd.b a t" on opensource4pic and it shows the same error. "No image is present on PM3. Please transfer a hex file before programming or verifying."
#3
Enrique_gf
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2020/08/06 11:25:47
  • Location: 0
  • Status: offline
Re: Program Upgrade 2020/08/11 14:34:38 (permalink)
0
I am using ipecmd.e x e not .jar. Do I need to set my Path environment variable to the folder where the hex files are located or to which value should I set this variable?
#4
dan1138
Super Member
  • Total Posts : 3843
  • Reward points : 0
  • Joined: 2007/02/21 23:04:16
  • Location: 0
  • Status: offline
Re: Program Upgrade 2020/08/11 18:07:13 (permalink)
5 (1)
Enrique_gf
I am using ipecmd.e x e not .jar. Do I need to set my Path environment variable to the folder where the hex files are located or to which value should I set this variable?



I suspect that the start of your problems began when you may have allowed the MPLABX IPE tool to "update" your PM3 device programmer.
 
It seems that after this kind of update any device images stored in the PM3 become invalid and cannot be used for device programming.
 
Depending on what you have done that may become complex to resolve.
 
The worst case is that you will have to reinitialize your PM3 from scratch and load all new device images.
#5
Enrique_gf
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2020/08/06 11:25:47
  • Location: 0
  • Status: offline
Re: Program Upgrade 2020/08/13 08:15:25 (permalink)
0
dan1138
 
 
The worst case is that you will have to reinitialize your PM3 from scratch and load all new device images.


I suspect as well that something like this happened, because the programmer was working fine, that why I purchased the new one, but as soon as I connected the programmer IPE tried to upgrade the firmware on the new one as well.
How can I reinitialize the programmer?
#6
tech24x7
Junior Member
  • Total Posts : 100
  • Reward points : 0
  • Joined: 2013/10/14 21:38:52
  • Location: 0
  • Status: offline
Re: Program Upgrade 2020/08/18 00:03:09 (permalink) ☼ Best Answerby Enrique_gf 2020/09/25 10:18:04
0
Hi, 
May i know which version of MPLAB X you are using is't v5.40?  Can you try the same with MPLAB X v5.35?   
#7
Enrique_gf
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2020/08/06 11:25:47
  • Location: 0
  • Status: offline
Re: Program Upgrade 2020/09/24 16:27:11 (permalink)
0
Hello tech24x7 I just removed MPLAB X 5.40 and installed 5.35, it don't see the same error anymore, it seems like its working. thanks for the advise.
I have some more questions, O would like to compare the checksum of a programmed unit to a known value. Is this possible?
#8
nigelwright7558
New Member
  • Total Posts : 14
  • Reward points : 0
  • Joined: 2020/09/10 02:13:01
  • Location: 0
  • Status: offline
Re: Program Upgrade 2020/09/25 06:27:17 (permalink)
3 (1)
Old MPLAB works even on Win 10.
MPLAB 5.4 doesn't do assembler any more.
You need to go back a version.
I have been converting my assembler stuff over to XC slowly.
 
#9
Enrique_gf
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2020/08/06 11:25:47
  • Location: 0
  • Status: offline
Re: Program Upgrade 2020/09/25 13:28:45 (permalink)
0
Hello Nigel thanks for answering. I don't know how to use assembler. is there a document that shows this?
#10
nigelwright7558
New Member
  • Total Posts : 14
  • Reward points : 0
  • Joined: 2020/09/10 02:13:01
  • Location: 0
  • Status: offline
Re: Program Upgrade 2020/09/25 15:43:25 (permalink)
1 (1)
Enrique_gf
Hello Nigel thanks for answering. I don't know how to use assembler. is there a document that shows this?


I would recommend going over to C.
Assembler is being phased out by Microchip.
#11
Jump to:
© 2020 APG vNext Commercial Version 4.5