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) I can't debug with the visual micro (Read 8756 times)
john Zhang
Newbies
*
Offline


Posts: 5
Joined: Aug 2nd, 2015
I can't debug with the visual micro
Aug 2nd, 2015 at 6:11am
Print Post  
Hi~
I can upload in the release mode but when I switch to debug mode there are some error.My board is pro mini.
I added a print screen.
Do you have an idea why the debug mode doesn't work ?
Thank you for your help.

« Last Edit: Aug 3rd, 2015 at 3:46am by Tim@Visual Micro »  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: I can't debug with the visual micro
Reply #1 - Aug 2nd, 2015 at 11:16pm
Print Post  
Hi,

If the board is supported, which the pro is, then this normally means there is a syntax error in a breakpoint "when hit" or "condition"

After you see the error the output window should give more detail.

Please copy and paste the out into an email and send to info[at]visualmicro.com
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: I can't debug with the visual micro
Reply #2 - Aug 3rd, 2015 at 3:48am
Print Post  
Hi,

I have attached the screen image you emailed.

MultiWii appears to redefine and remove standard Arduino Serial functionality. If this is the case your option is to use something like SoftwareSerial for debug instead. 

If your mcu has enough memory you can configure Visual Micro to use software serial for debug. Read more here http://www.visualmicro.com/page/User-Guide.aspx?doc=Debugging-With-Different-Por...
  
Back to top
IP Logged
 
john Zhang
Newbies
*
Offline


Posts: 5
Joined: Aug 2nd, 2015
Re: I can't debug with the visual micro
Reply #3 - Aug 3rd, 2015 at 12:50pm
Print Post  
Hello,

Thanks for your response.

When I import the SoftwareSerial library there is a error like this.

I don't know how to deal with it.

Thank you.
  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: I can't debug with the visual micro
Reply #4 - Aug 3rd, 2015 at 2:28pm
Print Post  
It sounds like the software you are using can not use softwareSerial.

Maybe you can ask for information on the multiwii forum or give me a link to download multiwii and I will look at what it supports

Thanks
  
Back to top
IP Logged
 
john Zhang
Newbies
*
Offline


Posts: 5
Joined: Aug 2nd, 2015
Re: I can't debug with the visual micro
Reply #5 - Aug 3rd, 2015 at 3:44pm
Print Post  
MultiWii is a general purpose free open source project to control flying RC models.I use it to control my quadrotor.

I can't find similar questions in MultiWii forum and you can download it in this page http://www.multiwii.com/wiki/index.php?title=Main_Page#Download ;

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: I can't debug with the visual micro
Reply #6 - Aug 3rd, 2015 at 4:07pm
Print Post  
Thanks, I have known of it for a while along with APM from diydrones.

Both of these projects are excellent but evade most of the standard Arduino.

The one problem I have with both projects is that it is very difficult to quickly see what to install to make an Arduino Ide on windows work. If you can save me some time and tell me what I need that will help Smiley

Thanks
  
Back to top
IP Logged
 
john Zhang
Newbies
*
Offline


Posts: 5
Joined: Aug 2nd, 2015
Re: I can't debug with the visual micro
Reply #7 - Aug 4th, 2015 at 2:07am
Print Post  
I don't know much about APM but for MWC you can just download the project and open the MultiWii.ino in Arduino IDE then you can use it like other Arduino project.

I don't know if I understand what you said because my English is not so good.

Thanks for your patience Smiley.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: I can't debug with the visual micro
Reply #8 - Aug 4th, 2015 at 12:29pm
Print Post  
The project does not compile without configuration settings. I do not have time learn them.

Please attach a zip with your configured project and tell me which board you are using?

Thanks
  
Back to top
IP Logged
 
john Zhang
Newbies
*
Offline


Posts: 5
Joined: Aug 2nd, 2015
Re: I can't debug with the visual micro
Reply #9 - Aug 5th, 2015 at 2:51am
Print Post  
Sorry I forgot you should uncomment some lines in config.h to use it properly.

I can't upload the whole project because it is larger than 250KB, so I just attach my config.h and you can replace the original one with my file.I think there will not be any error more.

Thanks
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint