Gen7 1.5 Bootloader issues June 16, 2013 05:38PM |
Registered: 10 years ago Posts: 7 |
$ make -f Makefile-AVR program avrdude -c stk500v2 -b 115200 -p atmega1284p -P /dev/ttyACM0 -U flash:w:teacup.hex avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.01s avrdude: Device signature = 0x1e9705 avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option. avrdude: erasing chip avrdude: reading input file "teacup.hex" avrdude: input file teacup.hex auto detected as Intel Hex avrdude: writing flash (16386 bytes): Writing | ################################################## | 100% 2.15s avrdude: 16386 bytes of flash written avrdude: verifying flash memory against teacup.hex: avrdude: load data flash data from input file teacup.hex: avrdude: input file teacup.hex auto detected as Intel Hex avrdude: input file teacup.hex contains 16386 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 1.62s avrdude: verifying ... avrdude: 16386 bytes of flash verified avrdude: safemode: Fuses OK avrdude done. Thank you.
$ avrdude -c stk500v1 -b 115200 -p atmega1284p -P /dev/ttyUSB0 -U flash:w:teacup.hex avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.01s avrdude: Device signature = 0x1e9705 avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option. avrdude: erasing chip avrdude: reading input file "teacup.hex" avrdude: input file teacup.hex auto detected as Intel Hex avrdude: writing flash (16386 bytes): Writing | ################################################## | 100% 45.68s avrdude: 16386 bytes of flash written avrdude: verifying flash memory against teacup.hex: avrdude: load data flash data from input file teacup.hex: avrdude: input file teacup.hex auto detected as Intel Hex avrdude: input file teacup.hex contains 16386 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 44.78s avrdude: verifying ... avrdude: 16386 bytes of flash verified avrdude: safemode: Fuses OK avrdude done. Thank you.
Re: Gen7 1.5 Bootloader issues June 16, 2013 06:22PM |
Registered: 10 years ago Posts: 7 |
$ cp ThermistorTable.double.h ThermistorTable.h $ cp config.gen7-v1.4.h config.h $ make -f Makefile-AVR program CC build/usb_serial.o CC build/copier.o CC build/home.o CC build/dda_queue.o CC build/crc.o CC build/sermsg.o CC build/serial.o serial.c: In function '__vector_20': serial.c:120:11: warning: variable 'trash' set but not used [-Wunused-but-set-variable] CC build/intercom.o CC build/pinio.o CC build/clock.o CC build/heater.o CC build/mendel.o CC build/gcode_process.o CC build/analog.o CC build/delay.o CC build/debug.o CC build/temp.o CC build/gcode_parse.o CC build/watchdog.o CC build/graycode.o CC build/sersendf.o CC build/dda.o CC build/timer.o CC build/dda_maths.o CC build/sd.o LINK build/teacup.elf OBJCOPY teacup.hex avrdude -c stk500v2 -b 115200 -p atmega1284p -P /dev/ttyACM0 -U flash:w:teacup.hex avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.01s avrdude: Device signature = 0x1e9705 avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option. avrdude: erasing chip avrdude: reading input file "teacup.hex" avrdude: input file teacup.hex auto detected as Intel Hex avrdude: writing flash (16386 bytes): Writing | ################################################## | 100% 2.15s avrdude: 16386 bytes of flash written avrdude: verifying flash memory against teacup.hex: avrdude: load data flash data from input file teacup.hex: avrdude: input file teacup.hex auto detected as Intel Hex avrdude: input file teacup.hex contains 16386 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 1.62s avrdude: verifying ... avrdude: 16386 bytes of flash verified avrdude: safemode: Fuses OK avrdude done. Thank you.
Re: Gen7 1.5 Bootloader issues June 16, 2013 09:54PM |
Registered: 10 years ago Posts: 7 |
Re: Gen7 1.5 Bootloader issues June 17, 2013 07:17AM |
Registered: 13 years ago Posts: 7,616 |
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Gen7 1.5 Bootloader issues June 17, 2013 08:19AM |
Registered: 10 years ago Posts: 7 |
--- make.sh.orig 2013-06-17 14:01:55.835730588 +0200 +++ make.sh 2013-06-17 14:03:52.133685890 +0200 @@ -20,27 +20,27 @@ cp -r "Gen7-dist"/* "${IDE_DIR}" # Build all required variants of bootloaders. -(cd "${FLEURY_DIR}" && make MCU=atmega644 F_CPU=16000000) +(cd "${FLEURY_DIR}" && make MCU=atmega644 F_CPU=16000000 BOOTLOADER_ADDRESS=F800) mv "${FLEURY_DIR}/stk500boot.hex" "${BOOTLOADERS_DIR}/bootloader-644-16MHz.hex" (cd "${FLEURY_DIR}" && make clean) -(cd "${FLEURY_DIR}" && make MCU=atmega644 F_CPU=20000000) +(cd "${FLEURY_DIR}" && make MCU=atmega644 F_CPU=20000000 BOOTLOADER_ADDRESS=F800) mv "${FLEURY_DIR}/stk500boot.hex" "${BOOTLOADERS_DIR}/bootloader-644-20MHz.hex" (cd "${FLEURY_DIR}" && make clean) -(cd "${FLEURY_DIR}" && make MCU=atmega644p F_CPU=16000000) +(cd "${FLEURY_DIR}" && make MCU=atmega644p F_CPU=16000000 BOOTLOADER_ADDRESS=F800) mv "${FLEURY_DIR}/stk500boot.hex" "${BOOTLOADERS_DIR}/bootloader-644P-16MHz.hex" (cd "${FLEURY_DIR}" && make clean) -(cd "${FLEURY_DIR}" && make MCU=atmega644p F_CPU=20000000) +(cd "${FLEURY_DIR}" && make MCU=atmega644p F_CPU=20000000 BOOTLOADER_ADDRESS=F800) mv "${FLEURY_DIR}/stk500boot.hex" "${BOOTLOADERS_DIR}/bootloader-644P-20MHz.hex" (cd "${FLEURY_DIR}" && make clean) -(cd "${FLEURY_DIR}" && make MCU=atmega1284p F_CPU=16000000) +(cd "${FLEURY_DIR}" && make MCU=atmega1284p F_CPU=16000000 BOOTLOADER_ADDRESS=1F800) mv "${FLEURY_DIR}/stk500boot.hex" "${BOOTLOADERS_DIR}/bootloader-1284P-16MHz.hex" (cd "${FLEURY_DIR}" && make clean) -(cd "${FLEURY_DIR}" && make MCU=atmega1284p F_CPU=20000000) +(cd "${FLEURY_DIR}" && make MCU=atmega1284p F_CPU=20000000 BOOTLOADER_ADDRESS=1F800) mv "${FLEURY_DIR}/stk500boot.hex" "${BOOTLOADERS_DIR}/bootloader-1284P-20MHz.hex" (cd "${FLEURY_DIR}" && make clean)
Re: Gen7 1.5 Bootloader issues June 18, 2013 08:49AM |
Registered: 13 years ago Posts: 7,616 |
Quote
I checkout the older printrun version and indeed, it works!
Quote
could you point me to the line of code, where the bootloader waits for 3 seconds
#ifdef ALWAYS_WAIT_FOR_PROGRAMMER // this factor 11. was found experimental uint32_t timeout = ( (uint32_t)((float)F_CPU * PROGRAMMER_WAIT_SECONDS / 11.) ); #endif
Quote
shouldn't the bootloader address be specified
ifeq ($(MCU), atmega644) BOOTLOADER_ADDRESS = F800 endif ifeq ($(MCU), atmega644p) BOOTLOADER_ADDRESS = F800 endif ifeq ($(MCU), atmega1284p) BOOTLOADER_ADDRESS = 1F800 endif
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Gen7 1.5 Bootloader issues June 18, 2013 03:23PM |
Registered: 10 years ago Posts: 7 |
Quote
It is. See line 58ff of the Makefile:
# Bootloader # Please adjust if using a different AVR # Find the correct value in the "Boot Loader Parameters" section of the # chip's data sheet. It's the lower value in the "Boot Loader Flash Section" # and must be multiplied by 2, as the numbers in these tables are word sized. # 0x0e00*2=0x1C00 for ATmega8 512 words Boot Size # ATmega644(P), 512 words boot size: FC00 # ATmega644(P), 1024 words boot size: F800 BOOTLOADER_ADDRESS = F800
Re: Gen7 1.5 Bootloader issues June 21, 2013 06:29PM |
Registered: 10 years ago Posts: 7 |
Re: Gen7 1.5 Bootloader issues June 29, 2013 03:25PM |
Registered: 13 years ago Posts: 7,616 |
Quote
Do you want to push your makefile to the git repo?
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Gen7 1.5 Bootloader issues July 03, 2013 04:02PM |
Registered: 10 years ago Posts: 7 |
Gen7 1.3 Pronterface issues October 22, 2013 05:38PM |
Registered: 12 years ago Posts: 5 |
Re: Gen7 1.3 Pronterface issues October 23, 2013 05:21AM |
Registered: 13 years ago Posts: 7,616 |
Quote
If I send an M105 from the IDE, the response I get is 'OK, T:874.25 B;872.75'
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Gen7 1.3 Pronterface issues October 23, 2013 08:16AM |
Registered: 12 years ago Posts: 5 |
Re: Gen7 1.3 Pronterface issues October 23, 2013 09:40AM |
Registered: 12 years ago Posts: 5 |
Re: Gen7 1.3 Pronterface issues October 23, 2013 10:07AM |
Registered: 12 years ago Posts: 5 |
Re: Gen7 1.3 Pronterface issues October 24, 2013 03:48AM |
Registered: 13 years ago Posts: 7,616 |
Quote
Forums are great but instructions are better, when read fully
Quote
Should I replace the choke with a 10uh item?
Generation 7 Electronics | Teacup Firmware | RepRap DIY |