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
Hot Topic (More than 8 Replies) My project won't compile with Arduino 1.6x and 1.5x but will with 1.x + Want to use a dragon (Read 1295 times)
PStechPaul
Junior Member
**
Offline


Posts: 33
Joined: Mar 25th, 2016
My project won't compile with Arduino 1.6x and 1.5x but will with 1.x + Want to use a dragon
Apr 2nd, 2016 at 2:06am
Print Post  
My project compiles and uploads using Arduino 1.0.6, but with 1.5.8 it compiles but I get avrdude notinsync errors. I think it does not even compile in 1.6.x as I previously tried. Here is the error output using Atmel Studio 6.2:

Code
Select All
Compiling 'Simple_Charger' for 'Arduino Pro or Pro Mini w/ ATmega328 (5V, 16 MHz)'
Build folder: o_16MHzatmega328
Summary: Header=1 Prototypes=4 Imports=5
Additional Defines:
Architecture Tools: vr/bin/
GCC: 4.8.1
Sketchbook: file:///C:/Users/paul_000/Documents/Arduino
Core Include Paths
Include Path o\avr\cores\arduino'
Include Path o\avr\variants\eightanaloginputs'
Library Include Paths (3)
Include Path o\avr\libraries\EEPROM'
Include Path 'C:\Users\paul_000\Documents\Arduino\libraries\Goldelox_Serial_4DLib'
Include Path 'C:\Users\paul_000\Documents\Arduino\libraries\TimerOne'
Platform Libraries Root Include Paths
Include Path 'C:\Users\paul_000\Downloads\arduino-1.5.8-windows\arduino-1.5.8\libraries'
Include Path o\avr\libraries'
Include Path 'C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers'
Include Path 'C:\Users\paul_000\Documents\Arduino\libraries'
avr/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=158 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR ino\avr\cores\arduino" ino\avr\variants\eightanaloginputs" ino\avr\libraries\EEPROM" -I"C:\Users\paul_000\Documents\Arduino\libraries\Goldelox_Serial_4DLib" -I"C:\Users\paul_000\Documents\Arduino\libraries\TimerOne" -I"C:\Users\paul_000\Downloads\arduino-1.5.8-windows\arduino-1.5.8\libraries" ino\avr\libraries" -I"C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers" -I"C:\Users\paul_000\Documents\Arduino\libraries" atmega328\Simple_Charger.cpp" -o atmega328\Simple_Charger.cpp.o"
Build Core Paths: \avr\cores\arduino
avr/bin/avr-gcc" -w -Os -Wl,--gc-sections -mmcu=atmega328p -o atmega328/Simple_Charger.elf"
... removed lines ...
avr/bin/avr-objcopy" -O ihex -R .eeprom atmega328/Simple_Charger.elf" atmega328/Simple_Charger.hex"
Binary sketch size: 11,304 bytes (used 37% of a 30,720 byte maximum) (2.38 secs)
Minimum Memory Usage: 442 bytes (22% of a 2048 byte maximum)
Uploading to I/O board using 'Arduino as ISP'
Uploader started for board Arduino Pro or Pro Mini w/ ATmega328 (5V, 16 MHz)
Uploader will use programmer name: arduinoasisp
vr\bin\avrdude s/avr/etc/avrdude.conf" -v -v -v -v -patmega328p -cstk500v1 -PCOM9 -b19200 \pro_16MHzatmega328/Simple_Charger.hex:i"
Error during upload using programmer

avrdude: Version 6.0.1, compiled on Apr  3 2014 at 23:12:16
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is avr/etc/avrdude.conf"

         Using Port                    : COM9
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20]
avrdude: Recv: x [78]
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x78
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [80]
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x80
avrdude: Send: 0 [30]   [20]
avrdude: Recv: x [78]
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x78
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [0f]
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x0f
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [fe]
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xfe
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [86]
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x86
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [06]
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x06
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [0f]
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x0f
avrdude: Send: 0 [30]   [20]
avrdude: Recv: x [78]
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x78

avrdude done.  Thank you.


The uploader returned an error
 



I tried again with Arduino 1.0 and got a similar error:

Code
Select All
Binary sketch size: 11,440 bytes (used 40% of a 28,672 byte maximum) (14.68 secs)
Uploading to I/O board using 'Arduino as ISP'
Uploader started for board Arduino Mini w/ ATmega328
Uploader will use programmer name: arduinoisp
C:\Program Files (x86)\Arduino_1_0_6\hardware\tools\avr\bin\avrdude -C"C:\Program Files (x86)\Arduino_1_0_6\hardware/tools/avr/etc/avrdude.conf" -v -v -v -v -patmega328p -cstk500v1 -P\\.\COM9 -b19200 \mini328\Simple_Charger.hex":i
avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Arduino_1_0_6\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : \\.\COM9
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00

avrdude done.  Thank you.
 

« Last Edit: Apr 3rd, 2016 at 1:13pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
PStechPaul
Junior Member
**
Offline


Posts: 33
Joined: Mar 25th, 2016
Re: Problems with Arduino 1.6x and 1.5x but not 1.x
Reply #1 - Apr 2nd, 2016 at 2:27am
Print Post  
I tried again, this time using the Visual Studio with Visual Micro, and ArduinoAsISP. It built OK using Arduino 1.0.6 but got the Not In Sync error from avrdude:

Code
Select All
C:\Program Files (x86)\Arduino_1_0_6\hardware\tools\avr\bin\avr-gcc -Os -Wl,--gc-sections -mmcu=atmega328p -L"C:\Users\paul_000\AppData\Local\Temp\VMicroBuilds\Simple_Charger\mini328" -o _Charger.ino.elf" _Charger.cpp.o" \EEPROM.cpp.o" ox_Serial_4DLib\Goldelox_Serial_4DLib.cpp.o" ne\TimerOne.cpp.o" " -lm
C:\Program Files (x86)\Arduino_1_0_6\hardware\tools\avr\bin\avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 _Charger.ino.elf" _Charger.ino.eep"
C:\Program Files (x86)\Arduino_1_0_6\hardware\tools\avr\bin\avr-objcopy -O ihex -R .eeprom _Charger.ino.elf" _Charger.ino.hex"
Program size: 11,440 bytes (used 40% of a 28,672 byte maximum) (18.36 secs)

Uploading to I/O board using 'Arduino as ISP'
Uploader started for board Arduino Mini w/ ATmega328
Uploader will use programmer name: arduinoisp
C:\Program Files (x86)\Arduino_1_0_6\hardware\tools\avr\bin\avrdude -C"C:\Program Files (x86)\Arduino_1_0_6\hardware/tools/avr/etc/avrdude.conf" -v -v -v -v -patmega328p -cstk500v1 -P\\.\COM9 -b19200 328\Simple_Charger.ino.hex":i
avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch
         System wide configuration file is "C:\Program Files (x86)\Arduino_1_0_6\hardware/tools/avr/etc/avrdude.conf"
         Using Port                    : \\.\COM9
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00
Upload failed
avrdude done.  Thank you.
 



Using the Arduino 1.5 framework, I got a different error - I don't know where it got the USBTiny board:

Code
Select All
avr/bin/avr-gcc" -w -Os -Wl,--gc-sections -mmcu=atmega328p -o /Simple_Charger.ino.elf" \Simple_Charger.cpp.o" \EEPROM\EEPROM.cpp.o" \Goldelox_Serial_4DLib\Goldelox_Serial_4DLib.cpp.o" \TimerOne\TimerOne.cpp.o" /core.a" 28" -lm
avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 /Simple_Charger.ino.elf" /Simple_Charger.ino.eep"
avr/bin/avr-objcopy" -O ihex -R .eeprom /Simple_Charger.ino.elf" /Simple_Charger.ino.hex"
Program size: 11,304 bytes (used 39% of a 28,672 byte maximum) (25.21 secs)
Minimum Memory Usage: 442 bytes (22% of a 2048 byte maximum)

Uploading to I/O board using 'ArduinoISP'
Uploader started for board Arduino Mini w/ ATmega328
Uploader will use programmer name: arduinoisp
vr\bin\avrdude s/avr/etc/avrdude.conf" -v -v -v -v -patmega328p -carduinoisp _atmega328/Simple_Charger.ino.hex:i"
avrdude: Version 6.0.1, compiled on Apr  3 2014 at 23:12:16
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch
         System wide configuration file is avr/etc/avrdude.conf"
         Using Port                    : usb
Error during upload using programmer
Upload failed

Upload failed
The uploader returned an error
         Using Programmer              : arduinoisp
avrdude: Error: Could not find USBtiny device (0x2341/0x49)
avrdude done.  Thank you. 



Maybe because I had checked "Always use programmer for upload". Unchecking that I get:

Code
Select All
Uploading to I/O board using 'COM9'
Uploader started for board Arduino Mini w/ ATmega328
Upload method will be: bootloader
Uploading via Bootloader
vr\bin\avrdude s/avr/etc/avrdude.conf" -v -v -v -v -patmega328p -carduino -PCOM9 -b115200 -D _atmega328/Simple_Charger.ino.hex:i"
avrdude: Version 6.0.1, compiled on Apr  3 2014 at 23:12:16
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch
         System wide configuration file is avr/etc/avrdude.conf"
         Using Port                    : COM9
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
... snip ...
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
... snip ...
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
Upload failed
avrdude done.  Thank you. 

  
Back to top
 
IP Logged
 
PStechPaul
Junior Member
**
Offline


Posts: 33
Joined: Mar 25th, 2016
Re: Problems with Arduino 1.6x and 1.5x but not 1.x
Reply #2 - Apr 2nd, 2016 at 2:42am
Print Post  
Finally, I used Atmel Studio 7.0 to interface with an Arduino Mini Pro using the Dragon. But I have to build the project to a hex or binary file using something else.

I saw another post indicating that a future release of the Visual Micro tool may be in the works. I have tried many different things and still no single tool meets my needs, although the original Arduino ISP 1.0.6 will build the project and upload to the target well enough. I would like to find out why 1.5.8 won't upload, and 1.6.8 won't even build, but those are separate from the Visual Micro tools. Please advise if there is a revision that can address the problems I've encountered. 

I know it's a difficult task. Thanks.  Wink

[edit] I was finally able to use Arduino 1.6.8 to compile and upload my project sketch. It may have been from a corrupted project folder with some invalid libraries as well as some C files that had been added by the Atmel studio for its own requirements. Previous versions might have ignored these. Uploading sometimes had problems, but mostly it does OK.
« Last Edit: Apr 2nd, 2016 at 9:40am by PStechPaul »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems with Arduino 1.6x and 1.5x but not 1.x
Reply #3 - Apr 2nd, 2016 at 1:31pm
Print Post  
Visual micro produces the hex and elf files and copies them to the Release/Debug folder of the current project.

So you should only need to build with Visual micro.

However it sounds like you just need to use the atmel "file>open>project>convert arduino" system to give you a native atmel studio project devoid of reliance upon arduino.
  
Back to top
IP Logged
 
PStechPaul
Junior Member
**
Offline


Posts: 33
Joined: Mar 25th, 2016
Re: Problems with Arduino 1.6x and 1.5x but not 1.x
Reply #4 - Apr 2nd, 2016 at 8:45pm
Print Post  
In Atmel Studio 6.2, where Visual Micro successfully installs, the menu structure is only "file>open>project/solution" which opens a dialog to select an existing project. There is also "file>open>Arduino Project", which allows selection of "pde" and "ino" native Arduino sketches, and "vcproj", "vcxproj", "sln", "cproj", "cppproj", and "atsln". Another option is "file>new>Arduino Project" which asks for the name of the new project. I haven't tried that, because the "open Arduino" seems to work. But it gives the following errors on build with Arduino 1.6(.8), which I had just used successfully in the Arduino environment.

Code
Select All
Compiling 'Simple_Charger' for 'Arduino Mini w/ ATmega328'
Build folder: ni_atmega328
Summary: Header=1 Prototypes=4 Imports=5
Additional Defines:
Architecture Tools: {runtime.tools.avr-gcc.path}/bin/
Sketchbook: file:///C:/Users/paul_000/Documents/Arduino
Core Include Paths
Include Path 'C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\cores\arduino'
Include Path 'C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\variants\eightanaloginputs'
Library Include Paths (3)
Include Path 'C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\libraries\EEPROM\src'
Include Path 'C:\Users\paul_000\Documents\Arduino\libraries\Goldelox_Serial_4DLib'
Include Path 'C:\Users\paul_000\Documents\Arduino\libraries\TimerOne'
Platform Libraries Root Include Paths
Include Path 'C:\Program Files (x86)\Arduino_1-6-8\libraries'
Include Path 'C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\libraries'
Include Path 'C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers'
Include Path 'C:\Users\paul_000\Documents\Arduino\libraries'
"{runtime.tools.avr-gcc.path}/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=168 -DARDUINO_AVR_MINI -DARDUINO_ARCH_AVR -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\cores\arduino" -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\variants\eightanaloginputs" -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\libraries\EEPROM\src" -I"C:\Users\paul_000\Documents\Arduino\libraries\Goldelox_Serial_4DLib" -I"C:\Users\paul_000\Documents\Arduino\libraries\TimerOne" -I"C:\Program Files (x86)\Arduino_1-6-8\libraries" -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\libraries" -I"C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers" -I"C:\Users\paul_000\Documents\Arduino\libraries" ga328\Simple_Charger.cpp" -o ga328\Simple_Charger.cpp.o"
The system cannot find the file specified
	Process: "{runtime.tools.avr-gcc.path}\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=168 -DARDUINO_AVR_MINI -DARDUINO_ARCH_AVR -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\cores\arduino" -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\variants\eightanaloginputs" -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\libraries\EEPROM\src" -I"C:\Users\paul_000\Documents\Arduino\libraries\Goldelox_Serial_4DLib" -I"C:\Users\paul_000\Documents\Arduino\libraries\TimerOne" -I"C:\Program Files (x86)\Arduino_1-6-8\libraries" -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\libraries" -I"C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers" -I"C:\Users\paul_000\Documents\Arduino\libraries" ga328\Simple_Charger.cpp" -o ga328\Simple_Charger.cpp.o"
"{runtime.tools.avr-gcc.path}/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=168 -DARDUINO_AVR_MINI -DARDUINO_ARCH_AVR -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\cores\arduino" -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\variants\eightanaloginputs" -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\libraries\EEPROM\src" -I"C:\Users\paul_000\Documents\Arduino\libraries\Goldelox_Serial_4DLib" -I"C:\Users\paul_000\Documents\Arduino\libraries\TimerOne" -I"C:\Program Files (x86)\Arduino_1-6-8\libraries" -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\libraries" -I"C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers" -I"C:\Users\paul_000\Documents\Arduino\libraries" rial_4DLib.cpp" -o ga328\Goldelox_Serial_4DLib\Goldelox_Serial_4DLib.cpp.o"
The system cannot find the file specified
	Process: "{runtime.tools.avr-gcc.path}\bin\avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=168 -DARDUINO_AVR_MINI -DARDUINO_ARCH_AVR -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\cores\arduino" -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\variants\eightanaloginputs" -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\libraries\EEPROM\src" -I"C:\Users\paul_000\Documents\Arduino\libraries\Goldelox_Serial_4DLib" -I"C:\Users\paul_000\Documents\Arduino\libraries\TimerOne" -I"C:\Program Files (x86)\Arduino_1-6-8\libraries" -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\libraries" -I"C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers" -I"C:\Users\paul_000\Documents\Arduino\libraries" rial_4DLib.cpp" -o ga328\Goldelox_Serial_4DLib\Goldelox_Serial_4DLib.cpp.o"
"{runtime.tools.avr-gcc.path}/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=168 -DARDUINO_AVR_MINI -DARDUINO_ARCH_AVR -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\cores\arduino" -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\variants\eightanaloginputs" -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\libraries\EEPROM\src" -I"C:\Users\paul_000\Documents\Arduino\libraries\Goldelox_Serial_4DLib" -I"C:\Users\paul_000\Documents\Arduino\libraries\TimerOne" -I"C:\Program Files (x86)\Arduino_1-6-8\libraries" -I"C:\Program Files (x86)\Arduino_1-6-8\hardware\arduino\avr\libraries" -I"C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers" -I"C:\Users\paul_000\Documents\Arduino\libraries" "C:\Users\paul_000\Documents\Arduino\libraries\TimerOne\TimerOne.cpp" -o ga328\TimerOne\TimerOne.cpp.o"
The system cannot find the file specified
... snip ...  

  
Back to top
 
IP Logged
 
PStechPaul
Junior Member
**
Offline


Posts: 33
Joined: Mar 25th, 2016
Re: Problems with Arduino 1.6x and 1.5x but not 1.x
Reply #5 - Apr 2nd, 2016 at 9:50pm
Print Post  
I was able to find all the files in the command line list, except the final ".o" file which I assume was what was being created.

Perhaps it is the executable itself? Here is the definition:

"{runtime.tools.avr-gcc.path}/bin/avr-g++"

It seems to be here:

C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.1061\avr8-gnu-toolchain\bin

It builds using Arduino 1.5 (which is located in Downloads, rather than Program Files x86):

Code
Select All
Compiling 'Simple_Charger' for 'Arduino Mini w/ ATmega328'
Build folder: ni_atmega328
Summary: Header=1 Prototypes=4 Imports=5
Additional Defines:
Architecture Tools: vr/bin/
GCC: 4.8.1
Sketchbook: file:///C:/Users/paul_000/Documents/Arduino
Core Include Paths
Include Path o\avr\cores\arduino'
Include Path o\avr\variants\eightanaloginputs'
Library Include Paths (3)
Include Path o\avr\libraries\EEPROM'
Include Path 'C:\Users\paul_000\Documents\Arduino\libraries\Goldelox_Serial_4DLib'
Include Path 'C:\Users\paul_000\Documents\Arduino\libraries\TimerOne'
Platform Libraries Root Include Paths
Include Path 'C:\Users\paul_000\Downloads\arduino-1.5.8-windows\arduino-1.5.8\libraries'
Include Path o\avr\libraries'
Include Path 'C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers'
Include Path 'C:\Users\paul_000\Documents\Arduino\libraries'
All import libraries will be re-compiled 



Code
Select All
avr/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=158 -DARDUINO_AVR_MINI -DARDUINO_ARCH_AVR ino\avr\cores\arduino" ino\avr\variants\eightanaloginputs" ino\avr\libraries\EEPROM" -I"C:\Users\paul_000\Documents\Arduino\libraries\Goldelox_Serial_4DLib" -I"C:\Users\paul_000\Documents\Arduino\libraries\TimerOne" -I"C:\Users\paul_000\Downloads\arduino-1.5.8-windows\arduino-1.5.8\libraries" ino\avr\libraries" -I"C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers" -I"C:\Users\paul_000\Documents\Arduino\libraries" ga328\Simple_Charger.cpp" -o ga328\Simple_Charger.cpp.o"
...
Build Core Paths: \avr\cores\arduino
avr/bin/avr-gcc" -c -g -Os -w -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=158 -DARDUINO_AVR_MINI -DARDUINO_ARCH_AVR ino\avr\cores\arduino" ino\avr\variants\eightanaloginputs" ino\avr\libraries\EEPROM" -I"C:\Users\paul_000\Documents\Arduino\libraries\Goldelox_Serial_4DLib" -I"C:\Users\paul_000\Documents\Arduino\libraries\TimerOne" -I"C:\Users\paul_000\Downloads\arduino-1.5.8-windows\arduino-1.5.8\libraries" ino\avr\libraries" -I"C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers" -I"C:\Users\paul_000\Documents\Arduino\libraries" o\avr\cores\arduino\hooks.c" -o ga328\hooks.c.o"
...
avr/bin/avr-gcc" -w -Os -Wl,--gc-sections -mmcu=atmega328p -o ga328/Simple_Charger.elf" ga328\Simple_Charger.cpp.o" ga328\EEPROM\EEPROM.cpp.o" ga328\Goldelox_Serial_4DLib\Goldelox_Serial_4DLib.cpp.o" ga328\TimerOne\TimerOne.cpp.o" ga328/core.a" mega328" -lm
avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 ga328/Simple_Charger.elf" ga328/Simple_Charger.eep"
avr/bin/avr-objcopy" -O ihex -R .eeprom ga328/Simple_Charger.elf" ga328/Simple_Charger.hex"
Binary sketch size: 11,370 bytes (used 40% of a 28,672 byte maximum) (26.30 secs)
Minimum Memory Usage: 442 bytes (22% of a 2048 byte maximum)
 



It also builds using Arduino 1.0:

Code
Select All
Compiling 'Simple_Charger' for 'Arduino Mini w/ ATmega328'
Build folder: ni328
Summary: Header=1 Prototypes=4 Imports=5
Additional Defines:
Architecture Tools: C:\Program Files (x86)\Arduino_1_0_6\hardware\tools\avr\bin\
GCC: 4.3.2
Sketchbook: file:///C:/Users/paul_000/Documents/Arduino
Core Include Paths
Include Path 'C:\Program Files (x86)\Arduino_1_0_6\hardware\arduino\cores\arduino'
Include Path 'C:\Program Files (x86)\Arduino_1_0_6\hardware\arduino\variants\eightanaloginputs'
Library Include Paths (3)
Include Path 'C:\Program Files (x86)\Arduino_1_0_6\libraries\EEPROM'
Include Path 'C:\Users\paul_000\Documents\Arduino\libraries\Goldelox_Serial_4DLib'
Include Path 'C:\Users\paul_000\Documents\Arduino\libraries\TimerOne'
Platform Libraries Root Include Paths
Include Path 'C:\Program Files (x86)\Arduino_1_0_6\libraries'
Include Path 'C:\Program Files (x86)\Arduino_1_0_6\hardware\arduino\libraries'
Include Path 'C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers'
Include Path 'C:\Users\paul_000\Documents\Arduino\libraries'
All import libraries will be re-compiled
...
C:\Program Files (x86)\Arduino_1_0_6\hardware\tools\avr\bin\avr-objcopy -O ihex -R .eeprom imple_Charger.elf" imple_Charger.hex"
Binary sketch size: 11,528 bytes (used 40% of a 28,672 byte maximum) (17.68 secs) 

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems with Arduino 1.6x and 1.5x but not 1.x
Reply #6 - Apr 2nd, 2016 at 9:56pm
Print Post  
I am sorry I have totally lost the question or issue we are trying to solve in this thread.

Can you please give a short summary of what problem you are having? 

Thanks
  
Back to top
IP Logged
 
PStechPaul
Junior Member
**
Offline


Posts: 33
Joined: Mar 25th, 2016
Re: Problems with Arduino 1.6x and 1.5x but not 1.x
Reply #7 - Apr 3rd, 2016 at 12:17am
Print Post  
Mainly, I would like to be able to use Atmel Studio or Visual Studio as a single means of building and uploading my Arduino projects, and also hopefully use the Dragon as a programmer. The only way I seem to be able to access the Dragon is with Atmel Studio 7.0, but I have been unable to use it to build an Arduino project. This particular thread is about my previous inability to use Arduino 1.5x or 1.6x, but it seems that I was able to fix the problems with 1.6.8.

At this point I think I'll just use the Arduino 1.6.8 IDE for building and uploading via the FTDI USB-serial device, and I can use AS7.0 to read the flash when needed. 

Perhaps I can send a zipfile of my project and libraries, and you can see if you can get AS7 to build the project and maybe even upload using the serial interface. 

Somehow I don't see a way to upload a file, so I have the project and pertinent libraries here:
http://enginuitysystems.com/files/Simple_Charger.zip

[edit] Attachments seem available now...but it's larger than permitted.

Thanks.
« Last Edit: Apr 3rd, 2016 at 12:22am by PStechPaul »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Problems with Arduino 1.6x and 1.5x but not 1.x
Reply #8 - Apr 3rd, 2016 at 12:20am
Print Post  
Now that you are using the 1.6.8 ide why not see if you can get the dragon working as programmers.txt?

I think you also said your have build and serial upload working with visual micro in as7?

If the programmer works in the arduino ide it can work with visual micro

« Last Edit: Apr 3rd, 2016 at 12:31am by Tim@Visual Micro »  
Back to top
IP Logged
 
PStechPaul
Junior Member
**
Offline


Posts: 33
Joined: Mar 25th, 2016
Re: Problems with Arduino 1.6x and 1.5x but not 1.x
Reply #9 - Apr 3rd, 2016 at 2:12am
Print Post  
I can get the Dragon listed among the tools but it still tries to open COM9. The upload from Arduino 1.6.8 is still not totally reliable, but works well enough. 

I have another problem, though. I set the file type properties of the .ino type to open with the application in the Download folder, and it goes through some initialization but closes during "loading boards". So I must just click on the Arduino application directly. Previous versions seemed to work. The same thing seems to happen when I launch from the Program Files(x86) folder. Actually, the file associations seem to be messed up. When I choose the 1.0.6 version it still comes up with the new image like 1.6.8. Maybe having multiple versions causes problems.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: My project won't compile with Arduino 1.6x and 1.5x but will with 1.x + Want to use a dragon
Reply #10 - Apr 3rd, 2016 at 1:12pm
Print Post  
Quote:
I can get the Dragon listed among the tools but it still tries to open COM9. The upload from Arduino 1.6.8 is still not totally reliable, but works well enough


In the arduino ide to use a programmer you have to click "upload using programmer" and not the normal upload

In visual micro you simply select your programmer and ensure that "always use programmer for upload" is ticked. Then standard build/upload uses the programmer.

Quote:
I have another problem, though. I set the file type properties of the .ino type to open with the application in the Download folder, and it goes through some initialization but closes during "loading boards". So I must just click on the Arduino application directly. Previous versions seemed to work. The same thing seems to happen when I launch from the Program Files(x86) folder. Actually, the file associations seem to be messed up. When I choose the 1.0.6 version it still comes up with the new image like 1.6.8. Maybe having multiple versions causes problems.


Not sure entirely what you are saying but maybe you need to right click an .ino in windows explorer and select "open with" then you can click the checkbox that says "make default" or something similar.
« Last Edit: Apr 3rd, 2016 at 1:14pm by Tim@Visual Micro »  
Back to top
IP Logged
 
PStechPaul
Junior Member
**
Offline


Posts: 33
Joined: Mar 25th, 2016
Re: My project won't compile with Arduino 1.6x and 1.5x but will with 1.x + Want to use a dragon
Reply #11 - Apr 3rd, 2016 at 10:49pm
Print Post  
I didn't know about the "upload using programmer" option under "sketch", and when I tried that, it used the "programmers.txt" in the Arduino executable folder path "hardware\arduino\avr". I had added the "AVR Dragon" definition and it flagged an error where I had "dragon_protocol" which should be "dragon_isp". When I corrected it, I still got the error. So I had to close and restart the IDE. But I got the following error:

Code
Select All
vr/bin/avr-ar: unable to rename 'core\core.a'; reason: File exists

exit status 1
Error compiling for board Arduino Pro or Pro Mini. 



I could not find any file by that name, and the only names with "core" are:

Code
Select All
xtras\wifiHD\src\SOFTWARE_FRAMEWORK\SERVICES\LWIP\lwip-1.3.2\src
and
\src 



The Arduino environment folders seem to be a mess, and there are some files, like "platform.txt", appear to have multiple copies, making editing difficult.  Roll Eyes

I tried once again to set the "Open with" properties of the "INO" file type to the Arduino.exe in the downloads folder as well as the Program Files(x86) folder, which I renamed simply "Arduino", with the same result. 

It might be because I had not "properly" installed 1.6.8 using the installer. It said that 1.0.6 was already installed. Yes, reinstalling using the installer fixed that problem, but now I get this error using the Dragon:

Code
Select All
avrdude: usbdev_open(): did not find any USB device "usb" 



Getting closer to working! Thanks  Cool
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12188
Location: United Kingdom
Joined: Apr 10th, 2010
Re: My project won't compile with Arduino 1.6x and 1.5x but will with 1.x + Want to use a dragon
Reply #12 - Apr 4th, 2016 at 11:10am
Print Post  
This Topic was moved here from Arduino for Atmel Studio [move by] Visual Micro.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint