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 10349 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: 2145
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: 2145
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: 2145
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: 2145
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: 2145
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: 2145
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
 
Page Index Toggle Pages: [1] 2 3 
Send TopicPrint