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 Cant compile for stm32duino (SOLVED) (Read 1100 times)
ajl
Newbies
*
Offline


Posts: 2
Joined: Dec 15th, 2019
Cant compile for stm32duino (SOLVED)
May 18th, 2020 at 9:41am
Print Post  
hi
I`m using stm32duino core to compile my code for a stm32 discovery board(stm32f407vg).
I can compile it successfully in Arduino IDE but i get errors in VisualMicro(2020.318.1) on Visual Studio 2019(Community edition)

I`ve started new project with a simple blink code:
Code (C++)
Select All
void setup()
{
	pinMode(PD13, OUTPUT);
	Serial.begin(115200);
}

void loop()
{
	digitalWrite(PD13, HIGH); delay(300);
	digitalWrite(PD13, LOW); delay(300);
	Serial.println(millis());
}
 



on first try to compile the code VMicro gives me Quote:
build_opt.h: No such file or directory
error. (complete log in vml1.txt attached). 

after looking around i found out this file (build_opt.h) if not provided should be created in compile routine.
So I made an empty "build_opt.h" file in Release folder.

Now compilation gives me a lot of "undefined reference" errors (complete log in vml2.txt attached). 

any help would be appreciatedĀ  Cry
« Last Edit: May 19th, 2020 at 12:38pm by Tim@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
stmuser890
Newbies
*
Offline


Posts: 4
Joined: May 18th, 2020
Re: Cant compile for stm32duino
Reply #1 - May 18th, 2020 at 2:17pm
Print Post  
got the same issue Cry
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cant compile for stm32duino
Reply #2 - May 18th, 2020 at 2:22pm
Print Post  
Thanks for the report, and this has highlighted a problem which only occurs in the 1.9.0 version of the STM32 Core with Visual Micro.

We are currently investigating this, and in the interim rolling back to the v1.8.0 STM32 core will work around the issue.
« Last Edit: May 18th, 2020 at 3:19pm by Simon@Visual Micro »  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Cant compile for stm32duino
Reply #3 - May 18th, 2020 at 9:14pm
Print Post  
Please install the latest release which hopefully resolves the issue with the stm 1.9 toolchain. The latest release is here:-

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
WWW  
IP Logged
 
ajl
Newbies
*
Offline


Posts: 2
Joined: Dec 15th, 2019
Re: Cant compile for stm32duino
Reply #4 - May 19th, 2020 at 6:43am
Print Post  
thanks!
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint