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
.hex File Not Generated (Read 295 times)
Kyle Kepley
Newbies
*
Offline



Posts: 4
.hex File Not Generated
Dec 8th, 2021 at 7:15pm
 
Is there an option I need to turn on in order for .hex files to get generated?  I've searched the local project folder and also the C:\Users\<me>\AppData\Local\Temp\VMBuilds\<my app> folder and there is no .hex file to be found.  Also searched verbose output of compiler for ".hex" and it is not there.
Back to top
 
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline



Posts: 11223
United Kingdom
Re: .hex File Not Generated
Reply #1 - Dec 8th, 2021 at 7:45pm
 
Please follow the guide in the yellow box near the top of this page

Thanks
Back to top
 

Tim Leek
home
WWW  
IP Logged
 
Kyle Kepley
Newbies
*
Offline



Posts: 4
Re: .hex File Not Generated
Reply #2 - Dec 9th, 2021 at 1:12am
 
It's pretty much a yes or no question.  Do .hex files get generated automatically or do I have to check some option somewhere to make it happen?
Back to top
 
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline



Posts: 11223
United Kingdom
Re: .hex File Not Generated
Reply #3 - Dec 9th, 2021 at 1:21am
 
Hi,

It depends on the board and toolchain being used. The information in the yellow box will shows exactly what the build creates and where the results are located.

Same applies to the capabilities, the answer is toolchain dependant.

Thanks
Back to top
« Last Edit: Dec 9th, 2021 at 1:21am by Tim@Visual Micro »  

Tim Leek
home
WWW  
IP Logged
 
Kyle Kepley
Newbies
*
Offline



Posts: 4
Re: .hex File Not Generated
Reply #4 - Dec 9th, 2021 at 3:51pm
 
Here is the attachment with compiler output.
Back to top
 

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



Posts: 1145
Re: .hex File Not Generated
Reply #5 - Dec 9th, 2021 at 4:16pm
 
Thanks for the log.

The Due generates a *.bin normally from its platform.txt settings, however if you do want to generate a *.hex, the below overrides will change this:

1) Add a Local board.txt to the project (vMicro > Add Code > Local board.txt)
2) Add the below lines to the file:
Code:
compiler.elf2hex.flags=-O ihex
recipe.objcopy.bin.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf2hex.flags} {compiler.elf2hex.extra_flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex" 


3) Save the file and rebuild the project.

Alternatively this can be run as a separate command from either the command prompt, or as an additional build hook if you wish to keep the standard *.bin generation as well.
Back to top
 
 
IP Logged
 
Kyle Kepley
Newbies
*
Offline



Posts: 4
Re: .hex File Not Generated
Reply #6 - Dec 9th, 2021 at 9:41pm
 
Thanks for the help.  I do see the .bin file that is generated, maybe that will work for what I'm trying to do.  I'm just trying to get someone setup to flash Due boards without having to setup the source code and program them through the IDE.  This is not something I have done before so I'm in the process of figuring out how to do it. 
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print