Pages: [1]   Go Down
Author Topic: Error compiling Bootloader?  (Read 875 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 35
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a second ATmega328 chip on breadboard using TinyUSBISP to burn the bootloader.

I seem to be having an error in Main when checking the script before I load it to the chip

C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=atmega328p -DF_CPU=16000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=101 -IC:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\arduino\cores\arduino -IC:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\arduino\variants\standard C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\sketch_oct07a.cpp -o C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\sketch_oct07a.cpp.o
  Using previously compiled: C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\WInterrupts.c.o
  Using previously compiled: C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\wiring.c.o
  Using previously compiled: C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\wiring_analog.c.o
  Using previously compiled: C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\wiring_digital.c.o
  Using previously compiled: C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\wiring_pulse.c.o
  Using previously compiled: C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\wiring_shift.c.o
  Using previously compiled: C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\CDC.cpp.o
  Using previously compiled: C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\HardwareSerial.cpp.o
  Using previously compiled: C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\HID.cpp.o
  Using previously compiled: C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\IPAddress.cpp.o
  Using previously compiled: C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\main.cpp.o
  Using previously compiled: C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\new.cpp.o
  Using previously compiled: C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\Print.cpp.o
  Using previously compiled: C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\Stream.cpp.o
  Using previously compiled: C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\Tone.cpp.o
  Using previously compiled: C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\USBCore.cpp.o
  Using previously compiled: C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\WMath.cpp.o
  Using previously compiled: C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\WString.cpp.o
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\core.a C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\WInterrupts.c.o
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\core.a C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\wiring.c.o
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\core.a C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\wiring_analog.c.o
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\core.a C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\wiring_digital.c.o
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\core.a C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\wiring_pulse.c.o
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\core.a C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\wiring_shift.c.o
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\core.a C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\CDC.cpp.o
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\core.a C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\HardwareSerial.cpp.o
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\core.a C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\HID.cpp.o
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\core.a C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\IPAddress.cpp.o
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\core.a C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\main.cpp.o
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\core.a C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\new.cpp.o
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\core.a C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\Print.cpp.o
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\core.a C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\Stream.cpp.o
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\core.a C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\Tone.cpp.o
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\core.a C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\USBCore.cpp.o
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\core.a C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\WMath.cpp.o
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-ar rcs C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\core.a C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\WString.cpp.o
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\tools\avr\bin\avr-gcc -Os -Wl,--gc-sections -mmcu=atmega328p -o C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\sketch_oct07a.cpp.elf C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\sketch_oct07a.cpp.o C:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp\core.a -LC:\Users\pcfr33k\AppData\Local\Temp\build6502781173554477768.tmp -lm
core.a(main.cpp.o): In function `main':
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\arduino\cores\arduino/main.cpp:11: undefined reference to `setup'
C:\Users\pcfr33k\Downloads\arduino-1.0.1\hardware\arduino\cores\arduino/main.cpp:14: undefined reference to `loop'
« Last Edit: October 07, 2012, 07:00:07 pm by pcfr33k » Logged

0
Offline Offline
Shannon Member
****
Karma: 201
Posts: 11744
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You appear to be compiling with main() for sketches, bootloader shouldn't pull that in, has its own main I think.
Logged

[ I won't respond to messages, use the forum please ]

Offline Offline
Newbie
*
Karma: 0
Posts: 35
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That must be why.  I still have a problem though.  I get an error if I do not hold down the manual reset switch until its done?

I have it on a breadboard with a Manual Reset switch with Resister and capacitor.  If I hold switch down switch the entire time I get a successful burn and verification.

If I hold it down 3/4 of the time and let it go before its done burning and verifying,  I get a verification error at the end!!

For example Verification Error, first mismatch at byte 0x0000
0xff != 0x04
Content mismatch
Logged

Pages: [1]   Go Up
Jump to: