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 Postupload Hook not working (Read 2585 times)
Mariusz
Newbies
*
Offline


Posts: 3
Joined: Feb 28th, 2018
Postupload Hook not working
Nov 18th, 2020 at 2:07pm
Print Post  
Hello,

I'm currently working on Arduino Due project. 

I've created flashuploader program in order to download flash data just before the upload process starts. 
When it's done, flashuploader reads binary file and send it back to Due flash.

To achieve that, I'm using board.txt with hooks entries.
recipe.hooks.deploy.preupload.pattern=cmd.exe /c "D:\FlashUploader\flashuploader.exe {serial.port} FTD D:\binary.bin"
recipe.hooks.deploy.postupload.pattern=cmd.exe /c "D:\FlashUploader\flashuploader.exe {serial.port} DTF D:\binary.bin"

Everything worked until new Atmel/Microchip installation/update. 

At the moment, preupload hook works well BUT postupload never run.
For sure, there are no upload errors during the process.

Any suggestions?
« Last Edit: Nov 19th, 2020 at 6:25am by Mariusz »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Postupload Hook not working
Reply #1 - Nov 18th, 2020 at 2:46pm
Print Post  
dud you try the latest visual micro from the new releases section of this forum
  
Back to top
WWW  
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2175
Joined: Feb 13th, 2019
Re: Postupload Hook not working
Reply #2 - Nov 18th, 2020 at 3:41pm
Print Post  
Once updated, the below hook should work in its place:
Code
Select All
recipe.hooks.vmdeploy.postupload.pattern= 

  
Back to top
 
IP Logged
 
Mariusz
Newbies
*
Offline


Posts: 3
Joined: Feb 28th, 2018
Re: Postupload Hook not working
Reply #3 - Nov 19th, 2020 at 6:23am
Print Post  
Thank you!

I works! I'm using two hooks now:

Code
Select All
recipe.hooks.deploy.preupload.pattern
recipe.hooks.vmdeploy.postupload.pattern 



Seems like preupload hook stays the same as it was before.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2175
Joined: Feb 13th, 2019
Re: Postupload Hook not working
Reply #4 - Nov 24th, 2020 at 2:15pm
Print Post  
Thanks, we have aligned this in the latest version (20.09.10.16) from the below board, so the recipe.hooks.vmdeploy.postupload.pattern works as expected:-
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint