Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • 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
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Postupload Hook not working (Read 72 times)
Mariusz
Newbies
*
Offline



Posts: 3
Postupload Hook not working
Nov 18th, 2020 at 2:07pm
 
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?
Back to top
« Last Edit: Nov 19th, 2020 at 6:25am by Mariusz »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10895
United Kingdom
Re: Postupload Hook not working
Reply #1 - Nov 18th, 2020 at 2:46pm
 
dud you try the latest visual micro from the new releases section of this forum
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline



Posts: 537
Re: Postupload Hook not working
Reply #2 - Nov 18th, 2020 at 3:41pm
 
Once updated, the below hook should work in its place:
Code:
recipe.hooks.vmdeploy.postupload.pattern= 

Back to top
 
 
IP Logged
 
Mariusz
Newbies
*
Offline



Posts: 3
Re: Postupload Hook not working
Reply #3 - Nov 19th, 2020 at 6:23am
 
Thank you!

I works! I'm using two hooks now:

Code:
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: 537
Re: Postupload Hook not working
Reply #4 - Nov 24th, 2020 at 2:15pm
 
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 Topic Print