AS7 Arduino.h issue

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi all,

 

I've been searching for a while and can't seems to find a solution to my problem.

I've created a sketch in the Arduino IDE for an Atmega1284 using the MightyCore by MCUDude. It compliles fine in Arduino IDE but can't upload it using the ICE programmer. Switch to Atmel Studio 7.

 

Just recently installed the latest version and when I go to import my sketch it complains about the board not being found, so I select Atmega1284 from the list, this happens both for constructing the project and ArduinoCore.

 

However when I go to compile it it can't find the Arduino.h file.

 

Here is a copy from the output.

 

------ Build started: Project: ArduinoCore, Configuration: Debug AVR ------
Build started.
Project "ArduinoCore.cppproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets" from project "c:\users\demg\Documents\Atmel Studio\7.0\18650Tester\18650Tester\ArduinoCore\ArduinoCore.cppproj" (target "Build" depends on it):
	Task "RunCompilerTask"
		Shell Utils Path C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils
		C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe all --jobs 4 --output-sync 
		Building file: .././library.cpp
		Invoking: AVR8/GNU C Compiler : 5.4.0
		"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-g++.exe" -funsigned-char -funsigned-bitfields -DDEBUG -DF_CPU= -DARDUINO=10803 -DARDUINO_AVR_ATmega1284 -DARDUINO_ARCH_AVR  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.132\include"  -Os -fno-threadsafe-statics -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -mrelax -g2 -Wall -w -mmcu=atmega1284 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.132\gcc\dev\atmega1284" -c -std=gnu++11 -MD -MP -MF "library.d" -MT"library.d" -MT"library.o"   -o "library.o" ".././library.cpp" 
		Finished building: .././library.cpp
		C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-ar.exe: creating libArduinoCore.a
		Building target: libArduinoCore.a
		Invoking: AVR8/GNU Archiver : 5.4.0
		"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-ar.exe" -r  -o libArduinoCore.a  library.o   
		Finished building target: libArduinoCore.a
	Done executing task "RunCompilerTask".
	Using "RunOutputFileVerifyTask" task from assembly "C:\Program Files (x86)\Atmel\Studio\7.0\Extensions\Application\AvrGCC.dll".
	Task "RunOutputFileVerifyTask"
	Done executing task "RunOutputFileVerifyTask".
Done building target "CoreBuild" in project "ArduinoCore.cppproj".
Target "PostBuildEvent" skipped, due to false condition; ('$(PostBuildEvent)' != '') was evaluated as ('' != '').
Target "Build" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Avr.common.targets" from project "c:\users\demg\Documents\Atmel Studio\7.0\18650Tester\18650Tester\ArduinoCore\ArduinoCore.cppproj" (entry point):
Done building target "Build" in project "ArduinoCore.cppproj".
Done building project "ArduinoCore.cppproj".

Build succeeded.
------ Build started: Project: ATmega1284_18650_Tester, Configuration: Debug AVR ------
Build started.
Project "ATmega1284_18650_Tester.cppproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\Studio\7.0\Vs\Compiler.targets" from project "c:\users\demg\Documents\Atmel Studio\7.0\18650Tester\18650Tester\ATmega1284_18650_Tester\ATmega1284_18650_Tester.cppproj" (target "Build" depends on it):
	Task "RunCompilerTask"
		Shell Utils Path C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils
		C:\Program Files (x86)\Atmel\Studio\7.0\shellUtils\make.exe all --jobs 4 --output-sync 
		Building file: .././Sketch.cpp
		Invoking: AVR8/GNU C Compiler : 5.4.0
c:\users\demg\Documents\Atmel Studio\7.0\18650Tester\18650Tester\ATmega1284_18650_Tester\Sketch.cpp(2,21): error: Arduino.h: No such file or directory
		compilation terminated.
		make: *** [Sketch.o] Error 1
		"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-g++.exe" -funsigned-char -funsigned-bitfields -DDEBUG  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.132\include"  -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -mrelax -g2 -Wall -mmcu=atmega1284 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.132\gcc\dev\atmega1284" -c -MD -MP -MF "Sketch.d" -MT"Sketch.d" -MT"Sketch.o"   -o "Sketch.o" ".././Sketch.cpp" 
c:\users\demg\Documents\Atmel Studio\7.0\18650Tester\18650Tester\ATmega1284_18650_Tester\Debug\Makefile(87,1): error: recipe for target 'Sketch.o' failed
		make: *** Waiting for unfinished jobs....
		Building file: .././main.cpp
		Invoking: AVR8/GNU C Compiler : 5.4.0
		"C:\Program Files (x86)\Atmel\Studio\7.0\toolchain\avr8\avr8-gnu-toolchain\bin\avr-g++.exe" -funsigned-char -funsigned-bitfields -DDEBUG  -I"C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.132\include"  -O1 -ffunction-sections -fdata-sections -fpack-struct -fshort-enums -mrelax -g2 -Wall -mmcu=atmega1284 -B "C:\Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\ATmega_DFP\1.2.132\gcc\dev\atmega1284" -c -MD -MP -MF "main.d" -MT"main.d" -MT"main.o"   -o "main.o" ".././main.cpp" 
		Finished building: .././main.cpp
	Done executing task "RunCompilerTask" -- FAILED.
Done building target "CoreBuild" in project "ATmega1284_18650_Tester.cppproj" -- FAILED.
Done building project "ATmega1284_18650_Tester.cppproj" -- FAILED.

Build FAILED.
========== Build: 1 succeeded or up-to-date, 1 failed, 0 skipped ==========

 

I have tried to add the file into the libraries but still get the same error.

 

Any help would be greatly appreciated.