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 Arduino Sketch on Atmel Studio 7 with Visual Studio (Read 2774 times)
Jose Caeiro
Newbies
*
Offline


Posts: 2
Joined: Nov 28th, 2017
Arduino Sketch on Atmel Studio 7 with Visual Studio
Nov 28th, 2017 at 5:48pm
Print Post  
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/ \
h_battery_service/ \
h_simulated_battery_service/ \
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/ \
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/ \
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
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Arduino Sketch on Atmel Studio 7 with Visual Studio
Reply #1 - Nov 28th, 2017 at 6:18pm
Print Post  
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
Joined: Nov 28th, 2017
Re: Arduino Sketch on Atmel Studio 7 with Visual Studio
Reply #2 - Nov 29th, 2017 at 9:37am
Print Post  
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
 
Tim@Visual Micro
Administrator
*****
Offline


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