Visual Studio Ide for Arduino
https://www.visualmicro.com/forums/YaBB.pl
Visual Micro >> Atmel Studio 7.0 >> Arduino Sketch on Atmel Studio 7 with Visual Studio
https://www.visualmicro.com/forums/YaBB.pl?num=1511891285

Message started by Jose Caeiro on Nov 28th, 2017 at 5:48pm

Title: Arduino Sketch on Atmel Studio 7 with Visual Studio
Post by Jose Caeiro on 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_with_battery_service/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_heart_rate_template_with_simulated_battery_service/ \
../include/libraries/ble-sdk-arduino-master/examples/ble_HID_keyboard_2_bonds_template/ \
../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_template/ \
../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_template/ \
../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

Title: Re: Arduino Sketch on Atmel Studio 7 with Visual Studio
Post by Visual Micro on 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?


Title: Re: Arduino Sketch on Atmel Studio 7 with Visual Studio
Post by Jose Caeiro on 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.

Title: Re: Arduino Sketch on Atmel Studio 7 with Visual Studio
Post by Visual Micro on Nov 29th, 2017 at 2:04pm
Great thanks

Visual Studio Ide for Arduino » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2019. All Rights Reserved.