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
Locked Topic Arduino Due (Native USB Port) Upload using Atmel ICE (Read 10414 times)
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Arduino Due (Native USB Port) Upload using Atmel ICE
Jun 11th, 2020 at 1:37pm
 
Hi I have installed the last version on visual studio. But now I heve this error when I try to use the uploader via Atmel ICE hardware. 

Debugger: Atmel ICE
Compiling 'MT3216.MPRINT.V04.03.20' for 'Arduino Due (Native USB Port)'
Program size: 44.240 bytes (used 8% of a 524.288 byte maximum) (3,51 secs)
 
Uploading 'MT3216.MPRINT.V04.03.20' to 'Arduino Due (Native USB Port)' using 'ATMEL-ICE'
Uploader started for board Arduino Due (Native USB Port)
Uploader will use programmer name: openocd_atmelice
C:\ProgramData\vmicro\tools\openocd-0.10.0.20200213\bin\openocd.exe -d2 -s "C:\ProgramData\vmicro\tools\openocd-0.10.0.20200213/scripts/" -c "adapter driver cmsis-dap" -c "cmsis_dap_vid_pid 0x03eb 0x2141" -c "set CHIPNAME at91sam3X8E" -c "source [find target/at91sam3ax_8x.cfg]" -c "echo -n {****[vMicro]**** Uploading ELF :}" -c "telnet_port disabled; program x\Debug/MT3216.MPRINT.V04.03.20.ino.elf} reset; shutdown"
Error during upload using programmer
Impossibile trovare il file specificato

Impossibile trovare il file specificato
The uploader returned an error
« Last Edit: Jul 1st, 2020 at 1:01pm 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
Reply #1 - Jun 11th, 2020 at 1:42pm
 
Hi installed 
Visual micro now installed 2020.518.1 on visual Studio. Embarrassed
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2170
Joined: Feb 13th, 2019
Re: HELP on new version 2020.518.1
Reply #2 - Jun 11th, 2020 at 2:06pm
 
Can you confirm the below files are present on your machine, and if not which are missing?
Code
Select All
C:\ProgramData\vmicro\tools\openocd-0.10.0.20200213\bin\openocd.exe
.cfg
\Debug\MT3216.MPRINT.V04.03.20.ino.elf 



Please also attach a log from a Build with the options set as shown in the yellow box at the top (so we can see all settings)
  
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 #3 - Jun 11th, 2020 at 2:24pm
 

I heve see on my machine and this is situation:

openocd.exe [MISSING]
at91sa3ax_8x.cfg [MISSING]
MT3216.MPRINT.V04.03.20.ino.elf  [OK]
  
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 #4 - Jun 11th, 2020 at 2:35pm
 
In attach the log file. Thanks..!!!
  

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


Posts: 2170
Joined: Feb 13th, 2019
Re: HELP on new version 2020.518.1
Reply #5 - Jun 11th, 2020 at 2:37pm
 
It appears the tool download has failed for some reason.

Follow the instructions in the Software section in the below link, and you will want to download the second ZIP File "openocd-0.10.0.20200213.zip", and extract as detailed.

https://www.visualmicro.com/page/Troubleshooting-Debugging.aspx#Software

Let us know if you have any trouble, and once this is complete, try the upload / attach again...
  
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 #6 - Jun 11th, 2020 at 4:47pm
 
Hi I have installed the missed file. But now for is impossible to download using the serial uploader.

Compiling debug version of 'MT3216.MPRINT.V04.03.20' for 'Arduino Due (Programming Port)'
Program size: 44.812 bytes (used 9% of a 524.288 byte maximum) (3,28 secs)
 
Uploading 'MT3216.MPRINT.V04.03.20' to 'Arduino Due (Programming Port)' using 'COM10'
Uploader started for board Arduino Due (Programming Port)
Upload method will be: bootloader
Uploading via Bootloader 
no\bossac.exe -i -d --port=COM10 -U false -e -w {upload.verify} -b IN -R
The uploader process failed
bossac.exe: extra arguments found
Try 'bossac.exe -h' or 'bossac.exe --help' for more information
  
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 #7 - Jun 11th, 2020 at 4:51pm
 
I have installed this file is it right?

OpenOCD (non ESP32): 


https://www.visualmicro.com/downloads/tools/openocd-0.10.0.20200213/openocd-0.10...
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2170
Joined: Feb 13th, 2019
Re: HELP on new version 2020.518.1
Reply #8 - Jun 11th, 2020 at 6:25pm
 
This is the right file yes, does the Atmel ICE upload now work?

The issue with the serial upload appears to be the {upload.verify} flag is not resolving, which can be worked around in the interim by:-
1) Change vMicro > Uploader > Verify

Or

2) Add a Local Board.txt to the project (Right click in solution explorer > add > local board.txt) and add the below line to it to set it to blank for now ()
Code
Select All
upload.verify= 



Note: Also if switching between Serial / ICE on the same board, the Serial Upload may not work if the ICE is connected and powered up.

We will investigate why this is happening further, can you re-attach the build output with the vMicro > Compiler > Show Build Properties, and Verbose both enabled so we can replicate? (no properties in last log file)
  
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 #9 - Jun 11th, 2020 at 6:44pm
 
Ok, I will make these steps. In any case I wolud infor you that
At the moment the ICE debugger is now found and it can  upload the firmware but at the end of uploaidng there no formal errors, but some in strange effects, infact the target board do not go, Including the emulation by ICE. For me is important to find a solution I would like to delivery  ASAP the project.
  
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 #10 - Jun 11th, 2020 at 6:46pm
 
Ome more think for me the priority is to solve the upload/debugging with Atmel ICE. Please help me to restart with this tools is very important for me. At the moment I'm stopped!!
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2170
Joined: Feb 13th, 2019
Re: HELP on new version 2020.518.1
Reply #11 - Jun 11th, 2020 at 8:44pm
 
Is there a reason not to use the Programming port instead of the Native USB?

I recall there can be issues trying to debug the Native Port for some reason, so performing the upload for the Arduino Due (Programming Port) should resolve this.
  
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 #12 - Jun 11th, 2020 at 9:04pm
 
Please my issue is upload and debug with Atmel ICE not with serial debugger and until yesterday my system working wery well but after your last update all my system is go to crash. Please solve this issue is very important for me.
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2170
Joined: Feb 13th, 2019
Re: HELP on new version 2020.518.1
Reply #13 - Jun 11th, 2020 at 9:21pm
 
I cannot replicate this at present on my machine (2020.518.8) from whats above, or see where the problem is.

Please supply the log files to cover all issues/information around the ICE Debug/Upload:-

1) Build Log:- 
Enable vMicro > Compiler > Show Build Properties and Verbose
Rebuild Program
Attach output from this build to post, from Output > Micro Build window.

2) Upload Log: For Atmel ICE Uploader
Enable vMicro > Uploader > Verbose, and Verify
Perform Upload
Attach output from this upload to post, from Output > Micro Build window.

3) Debug Log: When Attaching to Process after Code Upload
Try to attach to process once code is uploaded, and attach output from Output > Micro Build, and anything in Output > Debug
  
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 #14 - Jun 12th, 2020 at 6:06am
 
Hi, in attach the log file required under the following config.

Arduino Due (Native Port)
Custom Board with only Native Port (No programming port is present.)

To day I see this:

1) VM can connect with my target board, perform the uploader but at and of this the board do not start and the serial debug do not start. My target board in a indefinite state.

2) If I try to load the same sketch with Arduino IDE I can always via Native Port all perform OK and I can uploading the target and reset correclly and run. (NO PROBLEM)

3) After performing the point (2) If I try to reconfigure my VM with hardware Atmel ICE uploding, build all, VM can perform the uploading, can starting the debug and working well including the use of breakpoints. 

4) If I try to ERASE my target (Hardware Erase using the switch on my board) and try to perform the point (3) -> VM can build without error, uploading the sketch correctly, but Do not start my board is placed in unknow state. If I tray to make a HW reset the targt do not go.

5) If I reconnect Arduino IDE configuring ad point (2) I can compiling and uploading without problem then...

6) perform again the point (3) so, compile all with hw debugger Atmel ICE, I can compile, uploading and Startting debug without error.

I Hope is alla clear for you. I'm waitng for your help. Thanks Marco  Smiley 









  

Please Register or Login to the Forum to see File Attachments
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 #15 - Jun 12th, 2020 at 6:08am
 
He the upload log file...
  

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


Posts: 2170
Joined: Feb 13th, 2019
Re: HELP on new version 2020.518.1
Reply #16 - Jun 12th, 2020 at 10:58am
 
Thanks for the information, though the upload log is for a Serial upload, which is not the issue we are solving here.

1) You have said before we are not using the Serial Debugger, and with this turned ON it is not comparable to the Arduino IDE.  Set to Release Mode and Serial Debug OFF to compare to Arduino IDE
2) How were you uploading in Arduino? (Serial / Atmel ICE / Atmel ICE SAM / Atmel ICE Over OpenOCD)? Did you Press Erase before doing this Upload?
3) Ok, this shows that it can all work together then.
4) Why use the Erase Button?  The erase is performed as part of each upload, and not sure why this creates the stopped state it does (Native or Programming).
5) Assume same method as in #2?
6) Again same as #3 this proves it can work successfully.

Next Steps:
Can you try doing the upload in vMicro via Atmel ICE, without pressing the Erase button on-board?
If this still fails please also attach the output from Arduino IDE from the Atmel ICE upload you are using, with Properties > Verbose enabled for compilation and upload in the Arduino IDE?
  
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 #17 - Jun 12th, 2020 at 12:46pm
 
Hi in attach
Build, Debug using Atmel ICE without use erase button. At the end of this process my target board do not run and is in a unknow state, the debugger do not work. 
  
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 #18 - Jun 12th, 2020 at 12:48pm
 
Sorry the attach files are here!!
  

Please Register or Login to the Forum to see File Attachments
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 #19 - Jun 12th, 2020 at 12:50pm
 
This is the log file from Arduino IDE: Arduino Native port. At the end of this uploader my board work well without errors. All OK!
  

Please Register or Login to the Forum to see File Attachments
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 #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: 2170
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: 2170
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: 2170
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: 2170
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: 2170
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: 2170
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: HELP on new version 2020.518.1
Reply #40 - Jun 13th, 2020 at 5:50pm
 
Have you every used the ICE before? Just purchased it?
  
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 #41 - Jun 14th, 2020 at 6:52am
 
Hi Tim, I've been using Atmel ICE since 2018 with vMicro.Even before the last vMicro update, Atmel ICE always had the problem that it did not load the software correctly on the board if you did not load the same software using serial download before.  Once the software downloaded via serial (Native/Programming) then it was always possible to download and use Atmel ICE to download and test the software the important thing was never to press the erase key on the board, when you press the erase key on the board you must always repeat the process starting from the serial download. For me this is a potential issue to solve. There was also an issue (solved) that emerged after the last VMicro update but it was solved by put to off the debugging if the up-loading was done from the native serial usb, before it was not necessary. Thanks bye! Smiley
  
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 #42 - Jun 17th, 2020 at 3:36pm
 
Hi, some news about this topic after my last post?
  
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 #43 - Jun 18th, 2020 at 7:12pm
 
Much of what you have said applies to the intricasies of your chosen way of using a programmer. A discussion about the erase key is not related to Visual Micro.

It is very important to provide the information requested in yellow above when you first make a report and when your confguration is in the state that is not working for you. This avoids many words and answers all the qequestions about what you have selected. It would show when you are using atmel studio device programming and what options you have selected in visual micro. This is very important information to avoid lengthy discussion.

Please also be clear about which IDE you are using that is also important when discussing programmers.

I would like to clearly understand the report before looking into anything. 

You are saying that:- You have an upload issue using an ICE programmer if Serial debugging is enabled?

Is this correct?
  
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 #44 - Jun 19th, 2020 at 9:04am
 
Hi, here the log file from Arduino IDE + atmel ICE. Of course I have select as programmer in menu skech the option Programmer Atmel SAM- ICE.
  

Please Register or Login to the Forum to see File Attachments
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 #45 - Jun 19th, 2020 at 11:13am
 
I removed your other post. Let us just answer one simple question at a time.

This is what is in the output you posted from the arduino ide. Please speak with arduino on the arduino.cc/forums to rectify this error.

Thank you.

Code (C++)
Select All
Sketch uses 44464 bytes (8%) of program storage space. Maximum is 524288 bytes.
processing.app.debug.RunnerException: Please select a programmer from Tools->Programmer menu
	at r.java:298)
	at er.java:90)
	at cc.arduino.UploaderUtils.upload(UploaderUtils.java:77)
	at processing.app.SketchController.upload(SketchController.java:732)
	at processing.app.SketchController.exportApplet(SketchController.java:703)
	at processing.app.Editor$UploadHandler.run(Editor.java:2047)
	at java.lang.Thread.run(Thread.java:748)
Please select a programmer from Tools->Programme 

  
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 #46 - Jun 19th, 2020 at 7:00pm
 
A first answer from Arduino Forum. But is not a solution...The reason for this is the Arduino IDE only supports using programmers with boards of the architecture of the platform that contains the programmer definition. The "Atmel SAM-ICE" programmer you selected from the Arduino IDE's Tools > Programmer menu is from the "Arduino SAMD (32-bits ARM Cortex-M0+) Boards" platform, which uses the samd architecture. The Arduino Due is part of the "Arduino ARM (32-bits) Boards" platform, which uses the sam architecture.

This sort of confusion is prevented in Arduino IDE 1.8.13 by the change to only displaying the programmers of the currently selected board's platform in the Tools > Programmer menu.

I'd guess you could add an "Atmel SAM-ICE" programmer definition to the "Arduino ARM (32-bits) Boards" platform. I'm not sure why Arduino didn't define any programmers for that platform. I can provide you instructions for how to copy paste a programmer definition into the platform, but I might be leading you astray. I don't own an Atmel SAM-ICE programmer to be able to test my advice in advance. So you are probably better off either waiting for someone else here who knows more about this topic to comment, or else do some searching to see if there are some existing instructions about setting up a programmer for the Due.
  
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 #47 - Jun 19th, 2020 at 8:16pm
 
Thanks, now select the programmer you want to use in Visual Micro and then try the upload. Before the upload ensure that the settings in yellow above are applied and also uploader>verbose.

Then attach the output at a txt file here. 

Note: You can switch off vMicro>Compiler>Verify. It is not needed and makes a very large output/report.



  
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 #48 - Jun 20th, 2020 at 5:36am
 
Hi, here the log file. At the end of upload, via Atmel ICE, the target Arduino DUE board in to unkown state. Do not run and is not possible to start the debugger with Atmel ICE
  

Please Register or Login to the Forum to see File Attachments
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 #49 - Jun 22nd, 2020 at 4:19pm
 
Hi, any news about this issue?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
At the end of upload, via Atmel ICE, the target Arduino DUE board in to unkown state
Reply #50 - Jun 22nd, 2020 at 4:29pm
 
We will look at it during the week and report back thanks
« Last Edit: Jun 22nd, 2020 at 4:33pm by Tim@Visual Micro »  
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 #51 - Jun 26th, 2020 at 2:59pm
 
OK great I'm waiting for news about this issue  Grin
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2170
Joined: Feb 13th, 2019
Re: HELP on new version 2020.518.1
Reply #52 - Jun 26th, 2020 at 5:26pm
 
Investigating this further, and reading up on the DUE Bootloader specifics, it seems that the GPNVRAM bit #2 is set to 0 by the ERASE button press, which puts it into a state where it is waiting to be programmed permanently (even after power cycle).

I have been able to perform the following cycle successfully, with the additional command at in step #4 fixing the issue:-
1) Connect DUE via Native USB Port, Select Debug: Hardware, Atmel ICE, Uploader: Atmel ICE
2) Press ERASE Button on Board
3) Upload to Board using Atmel ICE via Visual Micro
4) Run the below command in command prompt:-
Code
Select All
C:\ProgramData\vmicro\tools\openocd-0.10.0.20200213\bin/openocd.exe -s "C:\ProgramData\vmicro\tools\openocd-0.10.0.20200213/scripts/" -c "adapter driver cmsis-dap" -c "cmsis_dap_vid_pid 0x03eb 0x2141" -c "set CHIPNAME at91sam3X8E" -c "source [find target/at91sam3ax_8x.cfg]" -c "init; halt" -c "at91sam3 gpnvm show all" -c "at91sam3 gpnvm set 1" -c "at91sam3 gpnvm clear 2" -c "at91sam3 gpnvm show all" -c "reset run" -c "shutdown"
 


5) Press Reset Button on Board (will try to remove this with commands)

I was running Blink and the LED starts blinking again after the final reset.

Step 4 will give output which contains the GPNVRAM bits, before (first) and after (second) the change (so can undo if needed):
Code
Select All
sam3-gpnvm0: 0
sam3-gpnvm1: 0
sam3-gpnvm2: 0

sam3-gpnvm0: 0
sam3-gpnvm1: 1
sam3-gpnvm2: 0 



Would it be possible to try this approach on your board, just as a double check before we look at integrating it into the upload commands?
  
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 #53 - Jun 27th, 2020 at 4:59am
 
STATUS ISSUE: [SOLVED]  

Steps:
1)  OK 
2)  OK 
3)  OK 
4)  OK in attach the output log file
5)  OK reset then => RUN LED blinking.

sam3-gpnvm0: 0
sam3-gpnvm1: 0
sam3-gpnvm2: 0

sam3-gpnvm0: 0
sam3-gpnvm1: 1
sam3-gpnvm2: 0

shutdown command invoked

C:\Users\marco>
« Last Edit: Jun 27th, 2020 at 5:04am by Marco (Italy) »  

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


Posts: 2170
Joined: Feb 13th, 2019
Re: Due Native USB, with Atmel ICE - Upload/Reset
Reply #54 - Jun 30th, 2020 at 5:12pm
 
Thanks for the confirmation and persistence with this.

We have included this in the 20.06.18.6 Release of Visual Micro for the Due Native USB, with Atmel ICE and Segger JLink Programmers.

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

There will be additional messages shown in the output window on upload, to ensure the RESET button is pressed if needed, as we couldn't find a reliable way to reset the board from OpenOCD at present fully.
« Last Edit: Jun 30th, 2020 at 9:09pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Marco (Italy)
Full Member
***
Offline


Posts: 165
Joined: Jul 12th, 2019
Re: Arduino Due (Native USB Port) Upload using Atmel ICE
Reply #55 - Jul 1st, 2020 at 12:07pm
 
[SOLVED]
I have download and instal this version 20.06.18.6. it's work fine including debug via Atmel ICE. 

On my test the target work fine without a manual reset at the end of upload.  Cheesy Grin

thanks a lot vM!!!
« Last Edit: Jul 1st, 2020 at 1:01pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 
Send TopicPrint