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
Normal Topic Build error in Visual Micro but not in the Arduino IDE (Read 5406 times)
rml
Junior Member
**
Offline


Posts: 38
Joined: Aug 29th, 2016
Build error in Visual Micro but not in the Arduino IDE
Feb 15th, 2017 at 1:19pm
Print Post  
Hello,

I am compiling the Blink example for an nRF52 DK, using the Arduino core at https://github.com/sandeepmistry/arduino-nRF5.

It works fine in the Arduino IDE, but fails in Visual Micro, apparently becaue of a missing file. The error message is copied below, where I emphasized some sections that look suspicious, as they start with <-I"C> instead of <"-IC>.

Do you know how I could get over this problem?
Many thanks,

Armel

---------- Visual Micro build message
Building variant ...
"{runtime.tools.gcc-arm-none-eabi-5_2-2015q4.path}/bin/arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -Os -w -mfloat-abi=hard -mfpu=fpv4-sp-d16 -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=16000000 -DARDUINO=10801 -DARDUINO_NRF52_DK -DARDUINO_ARCH_NRF5 -DNRF52 -DNRF5 F5\0.2.0\cores\nRF5/SDK/components/toolchain/" F5\0.2.0\cores\nRF5/SDK/components/toolchain/CMSIS/Include" F5\0.2.0\cores\nRF5/SDK/components/toolchain/gcc/" F5\0.2.0\cores\nRF5/SDK/components/device/" F5\0.2.0\cores\nRF5/SDK/components/drivers_nrf/delay/" F5\0.2.0\cores\nRF5/SDK/components/softdevice/none/headers/" -DUSE_LFXO -5\0.2.0\cores\nRF5" F5\0.2.0\variants\nRF52DK" \0.2.0\variants\nRF52DK\variant.cpp" -o g\variant\variant.cpp.o" -DVM_DEBUG -DVM_DEBUG_ENABLE=1 -DVM_DEBUG_BANDWIDTH_THROTTLE_MS=100 -DVM_DEBUGGER_TYPE_HARDWARESERIAL=0 -DVM_DEBUGGER_TYPE_SOFTWARESERIAL=1 -DVM_DEBUGGER_TYPE_FASTSERIAL=2 -DVM_DEBUGGER_TYPE_USB=3 -DVM_DEBUGGER_TYPE_TEENSY=4 -DVM_DEBUGGER_TYPE_UART=5 -DVM_DEBUGGER_TYPE_USART=6 -DVM_DEBUGGER_TYPE_USBSERIAL=7 -DVM_DEBUGGER_TYPE_TTYUART=8 -DVM_DEBUGGER_TYPE_NET_CONSOLE=9 -DVM_DEBUGGER_TYPE_Uart=10 -DVM_DEBUGGER_TYPE_COSA=11 -DVM_DEBUGGER_TYPE_CDCSerialClass=12 -DVM_DEBUGGER_TYPE_HARDWARESERIAL1=13 -DVM_DEBUGGER_TYPE_HARDWARESERIAL2=14 -DVM_DEBUGGER_TYPE_HARDWARESERIAL3=15 -DVM_DEBUGGER_TYPE_NET_UDP=16 -DVM_DEBUGGER_TYPE_USBAPI=17 -DVM_DEBUGGER_TYPE=VM_DEBUGGER_TYPE_UART -DVM_DEBUG_BREAKPAUSE
     Process: "{runtime.tools.gcc-arm-none-eabi-5_2-2015q4.path}\bin\arm-none-eabi-g++" -mcpu=cortex-m4 -mthumb -c -g -Os -w -mfloat-abi=hard -mfpu=fpv4-sp-d16 -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -MMD -DF_CPU=16000000 -DARDUINO=10801 -DARDUINO_NRF52_DK -DARDUINO_ARCH_NRF5 -DNRF52 -DNRF5 F5\0.2.0\cores\nRF5/SDK/components/toolchain/" F5\0.2.0\cores\nRF5/SDK/components/toolchain/CMSIS/Include" F5\0.2.0\cores\nRF5/SDK/components/toolchain/gcc/" F5\0.2.0\cores\nRF5/SDK/components/device/" F5\0.2.0\cores\nRF5/SDK/components/drivers_nrf/delay/" F5\0.2.0\cores\nRF5/SDK/components/softdevice/none/headers/" -DUSE_LFXO F5\0.2.0\cores\nRF5" F5\0.2.0\variants\nRF52DK" \0.2.0\variants\nRF52DK\variant.cpp" -o g\variant\variant.cpp.o" -DVM_DEBUG -DVM_DEBUG_ENABLE=1 -DVM_DEBUG_BANDWIDTH_THROTTLE_MS=100 -DVM_DEBUGGER_TYPE_HARDWARESERIAL=0 -DVM_DEBUGGER_TYPE_SOFTWARESERIAL=1 -DVM_DEBUGGER_TYPE_FASTSERIAL=2 -DVM_DEBUGGER_TYPE_USB=3 -DVM_DEBUGGER_TYPE_TEENSY=4 -DVM_DEBUGGER_TYPE_UART=5 -DVM_DEBUGGER_TYPE_USART=6 -DVM_DEBUGGER_TYPE_USBSERIAL=7 -DVM_DEBUGGER_TYPE_TTYUART=8 -DVM_DEBUGGER_TYPE_NET_CONSOLE=9 -DVM_DEBUGGER_TYPE_Uart=10 -DVM_DEBUGGER_TYPE_COSA=11 -DVM_DEBUGGER_TYPE_CDCSerialClass=12 -DVM_DEBUGGER_TYPE_HARDWARESERIAL1=13 -DVM_DEBUGGER_TYPE_HARDWARESERIAL2=14 -DVM_DEBUGGER_TYPE_HARDWARESERIAL3=15 -DVM_DEBUGGER_TYPE_NET_UDP=16 -DVM_DEBUGGER_TYPE_USBAPI=17 -DVM_DEBUGGER_TYPE=VM_DEBUGGER_TYPE_UART -DVM_DEBUG_BREAKPAUSE
The system cannot find the file specified
Error compiling variant
Debug build failed for project 'Blink'

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build error in Visual Micro but not in the Arduino IDE
Reply #1 - Feb 15th, 2017 at 1:43pm
Print Post  
Hi

Please open the arduino ide and switch on file>preference

Then build in the arduino ide and email or post the output as .txt file.

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build error in Visual Micro but not in the Arduino IDE
Reply #2 - Feb 15th, 2017 at 1:58pm
Print Post  
Thanks for the email. It will be looked at later today and hopefully fixed with an update
  
Back to top
IP Logged
 
rml
Junior Member
**
Offline


Posts: 38
Joined: Aug 29th, 2016
Re: Build error in Visual Micro but not in the Arduino IDE
Reply #3 - Feb 16th, 2017 at 10:38pm
Print Post  
Today's release fixed the problem!
Thanks,

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Build error in Visual Micro but not in the Arduino IDE
Reply #4 - Feb 17th, 2017 at 12:18am
Print Post  
Great thanks for the clear report
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint