Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Error running platform build action hooks.savehex.postsavehex (Read 171 times)
Jesús
Junior Member
**
Offline


Posts: 12
Joined: Jul 1st, 2021
Error running platform build action hooks.savehex.postsavehex
Jan 9th, 2026 at 7:49pm
Print Post  
After the latest VM and ESP32 board update, the following errors appear at the end of the compilation (Attached is a file with the compilation details. ) :

Program ControlCaleHA size: 1574263 bytes (used 92% of a 1703936 byte maximum) (86,78 secs)
Minimum Memory Usage: 72212 bytes (22% of a 327680 byte maximum)
 
# Export compiled binary to 'Project>Property Pages>Output Directory'
# Destination: .esp32.bin"

# recipe.hooks.savehex.postsavehex.1.pattern
powershell -Command =default' -split ':')[0..2] -join '.'; Copy-Item -ErrorAction SilentlyContinue csv' ('D:\Documentos\Arduino\ControlCaleHA\build\' + $env:FQBN_DIR + '\partitions.csv')"
Copy-Item *: No se puede encontrar una parte de la ruta de acceso
   D:\Documentos\Arduino\ControlCaleHA\build\esp32.esp32.esp32\partitions.csv
En linea*: 1 Caracter: 279
+ ...  -join .; Copy-Item -ErrorAction SilentlyContinue D*: Documentos\Ar
   +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          *: NotSpecified: (Smiley [Copy-Item], DirectoryNotFoundException
    + FullyQualifiedErrorId *: nd
Error running platform build action hooks.savehex.postsavehex


# recipe.hooks.savehex.postsavehex.2.pattern
powershell -Command =default' -split ':')[0..2] -join '.'; Copy-Item -ErrorAction SilentlyContinue 'D:\Documentos\Arduino\ControlCaleHA\obj\ARM64\Release\_\esp32_esp32\sdkconfig' ('D:\Documentos\Arduino\ControlCaleHA\build\' + $env:FQBN_DIR + '\sdkconfig')"
Copy-Item *: No se puede encontrar una parte de la ruta de acceso
   D:\Documentos\Arduino\ControlCaleHA\build\esp32.esp32.esp32\sdkconfig
En linea*: 1 Caracter: 279
+ ...  -join .; Copy-Item -ErrorAction SilentlyContinue D*: Documentos\Ar
   +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          *: NotSpecified: (Smiley [Copy-Item], DirectoryNotFoundException
    + FullyQualifiedErrorId *: nd
Error running platform build action hooks.savehex.postsavehex


# recipe.hooks.savehex.postsavehex.3.pattern
powershell -Command =default' -split ':')[0..2] -join '.'; Copy-Item -ErrorAction SilentlyContinue  ('D:\Documentos\Arduino\ControlCaleHA\build\' + $env:FQBN_DIR + '\flash_args')"
Copy-Item *: No se puede encontrar una parte de la ruta de acceso
   D:\Documentos\Arduino\ControlCaleHA\build\esp32.esp32.esp32\flash_args
En linea*: 1 Caracter: 279
+ ...  -join .; Copy-Item -ErrorAction SilentlyContinue D*: Documentos\Ar
   +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          *: NotSpecified: (Smiley [Copy-Item], DirectoryNotFoundException
    + FullyQualifiedErrorId *: nd
Error running platform build action hooks.savehex.postsavehex


# recipe.hooks.savehex.postsavehex.4.pattern
powershell -Command =default' -split ':')[0..2] -join '.'; Copy-Item -ErrorAction SilentlyContinue ls\partitions\boot_app0.bin' ('D:\Documentos\Arduino\ControlCaleHA\build\' + $env:FQBN_DIR + '\boot_app0.bin')"
Copy-Item *: No se puede encontrar una parte de la ruta de acceso
   D:\Documentos\Arduino\ControlCaleHA\build\esp32.esp32.esp32\boot_app0.bin
En linea*: 1 Caracter: 279
+ ...  -join .; Copy-Item -ErrorAction SilentlyContinue C*: Users\Jaggil
   +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          *: NotSpecified: (Smiley [Copy-Item], DirectoryNotFoundException
    + FullyQualifiedErrorId *: nd
Error running platform build action hooks.savehex.postsavehex


# recipe.hooks.savehex.postsavehex.5.pattern
powershell -Command =default' -split ':')[0..2] -join '.'; Copy-Item -ErrorAction SilentlyContinue ns.json' ('D:\Documentos\Arduino\ControlCaleHA\build\' + $env:FQBN_DIR + '\build.options.json')"
Error running platform build action hooks.savehex.postsavehex
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2864
Joined: Feb 13th, 2019
Re: Error running platform build action hooks.savehex.postsavehex
Reply #1 - Jan 9th, 2026 at 8:25pm
Print Post  
Thanks for the report and detail.

We have a fix underway for this and the files its failing to export are all available in the build folder in the interim.

We will update this thread when it is available.
  
Back to top
IP Logged
 
Christopher Cooper
Junior Member
**
Offline


Posts: 26
Joined: Jul 13th, 2020
Re: Error running platform build action hooks.savehex.postsavehex
Reply #2 - Jan 26th, 2026 at 7:15pm
Print Post  
Hi,

I seem to be suffering the same error, pleas see log attached.

It all compiles OK and I can actually upload the firmware using OTA, so the build is working. 

I have updated my ESP software and reinstalled VM, but no difference.

It has been working OK, but this problem seems to have occurred after I started to play with an Arduino Nano ESP32, which has some peculiar quirks. 

That said, sketches for that board do compile and upload correctly, after I had this help from Simon

Please see other post at:

https://www.visualmicro.com/forums/YaBB.pl?num=1768995204

Regards,

Christopher

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint