Mhcmbo32 Could Not Be Loaded Continue Loading Project

Djay

New Member

  • Total Posts : 16
  • Reward points : 0
  • Joined: 2013/03/06 10:12:09
  • Location: 0
  • Status: offline

MPLAB-X: The program file could not be loaded: null

I am running the latest version of MPLABX IDE (v1.90) and the XC8 compiler v.120 which I believe is also the latest. I had started having problems with lockups of the compiler due to files/directories that were being locked- presumably by Java so I uninstalled and reinstalled the IDE. When I build my project(s) now, I am getting the following error at completion of an otherwise successful compile/link:
"BUILD SUCCESSFUL (total time: 21s)
Loading code from C:/Users/m6600/MPLABXProjects/STMD.X/dist/STMD-Debug/production/STMD.X.production.hex...
Loading symbols from C:/Users/m6600/MPLABXProjects/STMD.X/dist/STMD-Debug/production/STMD.X.production.elf...
The program file could not be loaded: null"

I checked in the output file directory, and sure enough there is no ".elf" file, which had previously been generated by default when I originally installed MPLX IDE v1.90.  I have looked through the compiler and linker settings under the "Project | Properties" window and cannot see anywhere to re-enable generation of an elf file output, which at one time I thought I recalled having seen. This has to be an easy problem to resolve and is likely "operator error" on my part. Any help here appreciated!

DJ

dbuss

New Member

  • Total Posts : 6
  • Reward points : 0
  • Joined: 2013/10/08 07:14:09
  • Location: 0
  • Status: offline

Re:MPLAB-X: The program file could not be loaded: null 2013/10/08 08:29:42 (permalink)

Yeah, I got this one for a while.

The solution is you need to specify, EXACTLY, with the ENTIRE PATH, the file which it needs to load.  Just putting in [filename.hex] isn't enough, you'd need [/home/yourname/dir/subdir/subdir2/subdir3/subdir4/filename.hex]

Right click on "Loadables" then go to properties, then edit the "image name:" as I said above.

rpc48gx

Super Member

  • Total Posts : 344
  • Reward points : 0
  • Joined: 2003/11/07 12:52:16
  • Location: Brighton, UK
  • Status: offline

Re:MPLAB-X: The program file could not be loaded: null 2015/05/26 01:48:14 (permalink)

which menu is "Loadables" in?

ric

Super Member

  • Total Posts : 35213
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: offline

Re:MPLAB-X: The program file could not be loaded: null 2015/05/26 02:07:07 (permalink)

robin48gx
which menu is "Loadables" in?

It's not a menu, it's part of the project tree shown on the left.

I also post at: PicForum
To get a useful answer, always state which PIC you are using!

rpc48gx

Super Member

  • Total Posts : 344
  • Reward points : 0
  • Joined: 2003/11/07 12:52:16
  • Location: Brighton, UK
  • Status: offline

Re:MPLAB-X: The program file could not be loaded: null 2015/05/26 02:22:46 (permalink)

Ah thanks, I did find it. I kept trying to put the "Loadables" file in but the gui would not let me
enter the name of the actual "elf" file. I got fed up with "playing" menus in the end
and exited MPLABX and re started it; mysteriously it then worked OK. I do find that although the
hardware microchip sell are generally OK the development tools are inconsistent and flakey to say the least...

post edited by robin48gx - 2015/05/26 02:26:02

bmwman91

Starting Member

  • Total Posts : 33
  • Reward points : 0
  • Joined: 2007/08/31 08:27:39
  • Location: USA
  • Status: offline

Re:MPLAB-X: The program file could not be loaded: null 2015/05/28 15:30:39 (permalink)

Hello folks. I am having the same issue on one PC and not the other. Both have clean installs of the current release of MPLABX 3.00 and XC16 1.24. The device is a dsPIC33EP256MC202.

 On one machine, I can do a "Clean and Build for Debugging", and a "Debug Project" just fine and everything works as expected. That is my personal machine,which runs a clean Win8.1 installation with no bloat or corp-ware.

 On the other machine, which runs my company's IT image of Win8.1 complete with a lot of corpware, I get this error. When I do a "Clean and Build for Debugging", the last few output lines read:

BUILD SUCCESSFUL (total time: 550ms)
Loading symbols from C:/Users/xxxxxxxx/OneDrive/MAFCON_V7/PIC/V7_M42.X/dist/Debug/debug/V7_M42.X.debug.elf...
The program file could not be loaded: 65521

There is a message notification at the bottom status bar, and going into the error that is reported yields this (quote mode removed because it was truncating the text):

java.lang.ArrayIndexOutOfBoundsException: 65521
 at com.microchip.mplab.mdbcore.objectfileparsing.section.ELFStringTableSection.getString(ELFStringTableSection.java:197)
 at com.microchip.mplab.mdbcore.program.processors.ProgramFileElfDefault.load16and32BitGlobalSymbols(ProgramFileElfDefault.java:4673)
 at com.microchip.mplab.mdbcore.program.processors.ProgramFileElfDefault.loadGlobalSymbols(ProgramFileElfDefault.java:4373)
 at com.microchip.mplab.mdbcore.program.processors.ProgramFileElfDefault.BuildSymbolTables(ProgramFileElfDefault.java:1996)
[catch] at com.microchip.mplab.mdbcore.program.processors.ProgramFileElfDefault.Load(ProgramFileElfDefault.java:1061)
 at com.microchip.mplab.mdbcore.program.processors.ProgramFileElfDefault.LoadSymbols(ProgramFileElfDefault.java:397)
 at com.microchip.mplab.mdbcore.loader.MCLoader.Load(MCLoader.java:225)
 at com.microchip.mplab.nbide.loader.MdbLoader$1.run(MdbLoader.java:43)
 at java.lang.Thread.run(Unknown Source)

 This specific error repeats as long as I use the "Clean and Build for Debugging". However, if I try to run the debugger,the error in the output becomes:

BUILD SUCCESSFUL (total time: 550ms)
Loading symbols from C:/Users/xxxxxxxx/OneDrive/MAFCON_V7/PIC/V7_M42.X/dist/Debug/debug/V7_M42.X.debug.elf...
The program file could not be loaded: null

 And the details in the error notification then become:

java.lang.ArrayIndexOutOfBoundsException

 Both machines have the most current versions of Java installed, both the x86 and x64 versions. Could this be some sort of issue with security software blocking MPLABX? When I was using MPLABX Beta 3.00.02 things were building/debugging fine, but I switched to release 3.00 since the ADC was not properly supported in the sumilator.

post edited by bmwman91 - 2015/05/28 16:31:31

ric

Super Member

  • Total Posts : 35213
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: offline

Re:MPLAB-X: The program file could not be loaded: null 2015/05/28 15:33:20 (permalink)

What is the actual username used on each machine?
You appear to have X'd them out.
We are seeing multiple posts of problems with MPLABX3 if the username contains spaces or non-ASCII characters.

I also post at: PicForum
To get a useful answer, always state which PIC you are using!

bmwman91

Starting Member

  • Total Posts : 33
  • Reward points : 0
  • Joined: 2007/08/31 08:27:39
  • Location: USA
  • Status: offline

Re:MPLAB-X: The program file could not be loaded: null 2015/05/28 16:28:30 (permalink)

Correct, I x'ed out the name used on the machine which was giving the error. It is comprised of 8 lower-case ASCII letters (might as well be "xxxxxxxx")...no spaces, symbols or punctuation. For the machine that is working, the user name is 7 standard ASCII letters.

 I did try moving the V7_M42.X project folder to the root C:\ directory, but that did not help.

bmwman91

Starting Member

  • Total Posts : 33
  • Reward points : 0
  • Joined: 2007/08/31 08:27:39
  • Location: USA
  • Status: offline

Re:MPLAB-X: The program file could not be loaded: null 2015/06/04 12:51:32 (permalink)

Quick update...

 I had to reformat the SSD in my personal machine and do a clean install of Windows and all of my software. Upon installing MPLABX 3.00 and XC 1.24, the project that was building correctly before formatting my machine was giving me the error that is the topic of this thread after a 100% clean install of everything.

 I resolved this by creating a new project, copying over all of my source files and setting the project configuration to match the old one. After that, it built and debugged just fine with the simulator.

 The old project that stopped working was originally made in MPLABX 2.35 (or one of the older versions), so maybe there is an issue with creating a project in one version and then trying to work with it in an other. Anyway, there does at least seem to be a fix that only takes 5 minutes to execute.

sunbelt57

Starting Member

  • Total Posts : 32
  • Reward points : 0
  • Joined: 2011/06/21 00:19:24
  • Location: 0
  • Status: offline

Re: MPLAB-X: The program file could not be loaded: null 2015/10/17 08:57:39 (permalink)

I had the same problem. I changed all occurances of "coff" to "elf" in the configuration.xml file in the nbproject directory and it seemed to fix it.

Aiden.Morrison

Super Member

  • Total Posts : 729
  • Reward points : 0
  • Joined: 2005/02/25 11:18:31
  • Location: Canada
  • Status: offline

Re: MPLAB-X: The program file could not be loaded: null 2017/05/07 05:17:24 (permalink)

I just got hit by this when moving a project from MPLABX 3.51 to 3.60.  I tried doing what sunbelt recommended with configurations.xml but it wasn't applicable (there were no references to "coff").  Instead I had to go in to the project configuration and uncheck the box 'load symbols' under loading.

kd_naik

New Member

  • Total Posts : 7
  • Reward points : 0
  • Joined: 2019/02/14 04:41:05
  • Location: 0
  • Status: offline

Re: MPLAB-X: The program file could not be loaded: null 2020/04/22 22:59:58 (permalink)

Selecting "REAL ICE" in properties->hardware tools solved this issue for me

Simon999

New Member

  • Total Posts : 26
  • Reward points : 0
  • Joined: 2020/10/07 04:47:03
  • Location: 0
  • Status: offline

Re: MPLAB-X: The program file could not be loaded: null 2021/03/23 05:48:50 (permalink)

Hi,
I had this problem and solved it. The IDE locked up after loading the xpress board ??
I loaded the path     cp ${ImagePath} E:\OUTPUT.HEX     into the 'Execute this line after build' and tick the box. (Properties/Building)
After a 'build and load' the IDE locked up and could only be cleared by logging out. I then selected my Pickit as the tool and everything worked. I get an error message stating that the tool is unavailable but I ignore it because the IDE has 'also' downloaded the file to the Xpress board. Check where your PC has put the Xpress board first though. i.e.
E:\ or F:\ ......

harleymoughtly.blogspot.com

Source: https://www.microchip.com/forums/m747874.aspx

0 Response to "Mhcmbo32 Could Not Be Loaded Continue Loading Project"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel