Closed GoogleCodeExporter closed 8 years ago
Test sketch...
void setup( void ) { }
void loop( void ) { }
Arduino IDE 1.0.5
No dot-bin file is produced.
Original comment by arduino....@gmail.com
on 10 Aug 2014 at 8:03
Hi again!
I am a member of the codebender (https://codebender.cc) team. Codebender is an
online Arduino IDE (v1.0.5 compatible) and it uses the same toolchain in order
to compile/upload Arduino projects.
I do know that Arduino IDE uses hex files instead of binary, but there is a
reason why we need to use binary files with AVRDUDE, as well as using
auto-detection on upload.
The problem is that when compiling a project with the Arduino Tiny core (v1.0),
the binaries are detected as invalid on Windows, whereas using the standard
core (for example Arduino Uno), produces a valid binary.
Is there any way I can fix this?
Regards
Original comment by fpapado...@gmail.com
on 13 Aug 2014 at 11:45
[deleted comment]
@fpapado
I have used IDE v1.0.5 on Windows to compile your sample sketch for Arduino Uno
and no BIN file is generated.
Here are the final build step as well as the AVRDUD command line to upload the
HEX file using USBtiny :
D:\arduino\hardware\tools\avr\bin\avr-gcc -Os -Wl,--gc-sections
-mmcu=atmega328p -o C:\Temp\build6412160318083764428.tmp\sketch_aug18a.cpp.elf
C:\Temp\build6412160318083764428.tmp\sketch_aug18a.cpp.o
C:\Temp\build6412160318083764428.tmp\core.a
-LC:\Temp\build6412160318083764428.tmp -lm
D:\arduino\hardware\tools\avr\bin\avr-objcopy -O ihex -j .eeprom
--set-section-flags=.eeprom=alloc,load --no-change-warnings
--change-section-lma .eeprom=0
C:\Temp\build6412160318083764428.tmp\sketch_aug18a.cpp.elf
C:\Temp\build6412160318083764428.tmp\sketch_aug18a.cpp.eep
D:\arduino\hardware\tools\avr\bin\avr-objcopy -O ihex -R .eeprom
C:\Temp\build6412160318083764428.tmp\sketch_aug18a.cpp.elf
C:\Temp\build6412160318083764428.tmp\sketch_aug18a.cpp.hex
Binary sketch size: 444 bytes (of a 32,256 byte maximum)
D:\arduino\hardware/tools/avr/bin/avrdude
-CD:\arduino\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p
-cusbtiny
-Uflash:w:C:\Temp\build6412160318083764428.tmp\sketch_aug18a.cpp.hex:i
As you can see no BIN file is build/used, only HEX file.
This is a off-the-shelf IDE v1.0.5 for Windows building for Aruino UNO.
However, at no point arduino-tny can influence the build process. It only
contains CODE that has been adapted/optimized for ATtiny instead of ATMega.
the build process is defined at 99% by Arduino IDE and slighly influenced by
boards.txt/programmers.txt
Original comment by barbu...@gmail.com
on 18 Aug 2014 at 4:43
Original issue reported on code.google.com by
fpapado...@gmail.com
on 8 Aug 2014 at 11:14