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 Unable to select board - First available board selected (Read 5277 times)
spike314
Newbies
*
Offline


Posts: 4
Joined: Mar 24th, 2018
Unable to select board - First available board selected
Apr 18th, 2018 at 3:31am
 
I am using the MyBoardNR5 nrf52832 from the MySensors website.  
Boardmanager link: https://raw.githubusercontent.com/mysensors/ArduinoBoards/master/package_mysenso...

I can see the board in the pull down list, but when I pick it, nothing happens.  The last board selected remains.  In the blue status bar at the bottom of the Visual Studio window, it says "The first available board has been selected."
I can select the same board in the Arduino program (V1.8.3) with no problems.

Any idea how begin to troubleshoot?  I would like to be able to use Visual Micro with this one.

Thanks
« Last Edit: Apr 18th, 2018 at 8:28pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to select board - First available board selected
Reply #1 - Apr 18th, 2018 at 8:35pm
 
Are you unable to select any boards at all or just the hardware in your link fails?
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to select board - First available board selected
Reply #2 - Apr 18th, 2018 at 9:24pm
 
This applied only to the boards in this toolchain and is resolved in the next release

Download from Work in progress
  
Back to top
IP Logged
 
spike314
Newbies
*
Offline


Posts: 4
Joined: Mar 24th, 2018
Re: Unable to select board - First available board selected
Reply #3 - Apr 18th, 2018 at 10:57pm
 
Thanks for the quick response.  I look forward to the next release.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to select board - First available board selected
Reply #4 - Apr 18th, 2018 at 11:02pm
 
The link in my previous note is the next release
  
Back to top
IP Logged
 
spike314
Newbies
*
Offline


Posts: 4
Joined: Mar 24th, 2018
Re: Unable to select board - First available board selected
Reply #5 - Apr 25th, 2018 at 1:18am
 
Hi.  Thanks for the update. I got the new version and I can select the board and build options just the same as for other boards.

I do have a new problem.  When I try to compile, I  get this error:

arm-none-eabi-g++*: error: e: No such file or directory
Error compiling variant
Build failed for project 'TimeTestNRF5'

The build folder is shown as:
Build Folder: s_MyBoard_nRF52832/Release

I can compile in Arduino with no errors.  i did try another VisualMicro project with a different board type (Arduino Pro Mini).  That compiled normally.  The build folder does exist on my hard drive.   

Any suggestions?

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to select board - First available board selected
Reply #6 - Apr 25th, 2018 at 10:46am
 
Sadly the release has been published now. It would have saved a lot of time had we tested last week.

You need to provide full install instructions or your hardware. I tried the json url from the arduino ide and it says it needs a core from sandeepmistery to be installed. 

My recommendation is to avoid half finished board defs and use the official or mature versions if possible.

If you can provide a link to the toolchain you installed to make this toolchain work I can retest. The board and options to select okay for me but of course the build fails in both vm and arduino.

  
Back to top
IP Logged
 
spike314
Newbies
*
Offline


Posts: 4
Joined: Mar 24th, 2018
Re: Unable to select board - First available board selected
Reply #7 - Apr 27th, 2018 at 8:35pm
 
HI Tim,

The toolchain instructions are here:  https://www.openhardware.io/view/376/MySensors-NRF5-Platform
Essentially, just install the sandeepmistry toolchain here:  https://github.com/sandeepmistry/arduino-nRF5/#installing
And the MySensors NRF5 boards which you already have.   
One odd thing is that you have to include the MyBoardNRF5.h and MyBoardNRF5.cpp in the sketch folder.  The purpose is to allow pin definitions per each sketch, which is very handy for making sensors with some of these boards with relatively few pins.

In the mean time, I built a board variant in the sandeepmistry tool chain which works well in VisualMicro.  So, I am up and running.   
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to select board - First available board selected
Reply #8 - Apr 28th, 2018 at 1:42pm
 
Great thanks, it was in the board manager auto discovery list so I should have searched Smiley

It's a nice toolchain. I see the problem you had and that's a good workaround for now.

There is a change due for visual micro that will resolve the issue.

Over the past year or so arduino changed their build system to extend the temporary build folder into \core \libraries and \sketch.

Previously everything was compiled in the build root. Visual Micro changes to \core and \libraries but still compiles the project code in the build root instead of the \sketch sub folder.

The viarant.h in the mySensor core has a backwards reference to #include <sketch/MyBoardNRF5.h>
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Unable to select board - First available board selected
Reply #9 - Apr 28th, 2018 at 2:33pm
 
More info maybe not applicable ...

I've had another look at this. Whilst visual micro does need to do what the arduino ide does the cores should not hard code a temporary path because it prevents other compilers from using the same code. 

The author of the core has added the temp build path to the compiler -I includes and can do the same for other paths if required. So there shouldn't be any need for hard coding a sub folder name.

To fix the issue I changed "#include <sketch/MyBoardNRF5.h>" to "#include <MyBoardNRF5.h>" in the variant.cpp and variant.h in the following location:-

C:\Users\[YOUR_NAME]NRF5

In this case [YOUR_NAME] is shown in your earlier post with %20 in the middle.

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