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.postbuild (Read 2126 times)
justinzane
Newbies
*
Offline


Posts: 3
Joined: Jun 16th, 2023
Error running platform build action hooks.postbuild
Jun 17th, 2023 at 12:47am
Print Post  
Just opened a project from a couple of months ago and I got a Error running platform build action hooks.postbuild when compiling for a Teensy 4.1. Any ideas?

Please find the build properties listing attached.

Kevin
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
justinzane
Newbies
*
Offline


Posts: 3
Joined: Jun 16th, 2023
Re: Error running platform build action hooks.postbuild
Reply #1 - Jun 17th, 2023 at 1:14am
Print Post  
Ok just installed latest VM (LATEST: 23.0507.3 - VS 2017/2019/2022

Jun 7th, 2023 at 12:02pm

same error...new listing attached
  

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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error running platform build action hooks.postbuild
Reply #2 - Jun 17th, 2023 at 3:08pm
Print Post  
The build looks good. The hook message can be ignored. Build hooks can cause warnings when they attempt things such as encryption, when encryption is not configured. The last potentially more important message says your program size is too large.

teensy_size: Memory Usage on Teensy 4.1:
teensy_size:   FLASH: code:397776, data:156336, headers:9084   free for files:7563268
   RAM1*: variables:174368, code:394752, padding:31232   free for local variables:-76064
teensy_size:    RAM2: variables:24928  free for malloc/new:499360
   Error program exceeds memory space

  
Back to top
IP Logged
 
justinzane
Newbies
*
Offline


Posts: 3
Joined: Jun 16th, 2023
Re: Error running platform build action hooks.postbuild
Reply #3 - Jun 17th, 2023 at 3:54pm
Print Post  
Never seen a hook error (not a warning) before and this code is currently running live in hardware. I just haven't compiled it in a few months and it has been sitting in Github. No changes to anything but updating VM and VS. 

The memory error is not valid as there is no teensy connected and I am only compiling. A Teensy has 1 meg of RAM1 btw. All other projects from that time still compile with no error.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error running platform build action hooks.postbuild
Reply #4 - Jun 17th, 2023 at 5:11pm
Print Post  
What is the error you are seeing? The build process is defined by the platform.txt in your "AppData\Local\Arduino15\packages\teensy\hardware\teensy\avr" folder. (nb: The 'avr' part of the path is how teensy works and does not relate to mcu type) 

You would expect to see this message "No key .pem file found, skipping .ehex encryption" because the platform.txt attempts to encrypt the hex if a key file exists. The command is defined as "recipe.hooks.objcopy.postobjcopy.1.pattern=" in the platform.txt

The memory usage is determined by running the "recipe.hooks.postbuild.3.pattern=" in the platform.txt. That uses it's own teensy_size.exe to determe the size of the memory limit for the program code to be valid. You can see this defined in the platform.txt.

Teensy is unique in the fact that when you build it also runs (or attempts to run) the upload tool. This means that whilst you only wanted to build, the fact is that is no different from build and upload. Teensy has always worked this way. This is also defined by the platform.txt build instructions.

Are you reporting that the teensy memory usage reporting is showing the error? If so, do you see same in the Arduino IDE?

« Last Edit: Jun 17th, 2023 at 5:15pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint