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 Import Arduino project which has external assembler .S file (Read 1620 times)
CliveTS
Newbies
*
Offline


Posts: 7
Joined: Sep 28th, 2021
Import Arduino project which has external assembler .S file
Nov 16th, 2022 at 8:19pm
Print Post  
Hello all,

I have just purchased and installed Visual Micro for Visual Studio 2022. When I try to open an Arduino project that has an external assembler .S file Visual Micro does not show it in the project explorer. It also says it can't find the external assembler function.

It all works fine in the Arduino IDE, so not the start I was expecting.

What needs to be configured to make this work?

Thanks

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


Posts: 2729
Joined: Feb 13th, 2019
Re: Import Arduino project which has external assembler .S file
Reply #1 - Nov 17th, 2022 at 10:58am
Print Post  
Thanks for the report.

If you click the "Show All Files" button at the top of the Solution Explorer, you will then see the *.S file there, where you can right click it and select "Include In Project".

It should then compile as expected.

Can you confirm you used either the File > Open Arduino Project, or vMicro > Open Existing Arduino Project?

NOTE: Currently this works correctly for *.s files but not for *.S files, which we will look at improving in a future release.
« Last Edit: Nov 17th, 2022 at 4:22pm by Simon@Visual Micro »  
Back to top
IP Logged
 
CliveTS
Newbies
*
Offline


Posts: 7
Joined: Sep 28th, 2021
Re: Import Arduino project which has external assembler .S file
Reply #2 - Nov 18th, 2022 at 11:26am
Print Post  
Hello,

I used File > Open Arduino Project

I then did as you said and use "Show All Files" and included the .S file.

I then renamed the .S file to .s and built the project.

It still does not find the ASM function or any of the labels defined in the .s file.


I then tried vMicro > Open Existing Arduino Project with a copy of the original Arduino project and the above steps and it does not work.

I have been using PlatformIO for about a year and that works fine. I just thought I would try Visual Micro to see if it is quicker at compiling as PlatformIO can be slow sometimes.


Thanks 

Clive

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


Posts: 2729
Joined: Feb 13th, 2019
Re: Import Arduino project which has external assembler .S file
Reply #3 - Nov 18th, 2022 at 11:40am
Print Post  
Thanks for the update.

If you rename the file back to being *.S then it will compile as expected in both Visual Micro and the Arduino IDE.
  
Back to top
IP Logged
 
CliveTS
Newbies
*
Offline


Posts: 7
Joined: Sep 28th, 2021
Re: Import Arduino project which has external assembler .S file
Reply #4 - Nov 18th, 2022 at 2:07pm
Print Post  
Hello,

I have attached the file ASMtest.zip

This Arduino project works with the Arduino IDE and PlatfomIO as is. Please can you show me how to get it to work in Visual Micro.

Regards,

Clive
  

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


Posts: 2729
Joined: Feb 13th, 2019
Re: Import Arduino project which has external assembler .S file
Reply #5 - Nov 18th, 2022 at 3:41pm
Print Post  
Thanks for the update and the project.

We have opened this in Visual Micro, added the *.S file as before (leaving it as *.S), and this compiles fine for a Cortex-M7 chip (we used the Portenta H7 (M7 Core).

Can you enable the options shown at the top of the page, and perform a build on your project, and attach the complete build output in Visual Micro?
  
Back to top
IP Logged
 
CliveTS
Newbies
*
Offline


Posts: 7
Joined: Sep 28th, 2021
Re: Import Arduino project which has external assembler .S file
Reply #6 - Nov 18th, 2022 at 6:48pm
Print Post  
Hello,

I have reinstalled Visual Studio and Visual Micro and it works now.


Thanks.

Clive
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint