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) Adafruit nRF52840 cannot build (Read 2909 times)
RobinShaw
Newbies
*
Offline


Posts: 8
Joined: Feb 21st, 2020
Adafruit nRF52840 cannot build
Feb 21st, 2020 at 4:11pm
Print Post  
I have been trying to move my development on an Adafruit Feather nRF52840 over to Visual Studio and Visual Micro.

I am unable to get anything to successfully compile - using the Blink example as a starting point.

I have unselected and reselected the board in board manager and received the errors in the attached jpg.
It appears that the extraction of the necessary files won't work.
I have tried running VS as admin and get the same error.
  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adafruit nRF52840 cannot build
Reply #1 - Feb 21st, 2020 at 4:21pm
Print Post  
Looks like some sort of permissions issue but strange it fails as admin.

Try installing the package via the arduino ide board manager. We use the same system so that should be automatically detected the next time you run vs or click rescan.
  
Back to top
IP Logged
 
RobinShaw
Newbies
*
Offline


Posts: 8
Joined: Feb 21st, 2020
Re: Adafruit nRF52840 cannot build
Reply #2 - Feb 26th, 2020 at 1:28pm
Print Post  
thanks - Vmicro picked up the board once installed via Arduino, thank you.

I am still unable to build anything for the nRF52840, unfortunately. I have attached the build output.

Examples for the more basic Arduino boards such as Uno build just fine.
Thanks for your help.
  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adafruit nRF52840 cannot build
Reply #3 - Feb 26th, 2020 at 2:11pm
Print Post  
It can't find the toolchain which is why we see unresolved {variables} in the build output. This variable {runtime.tools.arm-none-eabi-gcc.path} should contain the path to the adafruit tool.

I suggest you open board manager and remove then re-add the adafruit toolchain so that it is unpacked onto your pc again.
  
Back to top
IP Logged
 
RobinShaw
Newbies
*
Offline


Posts: 8
Joined: Feb 21st, 2020
Re: Adafruit nRF52840 cannot build
Reply #4 - Feb 26th, 2020 at 2:13pm
Print Post  
I've done this a couple of times already. I can only install the board via Arduino as discussed above.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adafruit nRF52840 cannot build
Reply #5 - Feb 26th, 2020 at 2:27pm
Print Post  
Oh I see sorry, I suspect that is virus checker preventing the creation of tools or permissions but you said you tried as admin. 

Do you have a folder called appdata\local\arduino15\packages\adafruit\arm-no...

  
Back to top
IP Logged
 
RobinShaw
Newbies
*
Offline


Posts: 8
Joined: Feb 21st, 2020
Re: Adafruit nRF52840 cannot build
Reply #6 - Feb 26th, 2020 at 3:08pm
Print Post  
Ah...ok. it is becoming clearer now.
I spoke to our corporate IT dept. The IT security model prevents exe files (and maybe some others) from running within %appdata% or its subfolders, even when logged in as admin.
They suggested that I try to change where the activity happens, into a different folder which is outside %appdata%.

I don't have that specific folder. I have:

C:\Users\Robin.Shaw\AppData\Local\Arduino15\packages\adafruit

which contains only \hardware and \tools
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adafruit nRF52840 cannot build
Reply #7 - Feb 26th, 2020 at 3:22pm
Print Post  
Ok, if you move the Arduino15 to below a folder called Portable below the arduino ide then both arduino and visual micro will use that instead. You will need to create the portable folder.

Alternatively in the tools>options>visual micro there is a "Contributions" path that you can set. Then our Board Manager will work in that path for the \packages.

  
Back to top
IP Logged
 
RobinShaw
Newbies
*
Offline


Posts: 8
Joined: Feb 21st, 2020
Re: Adafruit nRF52840 cannot build
Reply #8 - Feb 26th, 2020 at 3:23pm
Print Post  
Actually I have just checked, and found this:
-gcc\7-2017q4\share\doc\gcc-arm-none-eabi

  
Back to top
 
IP Logged
 
RobinShaw
Newbies
*
Offline


Posts: 8
Joined: Feb 21st, 2020
Re: Adafruit nRF52840 cannot build
Reply #9 - Feb 26th, 2020 at 3:24pm
Print Post  
Ok thanks I'll give that a try
  
Back to top
 
IP Logged
 
RobinShaw
Newbies
*
Offline


Posts: 8
Joined: Feb 21st, 2020
Re: Adafruit nRF52840 cannot build
Reply #10 - Feb 28th, 2020 at 10:40am
Print Post  
Hi, I moved the Arduino15 folder to 

C:\Program Files (x86)\Arduino\Portable\Arduino15

as suggested. I still can't get it to work. See attached log file.

I also tried changing the Contributions path as suggested. 
I tried C:\Users\Robin.Shaw\AppData\Local\Arduino15
and C:\Users\Robin.Shaw\AppData\Local\Arduino15\packages

Still no joy.
Is there anything else that I can try, or should I give up?

  

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


Posts: 8
Joined: Feb 21st, 2020
Re: Adafruit nRF52840 cannot build
Reply #11 - Feb 28th, 2020 at 11:13am
Print Post  
Actually it's worse than I thought. Creating the Portable folder seems to have broken the ability to download board packages within the Arduino environment:

Error downloading https://downloads.arduino.cc/package_index.json
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adafruit nRF52840 cannot build
Reply #12 - Feb 28th, 2020 at 1:59pm
Print Post  
The use of the portable folder is a system designed and published by arduino.cc. Please use the arduino.cc forum to get that working for you.

Visual Micro is working correctly, it seems that all the issues are related to permissions so I can't be of much help except to say that you can expand the zips yourself into the packages folder. Installing packages is simply a matter of downloading them into the staging folder then unpacking them.

Might be worth letting your IT dept know that java still appears to be able to create and run .exe in appdata. It's only native windows programs that can not. Seems like half a job Smiley
« Last Edit: Feb 28th, 2020 at 2:09pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint