• AVR Freaks

Helpful ReplyHot!Project Copy and Hex Problem with MPLAB X IDE v3.00.02-beta

Author
yschen168
New Member
  • Total Posts : 15
  • Reward points : 0
  • Joined: 2012/06/23 05:04:29
  • Location: 0
  • Status: offline
2015/03/13 03:43:01 (permalink)
5 (1)

Project Copy and Hex Problem with MPLAB X IDE v3.00.02-beta

This MPLAB X version is quite a refresh and deserved applaud. There are some bugs are naturally understood.
I encountered build project problem. After copy a project and clean and build it. The error message:" ...production.hex does not exist or is not an executable." always appeared.
Clean failed happens quite often. My trick is to close project and close MPLAB X. Take a break and reopen them.
Expect the official release will solve these.
#1
RISC
Super Member
  • Total Posts : 5379
  • Reward points : 0
  • Status: offline
Re: Project Copy and Hex Problem with MPLAB X IDE v3.00.02-beta 2015/03/14 07:39:39 (permalink)
0
Hi,
 
I did not face such issue.
Do you have a project which you can post and exhibits this issue ?
 
Regards
#2
Jose Diaz
Administrator
  • Total Posts : 1676
  • Reward points : 0
  • Joined: 2010/06/23 11:10:56
  • Location: 0
  • Status: offline
Re: Project Copy and Hex Problem with MPLAB X IDE v3.00.02-beta 2015/03/24 12:01:11 (permalink)
+1 (1)
I can reproduce the issue. Thanks for the report. Yes, this only seems to happen in v3.00 beta.
Jose
 
#3
Nikolay_Po
Super Member
  • Total Posts : 1896
  • Reward points : 0
  • Joined: 2012/04/01 13:49:27
  • Location: Russia, Novorossiysk
  • Status: offline
Re: Project Copy and Hex Problem with MPLAB X IDE v3.00.02-beta 2015/04/17 14:00:24 (permalink)
0
I've got the same: "...X.production.hex does not exist or is not an executable." not after a copy, but after renaming the project.
It was OK when I've renamed just the project inside MPLABX 3.00.02. But after I've tried to check the box "Also rename the project folder" I've got this problem.
It's possible to rename the project back and the problem will disappear.Besides the error, it's possible to package the project. The project with an error being extracted from package become clean of: "production.hex does not exist or is not an executable." error.
#4
rudybaardman
Starting Member
  • Total Posts : 2
  • Reward points : 0
  • Joined: 2009/02/20 05:00:16
  • Location: 0
  • Status: offline
Re: Project Copy and Hex Problem with MPLAB X IDE v3.00.02-beta 2015/04/30 00:13:55 (permalink) ☄ Helpfulby aeromorph 2015/07/08 04:27:13
+10 (10)
Hi,
 
I have the same issue and found a quick fix (in my case) by adding a new Configuration:
Project Properties -> Manage Configurations -> New -> Ok
Select the new Config -> Choose device -> choose compiler -> choose hardware tool -> OK
 
Build the project (don't need to select the new configuration) and the error is gone.
You can now remove this configuration.
 
BR,
Rudy
#5
billreinhold
Super Member
  • Total Posts : 194
  • Reward points : 0
  • Joined: 2011/02/10 16:35:50
  • Location: Atlanta, GA
  • Status: offline
Re: Project Copy and Hex Problem with MPLAB X IDE v3.00.02-beta 2015/06/23 07:29:38 (permalink)
+1 (1)
I have the same issue and found a quick fix (in my case) by adding a new Configuration:
Project Properties -> Manage Configurations -> New -> Ok
Select the new Config -> Choose device -> choose compiler -> choose hardware tool -> OK
 
Build the project (don't need to select the new configuration) and the error is gone.
Thanks, this worked for me with the Mac version as well (3.00)
#6
dreamerK
New Member
  • Total Posts : 14
  • Reward points : 0
  • Joined: 2012/06/18 10:22:45
  • Location: 0
  • Status: offline
Re: Project Copy and Hex Problem with MPLAB X IDE v3.00.02-beta 2015/08/27 23:09:35 (permalink)
0
Hello,
 
I am also having some issues with project renaming and copying in v3.00. I downloaded v3.05 and there is no change. The problem is when I try to rename a project, I get an error, so I tried to copy the project with a new name. Building the new project resulted in the .hex does not exist error mentioned in this post. The problem was the project name was not changed in the Makefile-default which is located in /nbproject folder, I changed the name manually and the error is gone.
 
Today I tried to rename a project again, and it worked without errors in v3.05
#7
R Steele
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2015/09/01 14:44:18
  • Location: 0
  • Status: offline
Re: Project Copy and Hex Problem with MPLAB X IDE v3.00.02-beta 2015/09/02 08:49:28 (permalink)
0
Two solutions I've found that seem work consistently for me (MPLAB-X 3.05):
 
Which to use hinges on the .X extension MPLAB-X insists on using for new projects, i.e. the project folder name has .X appended, and the production files (.elf, .hex, .map) include the .X in their file names.
 
1) If you like (or at least accept) the .X convention then
  • In "Projects" tab, right-click project to be copied, select "Copy"
  • In dialog, enter the desired project name adding a .X on the end. Ignore what's stated in the ghosted "Project Folder" textbox. Click "Copy".
  • Optionally close the original project (my preference)
  • Right-click copied project name and select "Rename"
  • In dialog, edit project name to remove .X. Click "Rename".
  • At this point, you may note the project name shown in projects tab has not changed. It will be updated after being closed and re-opened.
  • Build project, or better yet, Clean and Build.
  • NOTE: Residual, unnecessary .elf, .hex, and .map files with the old project name will remain in the prodution folder. Clean will remove them, or you can remove them manually or just leave them.
2) If you don't care about the .X extension then
  • In "Projects" tab, right-click project to be copied, select "Copy"
  • In dialog, enter the desired project name. The dialog's ghosted "Project Folder" textbox will show a .X on the intended folder name, but the folder will not have the .X when created. Click "Copy".
  • Optionally close the original project (my preference)
  • Now bring up the copied project's properties dialog.
  • Choose a different Hardware Tool. Use Simulator if you have no other. Click "Apply". Now choose your original Hardware Tool. Click "OK".
  • Build project, or better yet, Clean and Build. Same caveats as method 1.

An annoyance that remains whenever using MPLAB-X's built-in Copy Project feature is that timestamps of files are updated to current time. I'd prefer my source files retain their old timestamps and will generally manually re-copy all the source code from the original project before altering any of them.
#8
BillE
New Member
  • Total Posts : 4
  • Reward points : 0
  • Joined: 2018/02/26 09:48:30
  • Location: 0
  • Status: offline
Re: Project Copy and Hex Problem with MPLAB X IDE v3.00.02-beta 2018/07/10 14:35:14 (permalink)
0
Project copy still seems to be a problem MPLABX 4.20.
Using XC8 1.45 with latest MCC
Copied a working project to new named project and got 'production.hex' error.
 
I applied Rudy's solution to the copied project and it worked fine.
Only difference when I deleted the NewConfiguration I had to do a clean build to get it to work.
Thanks Rudy.
Bill
#9
cen199
New Member
  • Total Posts : 11
  • Reward points : 0
  • Joined: 2014/03/07 10:41:05
  • Location: 0
  • Status: offline
Re: Project Copy and Hex Problem with MPLAB X IDE v3.00.02-beta 2018/12/12 07:30:49 (permalink)
0
Thanks Rudy,
I moved a project and got:
<old path>.production. does not exist or is not an executable.
 
I had to follow your instructions as well as restart MPLAB.
MPLAB X IDE v5.10
 
#10
jjdiii
New Member
  • Total Posts : 6
  • Reward points : 0
  • Joined: 2014/02/04 17:12:43
  • Location: 0
  • Status: offline
Re: Project Copy and Hex Problem with MPLAB X IDE v3.00.02-beta 2018/12/27 19:49:46 (permalink)
0
I am also still having this problem.  It looks like the IDE is using absolute paths and not repairing the paths when you do a new compile.  You need to make the clean remove all these file so they can be rebuilt.
 
This seems like a major problem that could cause files from a different project to be compiled.  This is very annoying and potentially able to cause a major problem.  I think I have seen this before when I made a change but it did compiled output did not have the change.
 
Having this bug since V3 should be embarrassing.  How long before we can get this fixed?
 
James Donald
#11
MatsB
New Member
  • Total Posts : 12
  • Reward points : 0
  • Joined: 2017/08/12 13:24:00
  • Location: 0
  • Status: offline
Re: Project Copy and Hex Problem with MPLAB X IDE v3.00.02-beta 2019/01/13 05:41:31 (permalink)
+1 (1)
still having this problem too V4.20
Really annoying !!
#12
jjdiii
New Member
  • Total Posts : 6
  • Reward points : 0
  • Joined: 2014/02/04 17:12:43
  • Location: 0
  • Status: offline
Re: Project Copy and Hex Problem with MPLAB X IDE v3.00.02-beta 2019/04/09 17:49:49 (permalink)
+1 (1)
This is still a bug in 5.10.
 
I think all you need to do is delete:
Makefile-default.mk
 
I expect Clean to remove all files created by the IDE and the compiler.  This needs to be fixed.  Is there a way to file an official bug report?
 
 
 
#13
qhb
Superb Member
  • Total Posts : 9999
  • Reward points : 0
  • Joined: 2016/06/05 14:55:32
  • Location: One step ahead...
  • Status: offline
Re: Project Copy and Hex Problem with MPLAB X IDE v3.00.02-beta 2019/04/09 18:00:46 (permalink)
+2 (2)
jjdiii
...
Is there a way to file an official bug report?

The official way is to lodge a "Support Ticket" via
www.microchip.com/support
 

Nearly there...
#14
Javier Lopez
Pulsotron designer
  • Total Posts : 44
  • Reward points : 0
  • Joined: 2019/02/27 09:59:32
  • Location: Spain
  • Status: offline
Re: Project Copy and Hex Problem with MPLAB X IDE v3.00.02-beta 2019/04/30 04:47:57 (permalink)
0
I only deleted Makefile-default.mk and worked all
#15
Frankaas
Starting Member
  • Total Posts : 48
  • Reward points : 0
  • Joined: 2018/12/12 02:02:21
  • Location: 0
  • Status: offline
Re: Project Copy and Hex Problem with MPLAB X IDE v3.00.02-beta 2019/08/15 02:09:30 (permalink)
0
I do not have the Makefile-default but Rudy's solution worked for me.
#16
sggaunt
Super Member
  • Total Posts : 212
  • Reward points : 0
  • Joined: 2009/12/03 06:51:45
  • Location: Huddersfield
  • Status: offline
Re: Project Copy and Hex Problem with MPLAB X IDE v3.00.02-beta 2019/08/21 03:03:46 (permalink)
0
Using V4.20 same problem Rudy's fix works, thank you!
#17
Sobottech
Super Member
  • Total Posts : 256
  • Reward points : 0
  • Joined: 2015/12/02 03:32:17
  • Location: 0
  • Status: offline
Re: Project Copy and Hex Problem with MPLAB X IDE v3.00.02-beta 2019/09/18 00:48:18 (permalink)
0
Hi,
 
thank you for the suggestions how to solve this problem.
After some git-pulling-action this problem popped up with latest versions (MPLAB X 5.25).
Perhaps it would not be that bad finding out how to reproduce this failure using git and opening a support ticket...
#18
Jump to:
© 2019 APG vNext Commercial Version 4.5