1 (edited by soliuser 2019-12-22 12:57:46)

Topic: How to install a bootloader on a Sanguinololu 1.3a with 1284P in 2019+

Hi,

I am trying to install a bootloader on my Sanguinololu 1.3a board (with new ATmega1284P) since days!

Here are my previous attempts:

I tried several Fuse-Settings, like '0xD6 LFuse, 0xDA HFuse & 0xFD EFuse' or '0xD7 LFuse, 0xDC HFuse & 0xFD EFuse' or '0xFF LFuse, 0xDE HFuse & 0xFD EFuse' or '0xFF LFuse, 0xDA HFuse & 0xFF EFuse' ...and several  programmers as well 'stk500v1', 'stk500v2', 'Arduino', ...

BTW: I use an Arduino Uni as ISP, and i have used it successfully before with several creality boards. Wired this way...
https://www.arduino.cc/en/uploads/Tutorial/Arduino_ISP_wires.jpg
Target = Sanguinololu 1.3a ICSP

Recently, I tried the following... https://youtu.be/S95-5Ft4RPQ (a horrible video, but without a 16Mhz resonator)

And yet so far no success!

My last try will be the tutorial 'Burning the Sanguino Bootloader using Arduino as ISP' from RepRap. But as I said before I am (still) missing a 16Mhz resonator.

First I got an error like 'ATmega1284p expected' from time to time, but now it just comes:

Yikes!  Invalid device signature. 0x000000

Arduino: 1.8.10 (Windows 10), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"

C:\Arduino\hardware\tools\avr/bin/avrdude -CC:\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega1284p -cstk500v1 -PCOM3 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDC:m -Ulfuse:w:0xD7:m 

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM3
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
         AVR Part                      : ATmega1284P
         Chip Erase delay              : 55000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    10   128    0 no       4096    8      0  9000  9000 0xff 0xff
           flash         65    10   256    0 yes    131072  256    512  4500  4500 0xff 0xff
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00

         Programmer Type : STK500
         Description     : Atmel STK500 Version 1.x firmware
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

Fehler beim Brennen des Bootloaders.
Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.

Please help me, I'm getting desperate. What am I doing wrong?

Thanks and best regards,
Chris aka soliuser ;-)

2

Re: How to install a bootloader on a Sanguinololu 1.3a with 1284P in 2019+

The auto reset jumper was set! :-)

https://reprap.org/mediawiki/images/thumb/2/29/SDSL_reset.jpg/500px-SDSL_reset.jpg

3

Re: How to install a bootloader on a Sanguinololu 1.3a with 1284P in 2019+

Sounds like this was a success, do you have any more information/hiccups to share?

I want to upgrade my sang ATmega1284P so that I can add an lcd/sd screen.

FuseBox 1.5 CoreXY - e3dv6 - Graphic Smart Display
Solidoodle 2 - e3dv6 - Hobb Goblin - e3d Titan - lawsy carriages - Direct Drive Y Axis - T8 Z axis - OctoPi

4

Re: How to install a bootloader on a Sanguinololu 1.3a with 1284P in 2019+

Hi @widespreaddeadhead,

I have no solution and I have not received an answer to my problem so far. :-(

I have tried and tried and tried. In the end with success!
But I do not know what the problem was and why it worked in the end.

I used an Arduino as ISP and AVRDUDESS and created my own profile.

>>>: avrdude
optiboot_atmega1284p.hex: 474 / 131.072 Bytes (0,36%)
Checking for updates...
You have the latest version smiling smiley
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
>>>: avrdude -u -c stk500v1 -p m1284p -P COM4 -b 19200 -v -e -U flash:w:"C:\Users\[username]\Desktop\Solidoodle 2 with Sanguinololu\USBISP\optiboot_atmega1284p.hex":i -U lfuse:w:0xD6:m -U hfuse:w:0xDA:m -U efuse:w:0xFD:m -U lock:w:0x3F:m

avrdude.exe: Version 6.3, compiled on Feb 17 2016 at 09:25:53
             Copyright (c) 2000-2005 Brian Dean, [www.bdmicro.com]
             Copyright (c) 2007-2014 Joerg Wunsch

             System wide configuration file is "C:\Users\[username]\Desktop\Solidoodle 2 with Sanguinololu\AVRDUDE\avrdudess_20191012\avrdude.conf"

             Using Port                    : COM4
             Using Programmer              : stk500v1
             Overriding Baud Rate          : 19200
             AVR Part                      : ATmega1284P
             Chip Erase delay              : 55000 us
             PAGEL                         : PD7
             BS2                           : PA0
             RESET disposition             : dedicated
             RETRY pulse                   : SCK
             serial program mode           : yes
             parallel program mode         : yes
             Timeout                       : 200
             StabDelay                     : 100
             CmdexeDelay                   : 25
             SyncLoops                     : 32
             ByteDelay                     : 0
             PollIndex                     : 3
             PollValue                     : 0x53
             Memory Detail                 :

                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               eeprom        65    10   128    0 no       4096    8      0  9000  9000 0xff 0xff
               flash         65    10   256    0 yes    131072  256    512  4500  4500 0xff 0xff
               lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
               lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
               hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
               efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
               signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
               calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00

             Programmer Type : STK500
             Description     : Atmel STK500 Version 1.x firmware
             Hardware Version: 2
             Firmware Version: 1.18
             Topcard         : Unknown
             Vtarget         : 0.0 V
             Varef           : 0.0 V
             Oscillator      : Off
             SCK period      : 0.1 us

avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.11s

avrdude.exe: Device signature = 0x1e9705 (probably m1284p)
avrdude.exe: erasing chip
avrdude.exe: reading input file "C:\Users\[username]\Desktop\Solidoodle 2 with Sanguinololu\USBISP\optiboot_atmega1284p.hex"
avrdude.exe: writing flash (131072 bytes):

Writing | ################################################## | 100% 0.00s

avrdude.exe: 131072 bytes of flash written
avrdude.exe: verifying flash memory against C:\Users[username]\Desktop\Solidoodle 2 with Sanguinololu\USBISP\optiboot_atmega1284p.hex:
avrdude.exe: load data flash data from input file C:\Users[username]\Desktop\Solidoodle 2 with Sanguinololu\USBISP\optiboot_atmega1284p.hex:
avrdude.exe: input file C:\Users[username]\Desktop\Solidoodle 2 with Sanguinololu\USBISP\optiboot_atmega1284p.hex contains 131072 bytes
avrdude.exe: reading on-chip flash data:

Reading | ################################################## | 100% -0.00s

avrdude.exe: verifying ...
avrdude.exe: 131072 bytes of flash verified
avrdude.exe: reading input file "0xD6"
avrdude.exe: writing lfuse (1 bytes):

Writing | ################################################## | 100% 0.13s

avrdude.exe: 1 bytes of lfuse written
avrdude.exe: verifying lfuse memory against 0xD6:
avrdude.exe: load data lfuse data from input file 0xD6:
avrdude.exe: input file 0xD6 contains 1 bytes
avrdude.exe: reading on-chip lfuse data:

Reading | ################################################## | 100% 0.05s

avrdude.exe: verifying ...
avrdude.exe: 1 bytes of lfuse verified
avrdude.exe: reading input file "0xDA"
avrdude.exe: writing hfuse (1 bytes):

Writing | ################################################## | 100% 0.13s

avrdude.exe: 1 bytes of hfuse written
avrdude.exe: verifying hfuse memory against 0xDA:
avrdude.exe: load data hfuse data from input file 0xDA:
avrdude.exe: input file 0xDA contains 1 bytes
avrdude.exe: reading on-chip hfuse data:

Reading | ################################################## | 100% 0.03s

avrdude.exe: verifying ...
avrdude.exe: 1 bytes of hfuse verified
avrdude.exe: reading input file "0xFD"
avrdude.exe: writing efuse (1 bytes):

Writing | ################################################## | 100% 0.13s

avrdude.exe: 1 bytes of efuse written
avrdude.exe: verifying efuse memory against 0xFD:
avrdude.exe: load data efuse data from input file 0xFD:
avrdude.exe: input file 0xFD contains 1 bytes
avrdude.exe: reading on-chip efuse data:

Reading | ################################################## | 100% 0.04s

avrdude.exe: verifying ...
avrdude.exe: 1 bytes of efuse verified
avrdude.exe: reading input file "0x3F"
avrdude.exe: writing lock (1 bytes):

Writing | ################################################## | 100% 0.03s

avrdude.exe: 1 bytes of lock written
avrdude.exe: verifying lock memory against 0x3F:
avrdude.exe: load data lock data from input file 0x3F:
avrdude.exe: input file 0x3F contains 1 bytes
avrdude.exe: reading on-chip lock data:

Reading | ################################################## | 100% 0.05s

avrdude.exe: verifying ...
avrdude.exe: 1 bytes of lock verified

avrdude.exe done.  Thank you.

http://soliforum.com/i/?WxgGjII.png

Post's attachments

optiboot_atmega1284p.7z 6.01 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.