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
Hot Topic (More than 8 Replies) Visual Micro not running Arduino Sketch (Read 3289 times)
ALEXANDER MOSEYCHUK
Junior Member
**
Offline


Posts: 16
Joined: Nov 21st, 2013
Visual Micro not running Arduino Sketch
Apr 4th, 2023 at 11:27am
Print Post  
Hello!
I have a problem with the Visual Micro program.
My program in the Arduino IDE compiles and loads without problems. My device works as it should work according to the program.
If I compile in VisualMicro, the program also shows no errors and loads into the device. But the program runs with errors, not as it should work.
   So I completely updated Windows 10 and installed Visual Studio 2019 again. But the update did not help. As before, the Visual Micro program does not correctly generate the executable code.
I am sending you code files and program download logs in Arduino IDE and Visual Micro.
   I installed everything according to your instructions.
What else needs to be additionally configured for the correct compilation of the program.

I installed the program on three computers. On the first (old) works fine. On the other two (new ones) it compiles incorrectly. My guess is that newer computers are using the wrong compiler.

I am attaching files of correct and erroneous compilation of the program

I ask for your help.
Sincerely!
Alexander.
« Last Edit: Apr 4th, 2023 at 11:34am by ALEXANDER MOSEYCHUK »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
ALEXANDER MOSEYCHUK
Junior Member
**
Offline


Posts: 16
Joined: Nov 21st, 2013
Re: Visual Micro not running Arduino Sketch
Reply #1 - Apr 4th, 2023 at 11:31am
Print Post  
False log file
  

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


Posts: 2731
Joined: Feb 13th, 2019
Re: Visual Micro not running Arduino Sketch
Reply #2 - Apr 4th, 2023 at 12:07pm
Print Post  
Thanks for the report. 

Can you attach the logs from the Arduino IDE when it is successful with the Preferences > Show Verbose Output During Compile and Upload enabled?

Can you also update your Visual Micro installations on the failing machines from the below page and retry:
https://www.visualmicro.com/page/Arduino-Visual-Studio-Downloads.aspx

Also enable the below settings when adding the updated vMicro logs:
  • vMicro > Compiler > Show Build Properties
  • vMicro > Uploader > Verbose
« Last Edit: Apr 4th, 2023 at 12:10pm by Simon@Visual Micro »  
Back to top
IP Logged
 
ALEXANDER MOSEYCHUK
Junior Member
**
Offline


Posts: 16
Joined: Nov 21st, 2013
Re: Visual Micro not running Arduino Sketch
Reply #3 - Apr 4th, 2023 at 12:16pm
Print Post  
I completely updated windows 10, visual studio 2019 and visual micro. When compiling successfully on the old computer, I get this output attached file.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
ALEXANDER MOSEYCHUK
Junior Member
**
Offline


Posts: 16
Joined: Nov 21st, 2013
Re: Visual Micro not running Arduino Sketch
Reply #4 - Apr 4th, 2023 at 12:23pm
Print Post  
Updated programs installed on new computers. The program compiles and loads, but the device does not work.
  When compiling correctly, I get messages like this in the Arduino IDE
gcc/7-2017q4/bin/../lib/gcc/arm-none-eabi/7.2.1/ ../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes

gcc/7-2017q4/bin/../lib/gcc/arm-none-eabi/7.2.1/ ../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes

gcc/7-2017q4/bin/../lib/gcc/arm-none-eabi/7.2.1/ ../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes

gcc/7-2017q4/bin/../lib/gcc/arm-none-eabi/7.2.1/ ../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes

gcc/7-2017q4/bin/../lib/gcc/arm-none-eabi/7.2.1/ ../../../../arm-none-eabi/bin/ld.exe: warning: changing start of section .bss by 4 bytes

I get the same messages on the old computer. The program compiles and runs without errors. Newer computers do not have these messages.
The program is not working.
I get the same messages on the old computer. The program compiles and runs without errors. Newer computers do not have these messages.
The program is not working.
I assume that new computers use a different compiler.
I am attaching the files of the non-working program.
  

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


Posts: 2731
Joined: Feb 13th, 2019
Re: Visual Micro not running Arduino Sketch
Reply #5 - Apr 4th, 2023 at 12:24pm
Print Post  
The vMicro installations are not the latest in either log file.

Success on Old Computer: 1.2022.0905-4
Failed Log: 1.2022.0429-0

Latest version available from the Download page is: 1.2023.0220-05

If you update one of the failing machines to the latest from the download page below, we will more easily be able to assist and fix any issue if it is still present.
https://www.visualmicro.com/page/Arduino-Visual-Studio-Downloads.aspx

Also please confirm which version of the STM32 Board package you have installed on the Failing and Working machines.
  
Back to top
IP Logged
 
ALEXANDER MOSEYCHUK
Junior Member
**
Offline


Posts: 16
Joined: Nov 21st, 2013
Re: Visual Micro not running Arduino Sketch
Reply #6 - Apr 4th, 2023 at 12:38pm
Print Post  
All computers have the same arduino-1.8.9 program and STM32GENERIC version installed. board=BLUEPILL_F103C8
In ArduinoIDE on all computers, the program compiles and works well. It also compiles well on an old computer in the VisualMicro program.
Attached file
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
ALEXANDER MOSEYCHUK
Junior Member
**
Offline


Posts: 16
Joined: Nov 21st, 2013
Re: Visual Micro not running Arduino Sketch
Reply #7 - Apr 4th, 2023 at 12:39pm
Print Post  
File on a new non-working computer (all programs are up to date)
  

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


Posts: 2731
Joined: Feb 13th, 2019
Re: Visual Micro not running Arduino Sketch
Reply #8 - Apr 4th, 2023 at 12:49pm
Print Post  
Thanks for the update, is it the below board package you are using?
https://github.com/danieleff/STM32GENERIC

Can you ensure all of the below options are enabled in vMicro when compiling and attaching logs:
  • vMicro > Compiler > Verbose
  • vMicro > Compiler > Show Build Properties
  • vMicro > Uploader > Verbose


Please add fresh logs from the working machine and a failing machine with all of the options above enabled for us to review.


  
Back to top
IP Logged
 
ALEXANDER MOSEYCHUK
Junior Member
**
Offline


Posts: 16
Joined: Nov 21st, 2013
Re: Visual Micro not running Arduino Sketch
Reply #9 - Apr 4th, 2023 at 12:56pm
Print Post  
Да, я использую https://github.com/danieleff/STM32GENERIC
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
ALEXANDER MOSEYCHUK
Junior Member
**
Offline


Posts: 16
Joined: Nov 21st, 2013
Re: Visual Micro not running Arduino Sketch
Reply #10 - Apr 4th, 2023 at 12:59pm
Print Post  
File on non-working computer
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
ALEXANDER MOSEYCHUK
Junior Member
**
Offline


Posts: 16
Joined: Nov 21st, 2013
Re: Visual Micro not running Arduino Sketch
Reply #11 - Apr 4th, 2023 at 1:08pm
Print Post  
Settings file on a running computer. The computer is installed in another house, so the program is not downloaded to the device. Connected to it remotely
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
ALEXANDER MOSEYCHUK
Junior Member
**
Offline


Posts: 16
Joined: Nov 21st, 2013
Re: Visual Micro not running Arduino Sketch
Reply #12 - Apr 4th, 2023 at 1:08pm
Print Post  
Settings file on a running computer. The computer is installed in another house, so the program is not downloaded to the device. Connected to it remotely
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
ALEXANDER MOSEYCHUK
Junior Member
**
Offline


Posts: 16
Joined: Nov 21st, 2013
Re: Visual Micro not running Arduino Sketch
Reply #13 - Apr 4th, 2023 at 1:17pm
Print Post  
In two hours I will be at home and I can connect the device to two computers (old and new).
I will try to answer all your questions. My English is poor. I only know everything related to writing programs. I hope you understand my answers. Smiley
« Last Edit: Apr 4th, 2023 at 1:18pm by ALEXANDER MOSEYCHUK »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2731
Joined: Feb 13th, 2019
Re: Visual Micro not running Arduino Sketch
Reply #14 - Apr 4th, 2023 at 1:18pm
Print Post  
Thanks for the logs.

These are still showing the latest version of Visual Micro has not been installed as we requested.

Please update Visual Micro on the failing machine from the VSIX which can be downloaded below:
https://1drv.ms/u/s!AsT00oFsGAmRoO4JVG47LeCEaM5-cQ?e=zXY2Bl
  
Back to top
IP Logged
 
ALEXANDER MOSEYCHUK
Junior Member
**
Offline


Posts: 16
Joined: Nov 21st, 2013
Re: Visual Micro not running Arduino Sketch
Reply #15 - Apr 4th, 2023 at 1:29pm
Print Post  
Uploaded the new version. The device still doesn't work. Sad
  

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


Posts: 2731
Joined: Feb 13th, 2019
Re: Visual Micro not running Arduino Sketch
Reply #16 - Apr 4th, 2023 at 1:37pm
Print Post  
Thanks for confirming.

From the logs it appears on the failing machine there is an Adafruit board package installed which comes with a later GCC compiler, which is then being used for the STM32 board you have.

On the Failing Machine you can force the correct compiler by:
1) If you add a Local Board.txt file to the project (vMicro > Add Code > Add Local board.txt)
2) Then paste in the line from the attached file.
3) Run Build > Clean Solution
4) Try rebuilding the program again

Alternatively uninstalling the Adafruit board package should avoid the issue.

« Last Edit: Apr 4th, 2023 at 2:12pm by Simon@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
IP Logged
 
ALEXANDER MOSEYCHUK
Junior Member
**
Offline


Posts: 16
Joined: Nov 21st, 2013
Re: Visual Micro not running Arduino Sketch
Reply #17 - Apr 4th, 2023 at 3:21pm
Print Post  
The information from the board_012.txt file causes an error. I updated the ArduinoIDE and didn't download the Adafruit board package. I only installed the package for only Arduino SAMD21
The program loaded and the device worked normally. Thank you very much!! Cheesy
I installed and uninstalled VisualMicro several times looking for the error. I have a restriction on reinstallation until July. Could you remove this restriction. Thank you very much. Cry
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2731
Joined: Feb 13th, 2019
Re: Visual Micro not running Arduino Sketch
Reply #18 - Apr 4th, 2023 at 3:35pm
Print Post  
Glad to hear it is working as expected now.

Can you email us your license key (sales at visualmicro.com) and also attach the error message you are seeing which prevents you from using the software which causes a problem until July?
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint