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 Beta 1401.20 - avrgcc.compiler.miscellaneous.OtherFlags (Read 5580 times)
Gunter Heuckeroth
Newbies
*
Offline


Posts: 2
Joined: Jan 22nd, 2014
Beta 1401.20 - avrgcc.compiler.miscellaneous.OtherFlags
Jan 23rd, 2014 at 8:24am
Print Post  
Hello

first of all thanks for this excellent module.

Question:
The entry <avrgcc.compiler.miscellaneous.OtherFlags> in cppproj file seems not longer be used?
In version 1310 I was able to add (manually) the option -std=gnu99

Environment: Atmel Studio 6.1 / Plugin 1401.20 / Arduino 1.5.5-rc2 with an Arduino due

Request:
The only thing what's missing to make this tool really perfect would be the abillity of stepping through the program...

Best regards,
Gunter

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


Posts: 12198
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Beta 1401.20 - avrgcc.compiler.miscellaneous.OtherFlags
Reply #1 - Jan 23rd, 2014 at 8:54pm
Print Post  
Thanks very much for the supportive comments!

Quote:
The entry <avrgcc.compiler.miscellaneous.OtherFlags> in cppproj file seems not longer be used?
In version 1310 I was able to add (manually) the option -std=gnu99


I agree we should optional allow atmel project properties to be used to customize the build process but I am a little confused ...

1)
Can you confirm that you had not previously modified the Arduino core or created your own custom board that appeared in the boards list that contained the -std=gnu99 setting? I know we have ways of modifying the compile process to support this but do not recall using an Atmel Studio property.

2)
Were you previously using the Due or an Avr board? 

3)
Which version of the Arduino Ide were you using with 1310?

Sorry if this is my confusion if you confirm these things I can take another look

Quote:
the abillity of stepping through the program


We are investigating this but a solution is a long way off if it works! The problem is that Arduino does not have a debug facility that is easily accessible so normally you add serial.println() messages to the code. 

The Visual Micro debugger does a similar thing. We inject Serial statements into a temp copy of the code during compile and process the serial messages when they arrive on the computer to display "debug like" windows. When a variable is modified during debug a serial message is sent to the Arduino. The injected code checks for this at each breakpoint. Conditional breakpoint expressions and hit counters also have to be managed in the injected code for each break point.

So far we have been able to relatively reliably inject this code to the end of lines that match breakpoints in the Ide (sometimes converting single line if statements to multiline). Uggh! So as you might imagine, being able to add code to every line allowing step is currently out of reach, anything short of that (other than what we have) might be unpredictable or cause code logic to fail  Cry

As an aside, one of our members is working on a clever system that allows us to query/update variables and registers etc without need to declare prior to compilation and upload. We should get much more detailed debugging views of the hardware and it will be more flexible. That's the current hope anyway.
  
Back to top
IP Logged
 
Gunter Heuckeroth
Newbies
*
Offline


Posts: 2
Joined: Jan 22nd, 2014
Re: Beta 1401.20 - avrgcc.compiler.miscellaneous.OtherFlags
Reply #2 - Jan 24th, 2014 at 7:54am
Print Post  
Hello Tim,

in answer to your "answer":

Tim@Visual Micro wrote on Jan 23rd, 2014 at 8:54pm:
1)
Can you confirm that you had not previously modified the Arduino core or created your own custom board that appeared in the boards list that contained the -std=gnu99 setting? I know we have ways of modifying the compile process to support this but do not recall using an Atmel Studio property.

No, I didn't modify any arduino code.

Tim@Visual Micro wrote on Jan 23rd, 2014 at 8:54pm:
2)
Were you previously using the Due or an Avr board?

Yes, and on my second computer it's still working in that combination (see below).

Tim@Visual Micro wrote on Jan 23rd, 2014 at 8:54pm:
3)
Which version of the Arduino Ide were you using with 1310?

As I wrote in the topic before. it still works on
Win7/64Bit, Visual Studio 6.1 (6.1.2730 SP2), VisualMicro plugin 1.1309.11, Arduino 1.5.4 with an arduino due board 

Some more explanations:
I had some code I want to port to the Due.
But in this code there are many places with code allowed by c99 (var declaration in for loops etc.).
I found out (via trial and error) that placing this flag in the cppproj file at this place makes my code compile.
There are also options in the VisualMicro plugin (compiler - debug/release configuration), but at the time I was searching a way to set the std flag, this didn't work.
Or will it now?
Or do you perhaps know another way to set the std flag?

Tim@Visual Micro wrote on Jan 23rd, 2014 at 8:54pm:

the abillity of stepping through the program

I'm aware of  these problem in arduino, and never thougth that it would be easy...
But a function like this would really make the hearts beats faster in every programmers chest Wink

Best regards, 
Gunter
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12198
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Beta 1401.20 - avrgcc.compiler.miscellaneous.OtherFlags
Reply #3 - Jan 24th, 2014 at 7:08pm
Print Post  
Hi, thanks for the  info. I agree some more settings will be useful but for now I would like to get to the bottom of this issue.

On the machine that is working please enable "tools>options>visual micro>compiler>show build properties" and also please enable "tools>options>visual micro>compiler>verbose". Build with the setting as you want them, copy and email the output to info [at] visualmicro.com

Then do the same with the latest release.

Thanks very much
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12198
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Beta 1401.20 - avrgcc.compiler.miscellaneous.OtherFlags
Reply #4 - Jan 28th, 2014 at 11:36pm
Print Post  
Hi,

Thank you for sending the verbose compiler output which also contained the build properties.

Please zip and email this file C:\Program Files (x86)\Arduino\hardware\arduino\sam\platform.txt

Thanks
« Last Edit: Jan 28th, 2014 at 11:37pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint