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 nRF52 core issues (Read 7297 times)
RobotMaker
Newbies
*
Offline


Posts: 2
Joined: Apr 18th, 2017
Adafruit nRF52 core issues
Apr 18th, 2017 at 4:12pm
Print Post  
Installing the Adafruit nRF52 core for their feather board doesn't work properly in Visual Micro. There are intelisense errors in even a new project. Types show as errors and there is a PCH warning in the error list. The programs compile and run successfully but there is no code completion or error highlighting (beyond the numerous erroneous errors shown).

I am using VS2017 on a windows 7 x64 machine. I have tried on windows 10 x64 machine also with vs2017 with same results. Other boards work as expected, both AVR and other extensions (esp8266 family, teensy, etc). Has anyone gotten this core to work correctly? I'm not sure if this is a Adafruit issue or VM, ideas?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adafruit nRF52 core issues
Reply #1 - Apr 18th, 2017 at 9:44pm
Print Post  
Hi,

Thanks for the report.

When making reports about non-standard boards please give instructions for install such as the index.json you have used?

Thanks

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adafruit nRF52 core issues
Reply #2 - Apr 19th, 2017 at 9:41am
Print Post  
I found the adafruit core.

Do you see the intellisense errors in a new empty project that contains only 

Code
Select All
void setup(){

}

void loop()
{

} 

  
Back to top
WWW  
IP Logged
 
RobotMaker
Newbies
*
Offline


Posts: 2
Joined: Apr 18th, 2017
Re: Adafruit nRF52 core issues
Reply #3 - Apr 20th, 2017 at 12:41pm
Print Post  
The Adafruit index link is: https://www.adafruit.com/package_adafruit_index.json ;

Yes, I see the errors on new empty project after first build. "void" is underlined and the error is "variable "EMIT" is not a type name". The code will compile and run on the hardware, have just lost all the nice IDE features. 

Adafruit just uploaded a new release of the core, 6.0, about 18 hours ago. I've upgraded to this core and still have the same error issues. I've attached the error list
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adafruit nRF52 core issues
Reply #4 - Apr 20th, 2017 at 12:54pm
Print Post  
Thanks for the info.

Please switch on vmicro>compiler > verbose and show build properties

Then build and email the output as a .txt file to info[at]visualmicro.com along with a link to this post
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adafruit nRF52 core issues
Reply #5 - Apr 22nd, 2017 at 5:04pm
Print Post  
Thanks for the post

There is an update (1704.20.1) with support for the adafruit feather nrf52 boards and also support for the default serial debug configuration.

http://www.visualmicro.com/forums/YaBB.pl?num=1491650979

If you have a gdb debug connection for the board let me know and we can try that too.
  
Back to top
WWW  
IP Logged
 
ChristofR
Newbies
*
Offline


Posts: 2
Joined: Jul 27th, 2017
Re: Adafruit nRF52 core issues
Reply #6 - Jul 27th, 2017 at 12:38pm
Print Post  
I am getting compile errors using Adafruit's newest board package (0.6.5) from https://www.adafruit.com/package_adafruit_index.json

I can build and debug fine using board package 0.6.0 though. The built log file is attached. I will also email it to info[at]visualmicro.com
  

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


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adafruit nRF52 core issues
Reply #7 - Jul 29th, 2017 at 12:45pm
Print Post  
Hi,

The compile is broken for the newer boards if DEBUG mode is enabled.

Switch the tool bar to Release and it will build without issue.

There will be debug support for this new type of "board" in the next release

Thanks for the good info.
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adafruit nRF52 core issues
Reply #8 - Jul 30th, 2017 at 2:41pm
Print Post  
Latest adafruit tool chain uses a different class name for Serial than previous versions. 

The latest nRF52 feather tool chain version is now support by Visual Micro for Serial debug but older versions are no longer supported.

Please see the update in the gallery
  
Back to top
WWW  
IP Logged
 
ChristofR
Newbies
*
Offline


Posts: 2
Joined: Jul 27th, 2017
Re: Adafruit nRF52 core issues
Reply #9 - Oct 25th, 2017 at 8:52am
Print Post  
Finally got around to testing the latest Adafruit package (7.5) and everything is working great Smiley Thank you for the update!
  
Back to top
 
IP Logged
 
Zidar
Newbies
*
Offline


Posts: 1
Joined: Dec 7th, 2017
Re: Adafruit nRF52 core issues
Reply #10 - Dec 7th, 2017 at 3:48pm
Print Post  
I use VS 2017 and the latest version 0.7.5 for nRF52 Adafruit package. I can still reproduce the bug described in the first message of the topic. Sad

Project can be succesfully built and uploaded to device. But VS shows numerous errors in *.vsarduino.h and platform files: nrf_sdm.h, nrf_soc.h, WMath.h, WString.h and _intsup.h.

Bug is reproduced even with empty sketch.
« Last Edit: Dec 8th, 2017 at 11:29am by Zidar »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adafruit nRF52 core issues
Reply #11 - Dec 23rd, 2017 at 1:36pm
Print Post  
Hopefully in the next release you only see a couple of intellisense errors

If you do hit intellisense issues you can make re-defines that VS will use for intellisense but the compiler will ignore. See extending intellisense on the visual micro home page.

However please do always report because it's easier for everyone if we get this as right as possible "out of the box".
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint