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 files (Read 2140 times)
orion
Newbies
*
Offline


Posts: 3
Joined: Dec 30th, 2019
HEX files
Jun 5th, 2023 at 8:02pm
Print Post  
Hi,

I'm using Visual Studio 2022. Can anybody tell me in which folder I find the HEX files which are apparently created when uploading a sketch? Are this 'temp' files only?

Thanks
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2505
Joined: Feb 13th, 2019
Re: HEX files
Reply #1 - Jun 6th, 2023 at 9:04am
Print Post  
The HEX files generated during the build process can be located by Enabling "vMicro" > "Compiler" > "Show Build Folder"

Clicking on the link shown in the Output Window for the Build Folder after the build has completed, will take you to where the HEX files are created during the compilation process.

Alternatively you can enable "vMicro" > "Compiler" > "Always Export Binary" to place the resulting file in the project folder (same as Arduino IDE).
« Last Edit: Jun 6th, 2023 at 11:44am by Simon@Visual Micro »  
Back to top
IP Logged
 
PABI
Newbies
*
Offline


Posts: 4
Joined: Aug 16th, 2020
Re: HEX files
Reply #2 - Jul 10th, 2023 at 3:08pm
Print Post  
Is there any way to not add bootloader when generating .BIN file?

I can't find an option at the moment so the output all becomes test.ino.with_bootloader

And I only need test.ino.bin

Thanks.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2505
Joined: Feb 13th, 2019
Re: HEX files
Reply #3 - Jul 10th, 2023 at 3:12pm
Print Post  
Both files should be generated as part of the build process, as the bootloader merge is a separate action once the Sketch binary is generated.

If you can supply the log files requested at the top of the page we will be able to help more easily.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2505
Joined: Feb 13th, 2019
Re: HEX files
Reply #4 - Jul 10th, 2023 at 4:02pm
Print Post  
Thanks for the logs sent via Email.

The log shows that a *.hex file is being generated, which is specified by the options in the board package and is not influenced by Visual Micro.

If you require the BIN File for programming, often either Bin or Hex can be used with the upload tools or a programmer.

One option is to add the below text item to a local boards.txt file in your project (vMicro > Add Code > Add Local Board.txt), which will run the command after the build to generate the BIN file as you need.
recipe.hooks.postbuild.0.pattern={compiler.path}{compiler.elf2hex.cmd} -I ihex "{build.path}/{build.project_name}.hex" -O binary "{build.path}/{build.project_name}.bin"
  
Back to top
IP Logged
 
PABI
Newbies
*
Offline


Posts: 4
Joined: Aug 16th, 2020
Re: HEX files
Reply #5 - Jul 11th, 2023 at 1:30pm
Print Post  
Thank you Sir,

It's works perfectly !!!  Cheesy Cheesy Cheesy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint