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 [2] 3  Send TopicPrint
Locked Topic Arduino Due (Native USB Port) Upload using Atmel ICE (Read 10426 times)
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: HELP on new version 2020.518.1
Reply #20 - Jun 12th, 2020 at 1:05pm
 
He in attach the file of VM Serial  Upload via NAtive Port without press the erase button. At the end this procedure the target doesn't run and the board is a unknow state.
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: HELP on new version 2020.518.1
Reply #21 - Jun 12th, 2020 at 1:14pm
 
I am getting confused as to what scenario we are trying to resolve at preset as this changes from Serial Upload/Debug, to ICE Upload/Debug and we need to attack these separately and one at a time, and know what is set in each scenario.

Can you confirm we are trying to solve issue #2 in the below list at present please?

Serial Upload Scenarios:-
1) Arduino IDE, Serial Upload, DUE Native -- Confirmed Working OK
2) vMicro, Serial Upload, Configuration: Release, Debug: Off

Programmer Upload Scenarios:-
3) Arduino IDE, ATMEL ICE Upload, Due Native 
4) vMicro, ATMEL ICE Upload, Due Native

Hardware Debugging Scenarios:- (only once we know upload is OK)
4) vMicro > Attach to Process,  Due Native
« Last Edit: Jun 12th, 2020 at 1:24pm by Simon@Visual Micro »  
Back to top
 
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: HELP on new version 2020.518.1
Reply #22 - Jun 12th, 2020 at 1:29pm
 
In menu File do not exist> Preferences ...
Where I can find it? Grin
File > Preferences > Show Verbose Output During [x] Verbose and [x] Upload Options checked as well ?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: HELP on new version 2020.518.1
Reply #23 - Jun 12th, 2020 at 1:40pm
 
Please confirm which issue we are solving from the list in the previous post so we can resolve them one at a time.

Before sending any logs to use we must have the below options enabled in the relevant IDE to see what is happening:-

Visual Micro
vMicro > Compiler > Show Build Properties [On]
vMicro > Compiler > Verbose [On]
vMicro > Uploader > Verbose [On]

Arduino IDE
File > Preferences > Show Verbose Output During > Verbose [On] 
File > Preferences > Show Verbose Output During > Upload [On]
  
Back to top
 
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: HELP on new version 2020.518.1
Reply #24 - Jun 12th, 2020 at 2:18pm
 
hi, here two log files.
a)Bulid is the log file from VM with AtmelICE hardware
At the end of this build/uploading phase my target doesn't work and is an unknow state.

b)UpLoad is the log file from Arduino IDE , at the end of this my target restart and work well, no errors.
 
of course, I'm using the same sketch file. Thanks!
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: HELP on new version 2020.518.1
Reply #25 - Jun 12th, 2020 at 2:23pm
 
Thanks, so we are comparing Scenario 1 & 4 from the list here. 

(Scenario 2) If you Upload Using Serial in vMicro, instead of the Atmel ICE Programmer, does this work as expected?
  
Back to top
 
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: HELP on new version 2020.518.1
Reply #26 - Jun 12th, 2020 at 2:35pm
 
sceanrio2: If I use the vMicro serial  instead of the vMicro Atmel ICE Programmer, doesn't work and my target stay in a unkonw state.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: HELP on new version 2020.518.1
Reply #27 - Jun 12th, 2020 at 2:41pm
 
Please provide the build/upload log, and ensure the Serial Debugger is Disabled, and it is in Release Mode.
  
Back to top
 
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: HELP on new version 2020.518.1
Reply #28 - Jun 12th, 2020 at 3:41pm
 
Please, so do you want a build/upload log from vMicro with Atmel ICE emulator, is it Right?
  
Back to top
 
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: HELP on new version 2020.518.1
Reply #29 - Jun 12th, 2020 at 3:57pm
 
OK understand. So this is the Build/Upload file log from vMicro Serial with debugger OFF. In this configuration (debug OFF) All work well, I can Upload and the target working OK. See in Attach. So there is only the issue about the same problema but with Atmel ICE is it right?
  

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


Posts: 2174
Joined: Feb 13th, 2019
Re: HELP on new version 2020.518.1
Reply #30 - Jun 12th, 2020 at 4:02pm
 
Brilliant, so #2 is not an issue. So next we can try the ICE debugging (#4) and leave upload as Serial for now:-

Set Debug to Hardware, and select the Atmel ICE Debugger, Re-compile and upload via Serial again.
Set a Breakpoint in Loop()
Try Attaching the debugger after upload using Debug > Attach to Process

Does this work?
  
Back to top
 
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
At the end of upload, via Atmel ICE, the target Arduino DUE board in to unkown state
Reply #31 - Jun 12th, 2020 at 4:17pm
 
OK Set Debug to Hardware, and select the Atmel ICE Debugger, Re-compile and upload via Serial again.
Set a Breakpoint in Loop().

OK -> Work well without error including break point.

At list there is the a last issue: why if I erase my board with pushbutton, at this point when I try to Upload the target don't go and stay in unkonw state? To exit from this problem I always need, first of all,  to upload via Serial then I can use the Atmel ICE to upload. 

I see that the first time when the board is new or erase is pressed I need always to make first a serial download.  Shocked
« Last Edit: Jun 22nd, 2020 at 4:33pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2174
Joined: Feb 13th, 2019
Re: HELP on new version 2020.518.1
Reply #32 - Jun 12th, 2020 at 4:29pm
 
Great, another potential problem gone.

So if you do the upload in Arduino IDE, using the Atmel ICE Programmer, and the "Upload Using Programmer" option, does this work correctly? (in the same scenario with pressing Erase)

If this works correctly in Arduino can you send the upload log from the Arduino IDE?

NOTE: In the arduino ide you have to click menu item "Upload using programmer" to use the Atmel ICE. Please submit log from Arduino using the ICE.

NOTE: The Native USB port is not a standard usb port. Your board is also not working properly, staying on COM10 in programming mode all the time is not expected. Becareful using programmers for upload, they can destroy the bootloader + the native usb port is sensitive. Please make sure you understand and are using the correct port for your tests.
« Last Edit: Jun 12th, 2020 at 5:35pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: HELP on new version 2020.518.1
Reply #33 - Jun 12th, 2020 at 5:49pm
 
Sorry,  when I try to connect the Atmel ICE to Arduino IDE Arduino doesn't see the - port -!!! And is not possible to upload using the Atmel ICE. Only way to see a port is connect IDE to USB of my target, if I try to connect to Atmel ICE USB port Arduino IDE doesn't see the port....  Angry Do you have any idea...?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: HELP on new version 2020.518.1
Reply #34 - Jun 12th, 2020 at 6:56pm
 
ICE is not support for upload with the configuration you are using. For native usb leave upload as serial/normal.

  
Back to top
WWW  
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Due Native USB, with Atmel ICE - Upload/Reset
Reply #35 - Jun 13th, 2020 at 5:29am
 
1)Hi ! I have tried with Atmel ICE from vMicro with Programming USB port but the result is the same... doesn't go! There are not errors but and the end of upload my target stay in to unknown state.  Sad
2) I search online some info  -> how to connect atmel ICE to Arduino IDE because at the moment my IDE do not recognize the port where is connected my Atmel ICE. Do you have some indication for me?
« Last Edit: Jun 30th, 2020 at 9:09pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: HELP on new version 2020.518.1
Reply #36 - Jun 13th, 2020 at 12:49pm
 
Sounds like a usb driver issue.
  
Back to top
WWW  
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: HELP on new version 2020.518.1
Reply #37 - Jun 13th, 2020 at 1:27pm
 
Yes, question: If I try to install a arduino ide update I can lost the vMicro configurations,or some files like: .h ?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: HELP on new version 2020.518.1
Reply #38 - Jun 13th, 2020 at 1:58pm
 
The arduino ide install does not affect visual micro, as long as we can find the ide that is all that matters. There are no background config files.

It is good to make upload work in the arduino ide and then try same in Visual Micro after Arduino is working.
  
Back to top
WWW  
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: HELP on new version 2020.518.1
Reply #39 - Jun 13th, 2020 at 3:05pm
 
hello I installed the latest version, but unfortunately, Arduino IDE still does not see the usb port of Atmel ICE. can you please show me another way to solve my problem?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 
Send TopicPrint