I have Atmel Studio 7.0.1645 and Arduino 1.8.4.
I am trying to creat a project from an Arduino sketch in AS7, and build it, so that i may simulate it in AS7.
Some projects work, some do not. In particular, several of the Arduino built in examples (blink, analogwritemega, bargrahp, ArduinoISP) build successfully. But most of the RF24 type of examples do not. I am setting Arduino/Genuino Mega or Mega 2560 for the board and ATMega 2560 for the device.
I am trying just to get RF24/Gettingstarted to build successfully, but the build fails with 10 errors :
Error recipe for target 'src/libraries/rf24/examples/scanner/output/scanner.o' failed ArduinoCore d:\users\puppy\Documents\Atmel Studio\7.0\ArduinoSketch17\ArduinoSketch17\ArduinoCore\Debug\Makefile 515
Error recipe for target 'src/libraries/rf24/examples_linux/extra/scanner.o' failed ArduinoCore d:\users\puppy\Documents\Atmel Studio\7.0\ArduinoSketch17\ArduinoSketch17\ArduinoCore\Debug\Makefile 529
Error recipe for target 'src/libraries/rf24/examples_linux/extra/rpi-hub.o' failed ArduinoCore d:\users\puppy\Documents\Atmel Studio\7.0\ArduinoSketch17\ArduinoSketch17\ArduinoCore\Debug\Makefile 529
Error WProgram.h: No such file or directory ArduinoCore d:\users\puppy\Documents\Atmel Studio\7.0\ArduinoSketch17\ArduinoSketch17\ArduinoCore\src\libraries\rf24\examples\scanner\output\scanner.cpp 1
Error cstdlib: No such file or directory ArduinoCore d:\users\puppy\Documents\Atmel Studio\7.0\ArduinoSketch17\ArduinoSketch17\ArduinoCore\src\libraries\rf24\examples_linux\extra\rpi-hub.cpp 30
Error cstdlib: No such file or directory ArduinoCore d:\users\puppy\Documents\Atmel Studio\7.0\ArduinoSketch17\ArduinoSketch17\ArduinoCore\src\libraries\rf24\examples_linux\extra\scanner.cpp 26
Error cannot find -lArduinoCore GettingStarted 1
Error ld returned 1 exit status GettingStarted collect2.exe 0
Error recipe for target 'GettingStarted.elf' failed GettingStarted d:\users\puppy\Documents\Atmel Studio\7.0\ArduinoSketch17\ArduinoSketch17\GettingStarted\Debug\Makefile 108
Error [N] 710 : 'Arduino.h' file not found GettingStarted d:\users\puppy\Documents\Atmel Studio\7.0\ArduinoSketch17\ArduinoSketch17\GettingStarted\Sketch.cpp 2
All examples do successfully complie in Arduino.
So, why do the RF24 examples not build in AS7 ?
Any help appreciated :)