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 when compiling with adafruit clue board (Read 2014 times)
quinlan_arduino
Newbies
*
Offline


Posts: 7
Joined: May 2nd, 2020
Error when compiling with adafruit clue board
May 2nd, 2020 at 6:33pm
Print Post  
Arduino ide compiles and uploads successfully but a new empty sketch with the adafruit clue board in vMicro does not and produces the below error.

Note: switching to arduino uno and it compiles successfully

unfortunately the error is not verbose enough for me to be able to figure out what is wrong.

Code (C++)
Select All
System.Exception: Error running preprocessor recipes
The system cannot find the file specified
   at t`1 commandList)
   at Visual.Micro.MiroAppAPI.SketchCompilerArduino.CompileRecipeCaptureError(String sRecipe, FileInfo codeFile, MCUPreferencesMap brdPrefs, List`1 includePaths, List`1 extraCmdParams)
   at CUPreferencesMap properties, List`1 includePaths, String srcFilename)
   at String sourceFilePath, Board brd, List`1 includePaths, String targetFileNameNoPath)
   Object reference not set to an instance of an object



	An error was encountered during the 'Deep Search' library discovery process.
Build failed for project 'Sketch1'
 

  
Back to top
 
IP Logged
 
quinlan_arduino
Newbies
*
Offline


Posts: 7
Joined: May 2nd, 2020
Re: Error when compiling with adafruit clue board
Reply #1 - May 2nd, 2020 at 6:34pm
Print Post  
Object reference not set to an instance of an object

is the .Net equivalent of a null pointer exception being thrown by what ever application is running. 
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error when compiling with adafruit clue board
Reply #2 - May 2nd, 2020 at 7:57pm
Print Post  
Please give the information requested in yellow above.
  
Back to top
WWW  
IP Logged
 
quinlan_arduino
Newbies
*
Offline


Posts: 7
Joined: May 2nd, 2020
Re: Error when compiling with adafruit clue board
Reply #3 - May 2nd, 2020 at 9:12pm
Print Post  
here you go.
  

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: Error when compiling with adafruit clue board
Reply #4 - May 2nd, 2020 at 10:17pm
Print Post  
Thanks, we an unresloved tool chain path in output {runtime.tools.arm-none-eabi-gcc.path}. 

It would be useful to see a verbose output from the arduino ide build. Verbose is enabled in "file>preferences>compile verbose"

I suspect you can resolve this by using the visual micro board manager to uninstall and then install the Ardfruit nRF52 package.

Hope to see the output from the arduino ide. I did just install the adafruit package it builds okay but I see it has inherited the arm-none-eabi-gcc\7-2017q4 toolchain from a different nRF52 package that I already had installed. This is expected behavour that you are not seeing.
  
Back to top
WWW  
IP Logged
 
quinlan_arduino
Newbies
*
Offline


Posts: 7
Joined: May 2nd, 2020
Re: Error when compiling with adafruit clue board
Reply #5 - May 2nd, 2020 at 11:45pm
Print Post  
Code (C++)
Select All
F:\Software\Programming\Arduino\arduino-builder -dump-prefs -logger=machine -hardware F:\Software\Programming\Arduino\hardware -hardware C:\Users\IllNeverTell\AppData\Local\Arduino15\packages -tools F:\Software\Programming\Arduino\tools-builder -tools F:\Software\Programming\Arduino\hardware\tools\avr -tools C:\Users\IllNeverTell\AppData\Local\Arduino15\packages -built-in-libraries F:\Software\Programming\Arduino\libraries -libraries F:\IllNeverTell\Documents\Arduino\libraries -fqbn=adafruit:nrf52:cluenrf52840:softdevice=s140v6,debug=l0 -vid-pid=0X239A_0X8071 -ide-version=10812 -build-path C:\Users\IllNev~1\AppData\Local\Temp\arduino_build_601351 -warnings=all -build-cache C:\Users\IllNev~1\AppData\Local\Temp\arduino_cache_684660 -prefs=build.warn_data_percentage=75 \packages\adafruit\tools\nrfjprog\9.4.0 uino15\packages\adafruit\tools\nrfjprog\9.4.0 Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 ta\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -verbose _may02a.ino
F:\Software\Programming\Arduino\arduino-builder -compile -logger=machine -hardware F:\Software\Programming\Arduino\hardware -hardware C:\Users\IllNeverTell\AppData\Local\Arduino15\packages -tools F:\Software\Programming\Arduino\tools-builder -tools F:\Software\Programming\Arduino\hardware\tools\avr -tools C:\Users\IllNeverTell\AppData\Local\Arduino15\packages -built-in-libraries F:\Software\Programming\Arduino\libraries -libraries F:\IllNeverTell\Documents\Arduino\libraries -fqbn=adafruit:nrf52:cluenrf52840:softdevice=s140v6,debug=l0 -vid-pid=0X239A_0X8071 -ide-version=10812 -build-path C:\Users\IllNev~1\AppData\Local\Temp\arduino_build_601351 -warnings=all -build-cache C:\Users\IllNev~1\AppData\Local\Temp\arduino_cache_684660 -prefs=build.warn_data_percentage=75 \packages\adafruit\tools\nrfjprog\9.4.0 uino15\packages\adafruit\tools\nrfjprog\9.4.0 Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 ta\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -verbose _may02a.ino
Using board 'cluenrf52840' from platform in folder: .20.1
Using core 'nRF5' from platform in folder: .20.1
Detecting libraries used...
rm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -w -mfloat-abi=hard -mfpu=fpv4-sp-d16 -u _printf_float -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=64000000 -DARDUINO=10812 -DARDUINO_NRF52840_CLUE -DARDUINO_ARCH_NRF52 "-DARDUINO_BSP_VERSION=\"0.20.1\"" -DNRF52840_XXAA -DUSBCON -DUSE_TINYUSB -DUSB_VID=0x239A -DUSB_PID=0x8071 "-DUSB_MANUFACTURER=\"Adafruit LLC\"" "-DUSB_PRODUCT=\"CLUE\"" -DSOFTDEVICE_PRESENT -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES -DLFS_NAME_MAX=64 -Ofast -DCFG_DEBUG=0 -DCFG_LOGGER=1 -DCFG_SYSVIEW=0 are\\nrf52\\0.20.1\\cores\\nRF5/cmsis/include" are\\nrf52\\0.20.1\\cores\\nRF5/nordic" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx/hal" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx/mdk" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx/soc" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx/drivers/include" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx/drivers/src" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include" are\\nrf52\\0.20.1\\cores\\nRF5/freertos/Source/include" are\\nrf52\\0.20.1\\cores\\nRF5/freertos/config" are\\nrf52\\0.20.1\\cores\\nRF5/freertos/portable/GCC/nrf52" are\\nrf52\\0.20.1\\cores\\nRF5/freertos/portable/CMSIS/nrf52" are\\nrf52\\0.20.1\\cores\\nRF5/sysview/SEGGER" are\\nrf52\\0.20.1\\cores\\nRF5/sysview/Config" are\\nrf52\\0.20.1\\cores\\nRF5/TinyUSB" are\\nrf52\\0.20.1\\cores\\nRF5/TinyUSB/Adafruit_TinyUSB_ArduinoCore" " are\\nrf52\\0.20.1\\cores\\nRF5" are\\nrf52\\0.20.1\\variants\\clue_nrf52840" _may02a.ino.cpp" -o nul
Generating function prototypes...
rm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -w -mfloat-abi=hard -mfpu=fpv4-sp-d16 -u _printf_float -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=64000000 -DARDUINO=10812 -DARDUINO_NRF52840_CLUE -DARDUINO_ARCH_NRF52 "-DARDUINO_BSP_VERSION=\"0.20.1\"" -DNRF52840_XXAA -DUSBCON -DUSE_TINYUSB -DUSB_VID=0x239A -DUSB_PID=0x8071 "-DUSB_MANUFACTURER=\"Adafruit LLC\"" "-DUSB_PRODUCT=\"CLUE\"" -DSOFTDEVICE_PRESENT -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES -DLFS_NAME_MAX=64 -Ofast -DCFG_DEBUG=0 -DCFG_LOGGER=1 -DCFG_SYSVIEW=0 are\\nrf52\\0.20.1\\cores\\nRF5/cmsis/include" are\\nrf52\\0.20.1\\cores\\nRF5/nordic" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx/hal" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx/mdk" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx/soc" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx/drivers/include" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx/drivers/src" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include" are\\nrf52\\0.20.1\\cores\\nRF5/freertos/Source/include" are\\nrf52\\0.20.1\\cores\\nRF5/freertos/config" are\\nrf52\\0.20.1\\cores\\nRF5/freertos/portable/GCC/nrf52" are\\nrf52\\0.20.1\\cores\\nRF5/freertos/portable/CMSIS/nrf52" are\\nrf52\\0.20.1\\cores\\nRF5/sysview/SEGGER" are\\nrf52\\0.20.1\\cores\\nRF5/sysview/Config" are\\nrf52\\0.20.1\\cores\\nRF5/TinyUSB" are\\nrf52\\0.20.1\\cores\\nRF5/TinyUSB/Adafruit_TinyUSB_ArduinoCore" " are\\nrf52\\0.20.1\\cores\\nRF5" are\\nrf52\\0.20.1\\variants\\clue_nrf52840" _may02a.ino.cpp" -o _target_for_gcc_minus_e.cpp"
"F:\\Software\\Programming\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives _target_for_gcc_minus_e.cpp"
Compiling sketch...
rm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-pointer-arith -mfloat-abi=hard -mfpu=fpv4-sp-d16 -u _printf_float -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=64000000 -DARDUINO=10812 -DARDUINO_NRF52840_CLUE -DARDUINO_ARCH_NRF52 "-DARDUINO_BSP_VERSION=\"0.20.1\"" -DNRF52840_XXAA -DUSBCON -DUSE_TINYUSB -DUSB_VID=0x239A -DUSB_PID=0x8071 "-DUSB_MANUFACTURER=\"Adafruit LLC\"" "-DUSB_PRODUCT=\"CLUE\"" -DSOFTDEVICE_PRESENT -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES -DLFS_NAME_MAX=64 -Ofast -DCFG_DEBUG=0 -DCFG_LOGGER=1 -DCFG_SYSVIEW=0 are\\nrf52\\0.20.1\\cores\\nRF5/cmsis/include" are\\nrf52\\0.20.1\\cores\\nRF5/nordic" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx/hal" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx/mdk" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx/soc" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx/drivers/include" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx/drivers/src" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/softdevice/s140_nrf52_6.1.1_API/include" are\\nrf52\\0.20.1\\cores\\nRF5/freertos/Source/include" are\\nrf52\\0.20.1\\cores\\nRF5/freertos/config" are\\nrf52\\0.20.1\\cores\\nRF5/freertos/portable/GCC/nrf52" are\\nrf52\\0.20.1\\cores\\nRF5/freertos/portable/CMSIS/nrf52" are\\nrf52\\0.20.1\\cores\\nRF5/sysview/SEGGER" are\\nrf52\\0.20.1\\cores\\nRF5/sysview/Config" are\\nrf52\\0.20.1\\cores\\nRF5/TinyUSB" are\\nrf52\\0.20.1\\cores\\nRF5/TinyUSB/Adafruit_TinyUSB_ArduinoCore" " are\\nrf52\\0.20.1\\cores\\nRF5" are\\nrf52\\0.20.1\\variants\\clue_nrf52840" _may02a.ino.cpp" -o _may02a.ino.cpp.o"
Compiling libraries...
Compiling core...
rm-none-eabi-gcc\\7-2017q4/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wno-pointer-arith -mfloat-abi=hard -mfpu=fpv4-sp-d16 -u _printf_float -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=64000000 -DARDUINO=10812 -DARDUINO_NRF52840_CLUE -DARDUINO_ARCH_NRF52 "-DARDUINO_BSP_VERSION=\"0.20.1\"" -DNRF52840_XXAA -DUSBCON -DUSE_TINYUSB -DUSB_VID=0x239A -DUSB_PID=0x8071 "-DUSB_MANUFACTURER=\"Adafruit LLC\"" "-DUSB_PRODUCT=\"CLUE\"" -DSOFTDEVICE_PRESENT -DARDUINO_NRF52_ADAFRUIT -DNRF52_SERIES -DLFS_NAME_MAX=64 -Ofast -DCFG_DEBUG=0 -DCFG_LOGGER=1 -DCFG_SYSVIEW=0 are\\nrf52\\0.20.1\\cores\\nRF5/cmsis/include" are\\nrf52\\0.20.1\\cores\\nRF5/nordic" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx/hal" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx/mdk" are\\nrf52\\0.20.1\\cores\\nRF5/nordic/nrfx/soc" "-IC:\\Users\\IllNeverTell\\AppDat 

« Last Edit: May 2nd, 2020 at 11:49pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error when compiling with adafruit clue board
Reply #6 - May 2nd, 2020 at 11:51pm
Print Post  
It is not possible to post the output here unless you attach as a .txt file. You might need to click the reply button before you can attach the .txt.
« Last Edit: May 2nd, 2020 at 11:51pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
quinlan_arduino
Newbies
*
Offline


Posts: 7
Joined: May 2nd, 2020
Re: Error when compiling with adafruit clue board
Reply #7 - May 2nd, 2020 at 11:59pm
Print Post  
here you go
  

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


Posts: 7
Joined: May 2nd, 2020
Re: Error when compiling with adafruit clue board
Reply #8 - May 3rd, 2020 at 12:46am
Print Post  
okay so removing the board and reinstalling it via the vMicro gui worked
  
Back to top
 
IP Logged
 
quinlan_arduino
Newbies
*
Offline


Posts: 7
Joined: May 2nd, 2020
Re: Error when compiling with adafruit clue board
Reply #9 - May 3rd, 2020 at 5:25am
Print Post  
Thank you so much for helping me get this setup and working I cant tell you how much this has made my day, getting back to coding in visual studio is real QOL improvement for my arduino development.

really appreciate your help.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error when compiling with adafruit clue board
Reply #10 - May 3rd, 2020 at 12:26pm
Print Post  
Great, thanks for letting me know.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint