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 Arduino IDE and Visual Studios 2022 generate different Hex files (Read 5748 times)
Cdavis999
Newbies
*
Offline


Posts: 4
Joined: Mar 9th, 2023
Arduino IDE and Visual Studios 2022 generate different Hex files
May 31st, 2023 at 3:11pm
Print Post  
Recently in a project I am working on, I came across some issues with a program that was using an Arduino Bootloader. To isolate the issue at hand, it was decided to remove the bootloader and upload the code without the bootloader. Typically, on a build in Arduino IDE or Vmicro through visual studios, once an Arduino Project is built, a HEX file with the bootloader and without is created. When comparing the two files generated from Arduino IDE not much is different, as expected, since there is a bootloader and one without. However, when building the project on VMicro in visual studios, the hex outputs are not only wildly different than the Arduino ide outputs, but completely different from each other. This seems very odd to me, and I was wondering if this is an issue you could help me out with. Keep in mind I am using an alternative board file from minicore, to work with the 328pb chipset. This uses the Optiflash bootloader. I’ve checked and confirmed all the board settings in Arduino Ide and Vmicro are identical, and yet still completely different hex files are generated. Any advice on this would be greatly appreciated.

*Output Log files will be emailed internally*
  
Back to top
 
IP Logged
 
Cdavis999
Newbies
*
Offline


Posts: 4
Joined: Mar 9th, 2023
Re: Arduino IDE and Visual Studios 2022 generate different Hex files
Reply #1 - May 31st, 2023 at 8:56pm
Print Post  
An update to the above post: 

After diving into this more I found out that Arduino IDE is using the correct bootloader in the minicore, optiflash board files. However, for some reason the Vmicro in Visual Studios is using the 328P bootloader instead of the 328pb bootloader from minicore, even though the settings are the same. Is there some setting I'm missing that blocks Vmicro from using an uploaded board file? Attached are the settings for Arduino and Vmicro for your reference.
  

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


Posts: 2695
Joined: Feb 13th, 2019
Re: Arduino IDE and Visual Studios 2022 generate different Hex files
Reply #2 - Jun 1st, 2023 at 9:39am
Print Post  
Thanks for the detail around this, it has greatly helped to isolate the problem.

We have identified the issue and we will update this thread when the fix is released in the coming day or so.
  
Back to top
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: Arduino IDE and Visual Studios 2022 generate different Hex files
Reply #3 - Jun 7th, 2023 at 12:03pm
Print Post  
This should now be resolved in the latest release (23.0507.3) which is available from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint