Quantcast
Channel: Reprap Forum - Sanguino(lolu)
Viewing all 1033 articles
Browse latest View live

Re: Arduino does not show my Sanguino board

$
0
0
You say your getting a "Access Denied" but the error you show doesn't say that

Where are you seeing this?

Re: Arduino does not show my Sanguino board

$
0
0
Well as usual, going back to redo the command, I get different results. This time it apparently was able to communicate with the chip but unable to write the bootloader. The error log is attached. I notice that the output always seems to say the programmer used is stk500v1 rather than Arduino as ISP.
Don't know if that makes any difference.

Re: Arduino does not show my Sanguino board

$
0
0
stk500v1is the protocol that's fine.

Re: Arduino does not show my Sanguino board

$
0
0
Your going to have to drop to command line... The GUI isnt giving you enough control

From the logs you can see

C:\Program Files\arduino-1.6.9\hardware\tools\avr/bin/avrdude -CC:\Program Files\arduino-1.6.9\hardware\tools\avr/etc/avrdude.conf -v -patmega1284p -cstk500v1 -PCOM5 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m

but its erroring out

This is just trying to set the fuses (hardware options on the cpu)

I find I have to add in some delays with the -B flag

Last time I tryed this I needed - B 8, but you may need to try a few numbers (its different for each pc)

eg C:\Program Files\arduino-1.6.9\hardware\tools\avr/bin/avrdude -B 8 -CC:\Program Files\arduino-1.6.9\hardware\tools\avr/etc/avrdude.conf -v -patmega1284p -cstk500v1 -PCOM5 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m

Once this succeeds you need to move on to the actual boot loader

which would be something like
C:\Program Files\arduino-1.6.9\hardware\tools\avr/bin/avrdude -B 8 -CC:\Program Files\arduino-1.6.9\hardware\tools\avr/etc/avrdude.conf -v -patmega1284p -cstk500v1 -PCOM5 -b19200 -e -U flash:w:{your path}/ATmegaBOOT_1284P.hex

Re: Arduino does not show my Sanguino board

$
0
0
In the output it also says use the -F flag to over ride the check. Using this I got through that command OK. I have attached the output from the console.
Moving to the second command, I get the following: (I copied the hex file to the root directory to shorten the path)

C:\Program Files\arduino-1.6.9\hardware\tools\avr\bin>avrdude -B 8 -C"C:\Program
Files\arduino-1.6.9\hardware\tools\avr/etc/avrdude.conf" -v -patmega1284p -cstk
500v1 -PCOM5 -b19200 -e -Uflash:w:C:\ATmegaBOOT_1284P.hex
avrdude: invalid file format '\ATmegaBOOT_1284P.hex' in update specifier
avrdude: error parsing update operation 'flash:w:C:\ATmegaBOOT_1284P.hex'

Re: Arduino does not show my Sanguino board

$
0
0
I'm surprised that -F works, but it seems to verify and progress is progress


The issue with the boot loader is that path
you cant use a : in the path without quotes, it confused avrdude


Try

C:\Program Files\arduino-1.6.9\hardware\tools\avr\bin>avrdude -B 8 -C"C:\Program
Files\arduino-1.6.9\hardware\tools\avr/etc/avrdude.conf" -v -patmega1284p -cstk
500v1 -PCOM5 -b19200 -e -Uflash:w:"C:\ATmegaBOOT_1284P.hex"

Re: Arduino does not show my Sanguino board

$
0
0
Apparently it doesn't like anything in the path other than the file name. I copied the file to the bin directory where avrdude resides it ran this time again requiring the -F flag. The results are in the attachment. There is a verification error with a mismatch in output.

Just for grins, I tried to upload the blink sketch to the ATmega1284P and got interesting results. I have included them in Output3 attachment. It appears that the Uno I am using as the ISP is still working as an ISP (at least to me). I don't ever remember the output like this on my Uno when I uploaded programs.

So I tried it on my Uno and got the same output. Apparently I turned on some verbose mode that is persistent.

Re: Arduino does not show my Sanguino board

$
0
0
I was studying the output of the 2 commands and noticed the following output after trying to obtain the device signature in the first command:

avrdude: Device signature = 0x000000
avrdude: Yikes! Invalid device signature.
avrdude: Expected signature for ATmega1284P is 1E 97 05

It then notes the verification error and exits after checking t he fuses. So it is not really making any contact with the ATmega1284P is it?

Re: Arduino does not show my Sanguino board

$
0
0
This is as yet untested in a printer, but it appears to have worked.

Downloaded latest ArduinoIDE 1.69. In that version, under files/preferences you can set additional URLs to keep board information up to date.
I used [raw.githubusercontent.com] which meant I saw Sanguino as a board option in the IDE.
But I was unable to compile to the board, it failed to sync when I chose the Sanguino board and selected "ATMega1284 or 1284P (16Mhz).
I then modified the Boards.txt on line 78 to read "sanguino.menu.cpu.atmega1284p.upload.speed=57600" instead of 115200. This gave me sync with the board and I was able to upload Blink, but without any LED to blink this was pretty pointless. When I tried Marlin I received a "dunno what board this is" type error.
Then I tried the T3P3 Marlin fork.
I copied the T3P3 Sanguino folder across to C:\Program Files (x86)\Arduino\hardware\arduino\avr\sanguino It would not work correctly in any of the folders above this path.
With the configuration.h modified to suit my printer (I hope) I was able to compile and upload was reported complete with no errors.
Unfortunately the printer it is about to go into has completely different connections, so I won't be able to confirm until I can rejig it.

Hope that helps though.

Re: Arduino does not show my Sanguino board

$
0
0
OK I tried that and no luck. If I use Nick Gammon's sketches I can read the information frrom the target board. But when I try to burn the bootloader using his sketch it doesn't work because he didn't update the board signatures and the ATmega1284P signature is not there so the program aborts before doing anything especially unlocking the memory for update. The board part numbers and bootloaders have been updated but they can't be loaded because the device signature is not updated.

Need AVRDUDE guru/bootloader help

$
0
0
So here is the situation. I am using an Arduino UNO (Actually and OSEPP Uno R3 Plus) as an ISP programmer.
The target board is a Melzi V3 Ebay upgrade to an ATmega1284P chip.
Running the ATmega_Board_Detector sketch from Nick Gammon I can query the chip and get all the information about the chip and the bootloader from that sketch (See attached file Board_Detected.txt).
When I run the ATmega_Board_Programmer sketch however, the sketch fails Because something is not defined. I am not a programmer by any stretch of the imagination so I don't know what this means or how to track it down.(See the attached file ProgrammerError.txt)
If I run the programmer from the command line, I get an error about an invalid signature and the program exits.Even if I use the -F to force skipping the verification step, the program exist aftere setting everything into safe mode. (See attache file (CommandLine.txt)

So since the Gammon Sketch was able to read the board signature, I'm guessing that something is missing in the command line but I have no idea what nor how to find out other than ask for help from the gurus on these forums.

Re: Need AVRDUDE guru/bootloader help

$
0
0
It would appear that I need a wizard rather than just a guru. After numerous retries and an interval where I used the setup to program a couple
of ATMega328P chips, this attempt went off as if nothing had ever been wrong. Go figure.

`.text' will not fit in region `text' during compile of firmware

$
0
0
I am trying to write the bootloader and firmware to the Sanguino controller board on my reprap printer. I got an SD card with the package that supposedly had all the software for the system. After many false starts, I think I am on the right track but unable to reach the finish line. There are two tracks I have tried:
1. Assume that the hex file included in the firmware directory of the SD card is actually the combined bootloader and firmware saved as a hex file. I am trying to contact the manufacturer to verify this assumption. The first phase of the "burn bootloader" process is successful. The second step, actually uploading the hex data to flash memory goes through the write stage but hangs part way into the read stage where it is trying too verify the written data to the source data. Maybe the assumption is wrong but does this description pique any memories?

2. The firmware on the original board I am replacing was based on the Repetier firmware. I used the Repetier Firmware Configurator to build a new firmware profile using what I remember from the original. It compiles OK but when trying to upload, it generates a stack overflow in the text region. Full text of the error:
Arduino: 1.6.9 (Windows XP), Board: "Sanguino, ATmega1284 or ATmega1284P (16 MHz)"

c:/program files/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld.exe: C:\DOCUME~1\John\LOCALS~1\Temp\build1d76ff8a31b0f78df26120a58e13e379.tmp/Repetier.ino.elf section `.text' will not fit in region `text'

c:/program files/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.8.1/../../../../avr/bin/ld.exe: region `text' overflowed by 7708 bytes

collect2.exe: error: ld returned 1 exit status

exit status 1
Error compiling for board Sanguino.

Any ideas on how I can get around this?

Re: `.text' will not fit in region `text' during compile of firmware

$
0
0
Too many languages selected in the Configuration tool by default. Removed excess languages and it compiles fine except on WinXP.
Need to use the ArduinoIDE V1.0.6 ld.exe to compile.

Re: 1284P Fuse settings confirmation?

$
0
0
Dear Sir,

I have Atmega1284P rectangular or Squared Microcontroller and I have marlin firmware software. How do I bootloader marlin code into 1284P. Please tell me the steps. It would take only few minutes for an experts but for me it may be months and months. I am beginner for this field. I am learning. I have seen some tutorials and also went for some web sites, blogspots and all. I did not get which PROGRAMMER from arduino we should select. Even I see How arduino UNO can be act as Arduino by ARDUNO-ISP for Atmega328. I did not get steps or videos related to ATmega1284P. So, kindly do a favor in telling me that HOW TO BOOTLOAD Atmega1284P with what PROGRAMMER? and what all hardwares needed for it like PROGRAMMER device and all. I needed step by step procedure. Please take your valuable time.

Regards,

shri.7175@gmail.com

ShriHari

Sanguinololu with at1284p

$
0
0
Hello,

I'm struggling with this one for a couple of days, and decided to come here and ask for some tips...

I'm trying to upload a Marlin firmware to a sanguinololu but without success...

I'm working with both a raspberry PI3 (arduino for ARM) and a normal PC with Linux LXLE (64-bit Ubuntu based) and the results are the same. I've also tried different AT1284p chips, just to cover the remote possibility that the new one is damaged.

What I've done so far:
  • Bought new AT1284p chip
  • Installed it in the sanguinololu board
  • With the great tips from [dustsreprap.blogspot.pt] I was able to install sanguino in the arduino IDE 1.6.9 (actually based on [github.com])
  • With an arduino UNO acting as ISP, burned the bootloader to the AT1284p
  • To test it, uploaded an example sketch (examples/communications/ASCII table) with the "normal" programer - AVRISP mkll. Everything goes fine.
  • Success, with the Serial Monitor I can see the ascii table "arriving"
  • Then, with the exact same board options, I compile and try to upload the Marlin Firmware to it, and it gets stuck between 4% and 40%. The most common error is "avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x62"

What can I be doing wrong??

Thanks, Joao Silva


root@nostromo:~# /home/jabss/Desktop/arduino-1.6.9/hardware/tools/avr/bin/avrdude -C/home/jabss/Desktop/arduino-1.6.9/hardware/tools/avr/etc/avrdude.conf -v -patmega1284p -carduino -P/dev/ttyUSB0 -b115200 -D -Uflash:w:/tmp/build7541ecec97c971a10b8d6f10b8688134.tmp/Marlin.ino.hex:i 

    avrdude: Version 6.0.1, compiled on Apr 14 2015 at 19:04:16
     Copyright (c) 2000-2005 Brian Dean, [www.bdmicro.com]
     Copyright (c) 2007-2009 Joerg Wunsch

     System wide configuration file is "/home/jabss/Desktop/arduino-1.6.9/hardware/tools/avr/etc/avrdude.conf"
     User configuration file is "/root/.avrduderc"
     User configuration file does not exist or is not a regular file, skipping

     Using Port                    : /dev/ttyUSB0
     Using Programmer              : arduino
     Overriding Baud Rate          : 115200
     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 : Arduino
     Description     : Arduino
     Hardware Version: 3
     Firmware Version: 5.0
     Vtarget         : 0.3 V
     Varef           : 0.3 V
     Oscillator      : 28.800 kHz
     SCK period      : 3.3 us

    avrdude: AVR device initialized and ready to accept instructions

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

    avrdude: Device signature = 0x1e9705
    avrdude: safemode: lfuse reads as 0
    avrdude: safemode: hfuse reads as 0
    avrdude: safemode: efuse reads as 0
    avrdude: reading input file "/tmp/build7541ecec97c971a10b8d6f10b8688134.tmp/Marlin.ino.hex"
    avrdude: writing flash (98234 bytes):

    Writing | ##                                                 | 4% 0.46s
    avrdude: stk500_paged_write(): (a) protocol error, expect=0x14, resp=0x62
    Writing | ###                                                | 5%    0.55savrdude: stk500_recv(): programmer is not responding

Re: Sanguinololu with at1284p

$
0
0
Answering my own question as I kept trying until I got it :)

With an arduino UNO acting as ISP, I burned again the bootloader to the AT1284p. I configured the arduino IDE to be verbose in the upload (file / preferences / "show verbose output during" - tick upload).

I then copied the burn bootloader command that was (YMMV):

/home/jabss/Desktop/arduino-1.6.9/hardware/tools/avr/bin/avrdude -C/home/jabss/Desktop/arduino-1.6.9/hardware/tools/avr/etc/avrdude.conf -v -patmega1284p -cstk500v1 -P/dev/ttyUSB0 -b19200 -Uflash:w:/root/.arduino15/packages/Sanguino/hardware/avr/1.0.0/bootloaders/optiboot/optiboot_atmega1284p.hex:i -Ulock:w:0x0F:m

This command doesn't mention any fuses, so considering the burn fuses command from [reprap.org],

avrdude -p atmega1284p -c stk500v1 -b 19200 -V -e -U lfuse:w:0xD6:m -U hfuse:w:0xDA:m -U efuse:w:0xFD:m -U flash:w:ATmegaBOOT_168_atmega1284p.hex:i

I merged both commands, by adding the fuse flags to the initial command, resulting it in (ran it from the command line):

/home/jabss/Desktop/arduino-1.6.9/hardware/tools/avr/bin/avrdude -C/home/jabss/Desktop/arduino-1.6.9/hardware/tools/avr/etc/avrdude.conf -v -patmega1284p -cstk500v1 -P/dev/ttyUSB0 -b19200 -Uflash:w:/root/.arduino15/packages/Sanguino/hardware/avr/1.0.0/bootloaders/optiboot/optiboot_atmega1284p.hex:i -Ulock:w:0x0F:m -V -e -U lfuse:w:0xD6:m -U hfuse:w:0xDA:m -U efuse:w:0xFD:m

I'm now able to upload a complete Marlin Firmware with no problem.

Now the question is if the fuses from [reprap.org] are correct, (LF=D6 / HF=DA / EF=FD) as it seems people from this forum are reporting to be using different ones.

Hope this helps people in the same situation as myself.

Cheers,
Joao

Re: 1284P Fuse settings confirmation?

$
0
0
So, does it mean that the fuses stated in [reprap.org] are wrong ?

I'm refering to a AT1284p in a sanguinololu 1.3 board.

Thanks,
Joao

Re: 1284P Fuse settings confirmation?

$
0
0
Fuses are dependent on size of boot loader, which is dependent on what boot loader you use

Plug the values into this fuse calculator to see whats changing between the various options you see, to determine what features are on/off

[eleccelerator.com]

Ive taken a look at above they recommend DC, D7, FD, vs D6, DA, FD on SL page
(all information from the above page)

The low fuses change the Oscillator
0xDC is for external Crystal Oscillator, start up time 258 CK + 64MS
0xD6 is for full swing oscillator, start up time 258 CK + 64ms, Ceramic resonator

Since the SL has a Ceramic resonator, D6 looks correct to me.

The high fuses here change the boot loader size
0xD7 is 512 bytes, also elected to Preserve EEPROM memory through the Chip Erase cycle
0xDA is 2048 bytes, EEPROM memory is erased through the Chip Erase cycle

Extended fuses, set the brown out voltage level
0xFD 2.7v

Sanguinololu 1.3a Huxley connection problem

$
0
0
Hi all,

I posted this in the Huxley section but figured it should maybe be in the Sanguinololu section. I apologize if I shouldn't do that.

I recently was given a Huxley 3d printer - the one from the original kickstarter.

I am trying to connect it to the computer. But windows simply does not pick it up. It doesn't recognize that anything is connected via the USB. The red light does come on, on the Sanguinololu 1.3a board.

I really don't know what I am doing to be honest, but I assume that there is probably something wrong with the board? I have tried to install all the drivers that I can find but no luck.

Any ideas would be greatly appreciated!

Thanks,

Damian
Viewing all 1033 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>