MPLAB® X IDE - Debug (.elf) File is Locked When Doing a Build/Debug-build

MPLAB® X IDE launches .elf errors like:

  • c:\program files (x86)\microchip\xc32\v1.34\bin\bin\gcc\pic32mx\4.5.2\..\..\..\..\bin/xc32-ld.exe: cannot open output file dist/default/production/TouchDisplay.X.production.elf: Invalid argument
  • make[2]: *** [dist/ENET_Dev/debug/FlexWiFiP24.X.debug.elf] Error 255
  • nbproject/Makefile-ENET_Dev.mk:1381: recipe for target 'dist/ENET_Dev/debug/FlexWiFiP24.X.debug.elf' failed

This issue occurs with MPLAB X IDE v3.35. This is documented in the MPLAB X ReadMe file under the section "Repairs and Enhancements in 3.40". We recommend clicking the performance monitor to force a GC collection.

Note: This is fixed under MPLAB X IDE v3.40. Please upgrade to the latest version of MPLAB X IDE.

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.