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) [ERROR] Could not set device properties (Read 3252 times)
TillL
Newbies
*
Offline


Posts: 9
Joined: Nov 3rd, 2020
[ERROR] Could not set device properties
Nov 4th, 2020 at 12:11am
Print Post  
Hello all

Currently, I'm working on my first project using Atmel studio 7 and I'm facing a problem when trying to debug my code. As hardware, I'm using an Arduino due board and the Atmel-ICe debugger through a JTAG connection.

I already did the debugging tutorial provided in this link:
https://www.visualmicro.com/page/User-Guide.aspx?doc=Debugging-Walkthrough-Start...

and set all the "Default" configurations as said in this other link:
https://www.visualmicro.com/page/User-Guide.aspx?doc=Debugging-Modes.html

I also already checked my connections and all configurations I know I should do but I just keep getting the same error.
Just to mention, this does not happen when I debug using Atmel studio without vMicro.
  
Back to top
 
IP Logged
 
TillL
Newbies
*
Offline


Posts: 9
Joined: Nov 3rd, 2020
Re: [ERROR] Could not set device properties
Reply #1 - Nov 4th, 2020 at 12:15am
Print Post  
compiling window
  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: [ERROR] Could not set device properties
Reply #2 - Nov 4th, 2020 at 12:18am
Print Post  
Hi

Visual Studio and Atmel Studio have different capabilities. Please follow the guide here.

https://www.visualmicro.com/page/Arduino-for-Atmel-Studio-7.aspx

The links you have posted are for the serial debugger, if you want to use the ICE then you will be using the Atmel Studio hardware debugging which is slightly different. The guide above should help. It also explains how to use Atmel Studio device programming for upload.

Let us know if it is still not clear after reviewing the guide.

If you are new to Atmel Studio and have no reason to use it over Visual Studio, then I reccomend Visual Studio which is easier. Your license covers both Atmel and Visual Studio so you can try them both. Each has its own plus and minus's.

When you set Visual Micro to use Atmel device programming and Atmel debugging we hand over to Atmel for each process. Then the Atmel documentation becomes relevant.
« Last Edit: Nov 4th, 2020 at 12:22am by Tim@Visual Micro »  
Back to top
IP Logged
 
TillL
Newbies
*
Offline


Posts: 9
Joined: Nov 3rd, 2020
Re: [ERROR] Faild to load ELF executable
Reply #3 - Nov 23rd, 2020 at 2:11pm
Print Post  
Could you please help me with this error (picture attached) I do not how to solve it and is happening just on my laptop, not on my PC.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
TillL
Newbies
*
Offline


Posts: 9
Joined: Nov 3rd, 2020
Re: [ERROR] Could not set device properties
Reply #4 - Nov 23rd, 2020 at 2:12pm
Print Post  
Compiling text file
  

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


Posts: 2697
Joined: Feb 13th, 2019
Re: [ERROR] Could not set device properties
Reply #5 - Nov 23rd, 2020 at 3:07pm
Print Post  
Thanks for the detail.

Can you confirm what version of Visual Micro is on your other computer? (Extensions > Mange Extensions > Installed)
  
Back to top
IP Logged
 
TillL
Newbies
*
Offline


Posts: 9
Joined: Nov 3rd, 2020
Re: [ERROR] Could not set device properties
Reply #6 - Nov 23rd, 2020 at 3:50pm
Print Post  
version: 2020.708.0
« Last Edit: Nov 23rd, 2020 at 3:51pm by TillL »  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: [ERROR] Could not set device properties
Reply #7 - Nov 23rd, 2020 at 6:00pm
Print Post  
Please show screen shots of the vMicro>Uploader menu and the vMicro>Debugger menu.

Thanks
  
Back to top
IP Logged
 
TillL
Newbies
*
Offline


Posts: 9
Joined: Nov 3rd, 2020
Re: [ERROR] Could not set device properties
Reply #8 - Nov 23rd, 2020 at 6:12pm
Print Post  
Debugger menu
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
TillL
Newbies
*
Offline


Posts: 9
Joined: Nov 3rd, 2020
Re: [ERROR] Could not set device properties
Reply #9 - Nov 23rd, 2020 at 6:12pm
Print Post  
Uploader menu
« Last Edit: Nov 23rd, 2020 at 6:14pm by TillL »  

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


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: [ERROR] Could not set device properties
Reply #10 - Nov 23rd, 2020 at 9:42pm
Print Post  
You should set the vMicro>Uploader programmer to "Atmel Studio Device Programming" + "Use Programmer for Upload". 

The vMicro>Debugger menu should be set to debug off + "atmel studio debugging"

With those two options set we will use 100% atmel for upload and debug. You can then set upload/device/tool using the standard atmel studio project properties (not visual micro)

Atmel studio only supports its own debugger which is why the other vMicro debug options are not required. In future releases for atmel studio we will hide the options for "Hardware debug". Atmel has its own hardware debugger and it is configured as per their docs using the project properties and device programing tools.

In effect those two vMicro menu settings hand over entirely to atmel studio for upload and debug. After a build you should also see in the project properties that visual micro has set the path of the .elf that was produced by the compiler. Atmel just needs that path and the two vMicro settings to upload and debug.

Can you select the ICE in the project properties?



  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint