Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Arduino Sketch on Atmel Studio 7 with Visual Studio (Read 1538 times)
Jose Caeiro
Newbies
*
Offline



Posts: 2
Arduino Sketch on Atmel Studio 7 with Visual Studio
Nov 28th, 2017 at 5:48pm
 
Hi,

I'm trying to upload an arduino sketch into Atmel Studio using Visual Studio.
I'm using BLE_SDK_ARDUINO, amongst other libraries, to provide support for the nRF8001 BLE chip from Nordic.

For some reason, the Makefile is trying to load all examples in this library, thus returning a big number of errors:
# Every subdirectory with source files must be described here
SUBDIRS :=  \
../include/ \
../include/core/ \
../include/libraries/ \
../include/libraries/adafruit_lsm303dlhc-master/ \
../include/libraries/adafruit_sensor-master/ \
../include/libraries/ble-sdk-arduino-master/ \
../include/libraries/ble-sdk-arduino-master/examples/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_ANCS_template/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_A_Hello_World_Program/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_bandwidth_test/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_broadcast/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_heart_rate_template/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_heart_rate_template_wit
h_battery_service/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_heart_rate_template_wit
h_simulated_battery_service/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_HID_keyboard_2_bonds_te
mplate/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_HID_keyboard_template/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_HID_template/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_HID_template_HID_HRM/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_modify_setup_data/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_my_project_template/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_proximity_template/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_proximity_with_dfu_temp
late/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_temperature_broadcast/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_temperature_template/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_uart_project_template/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_uart_project_with_dfu_t
emplate/ \
../include/libraries/EEPROM/ \
../include/libraries/SparkFun_BME280_Arduino_Library-master/ \
../include/libraries/SPI/ \
../include/libraries/Wire/ \
../include/libraries/Wire/utility/ \
../include/variants/ \
../include/variants/standard/  (...)

Since every library shares a similar structure (includes Examples) why is the compiler trying to attach all the examples in the BLE_SDK_ARDUINO? How can I fix this?

I tried removing the examples folder from it's original location, but the compiler returned all the same errors.

Best Regards,
José Caeiro
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10558
United Kingdom
Re: Arduino Sketch on Atmel Studio 7 with Visual Studio
Reply #1 - Nov 28th, 2017 at 6:18pm
 
Hi,

You are not using Visual Micro. It does not use makefiles and does not work that way. You are using native atmel studio features.

Have you followed the getting started guide on visualmicro.com to understand how to create and upload a simple arduino project?

Back to top
 
WWW  
IP Logged
 
Jose Caeiro
Newbies
*
Offline



Posts: 2
Re: Arduino Sketch on Atmel Studio 7 with Visual Studio
Reply #2 - Nov 29th, 2017 at 9:37am
 
hi,

You are right. I was using the option "Create Project from Arduino Sketch", which is not provided by Visual Micro. Sorry for the confusion. Meanwhile I tried to open the sketch through Visual Micro and it works fine.

Many thanks.
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10558
United Kingdom
Re: Arduino Sketch on Atmel Studio 7 with Visual Studio
Reply #3 - Nov 29th, 2017 at 2:04pm
 
Great thanks
Back to top
 
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print