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


Posts: 4
Joined: Dec 8th, 2021
.hex File Not Generated
Dec 8th, 2021 at 7:15pm
Print Post  
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: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: .hex File Not Generated
Reply #1 - Dec 8th, 2021 at 7:45pm
Print Post  
Please follow the guide in the yellow box near the top of this page

Thanks
  
Back to top
WWW  
IP Logged
 
Kyle Kepley
Newbies
*
Offline


Posts: 4
Joined: Dec 8th, 2021
Re: .hex File Not Generated
Reply #2 - Dec 9th, 2021 at 1:12am
Print Post  
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: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: .hex File Not Generated
Reply #3 - Dec 9th, 2021 at 1:21am
Print Post  
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
« Last Edit: Dec 9th, 2021 at 1:21am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
Kyle Kepley
Newbies
*
Offline


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

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


Posts: 2142
Joined: Feb 13th, 2019
Re: .hex File Not Generated
Reply #5 - Dec 9th, 2021 at 4:16pm
Print Post  
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
Select All
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
Joined: Dec 8th, 2021
Re: .hex File Not Generated
Reply #6 - Dec 9th, 2021 at 9:41pm
Print Post  
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 TopicPrint