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 Debug with Arduino M0 Pro will not run! (Read 8946 times)
RudolfAtWork
Junior Member
**
Offline


Posts: 10
Location: Germany / Esslingen
Joined: Dec 13th, 2014
Debug with Arduino M0 Pro will not run!
Jan 3rd, 2016 at 2:51pm
Print Post  
I'm working some days with an Arduino M0 Pro. The "Debug" with Visual Micro will not work at all. Only the "Release" works.
With the old Arduino UNO all things runs well.
My System: Windows7, Microsoft Visual Studio Community 2013, Visual Micro. I use a very simple sketch with a LED in both cases. Today I have installed a new Visual micro Version (1601.1.1), but the Options Shows a different Version 1.1511.21.
I Need help - please!
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debug with Arduino M0 Pro will not run!
Reply #1 - Jan 3rd, 2016 at 3:42pm
Print Post  
Hi,

There are two ide's for the Zero, 5 cores and more importantly the board has two different usb ports and two board selections.

I can help if you don't explain what combination you are using Smiley

  
Back to top
IP Logged
 
RudolfAtWork
Junior Member
**
Offline


Posts: 10
Location: Germany / Esslingen
Joined: Dec 13th, 2014
Re: Debug with Arduino M0 Pro will not run!
Reply #2 - Jan 4th, 2016 at 9:38am
Print Post  
Hello, that let me hope!
I have used the so called "Arduino M0 Pro (Programming Port)" only. It works fine with "Release" and with the Arduino IDE "Arduino.org 1.7". Visual Micro offers me 3 Arduino variants: Arduino 1.5, Arduino 1.6 and the newest one Arduino.org 1.7. I have used all 3 versions - with the same result.
The behaviour of the sketch: After upload it will not start! The first both statements in Setup() sets a LED to HIGH, that is not done in "Debug" mode.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debug with Arduino M0 Pro will not run!
Reply #3 - Jan 4th, 2016 at 1:07pm
Print Post  
Hi,

I found a problem with the debug port and will look into it. I then tested the other port and it worked fine. So for now why not use the other usb port.

By the way if you have spare time it would be useful for someone to test a new secret feature that will be published soon.

It was only published yesterday and has a few steps to set it up and try it in a new project. I only have an arduino.cc Zero pro and it works for me. However the arduino.org Zero system might be slightly different and I suspect you are using the .org clone and not the real Arduino board?

The Zero has capability for real debug via the debug port using Gdb. A few weeks ago Microsoft released Gdb for Android and Visual Studio which we have been able to adapt for Arduino boards that have an On Chip Debugger like the Zero.

The release version will have less steps for users to follow but it's not so difficult to install, will not affect your current setup.

http://www.visualmicro.com/post/2016/01/03/GDB-for-Arduino-INO-Initial-beta-note...
  
Back to top
IP Logged
 
RudolfAtWork
Junior Member
**
Offline


Posts: 10
Location: Germany / Esslingen
Joined: Dec 13th, 2014
Re: Debug with Arduino M0 Pro will not run!
Reply #4 - Jan 5th, 2016 at 1:22pm
Print Post  
Hallo - and many thanks! Debugging works with the native USB port. But with a big disadvantage: "SerialUSB" must be used (insteed of "Serial"). So it's not possible to write compatible sketches for UNO/NANO and M0 PRO.
Additionally Micro Build gives some cryptic Messages:
Uploading to I/O board using 'COM21'
Unable to 'touch' hardware serial port: COM21. Now assuming selected port is bootloader port. This might still fail, have you got the correct board selected?
Done uploading via 'COM22'

Only COM21 exist really.
So we come step by step to an acceptable result...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debug with Arduino M0 Pro will not run!
Reply #5 - Jan 5th, 2016 at 1:28pm
Print Post  
Hi,

Thanks for the info. I will look at the zero and fix it over the next week so both Native and Debug ports work

The error is something that should happen for debug port and not for native port. This should happen for debug port but is not and should not happen for native port. I will look at the definitions because they tell visual micro what it should do.

By the way Arduino.org 1.7 is not newer than Arduino.cc 1.6. These two companies split last year. Arduino.cc is what most people consider the real Arduino, Arduino.org took Arduino 1.5 and gave it a version number of 1.7. So they make my life difficult with their squabbles

I think the solution is to do as you have done. Use arduino.org for .org board and arduino.cc for .cc board
« Last Edit: Jan 5th, 2016 at 1:44pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Debug with Arduino M0 Pro will not run!
Reply #6 - Jan 15th, 2016 at 10:58pm
Print Post  
Sorry for the delay. I have obtained an M0 Pro made by arduino.org and tested with arduino.org 1.7.8 Ide.

There was a debug compile problem when using the debug port which is fixed. So the serial debugger will now work on the debug port.

Also managed to test it with the new GDB system and that also worked

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