GithubHelp home page GithubHelp logo

Comments (14)

Linusoderlind avatar Linusoderlind commented on May 6, 2024 2

Right, I could not help myself and wrote my own config.

I to had problems with flasing the Melzi with
make flash FLASH_DEVICE=/dev/ttyUSB0
but
avrdude -p atmega1284p -c avrisp -P /dev/ttyUSB0 -b 19200 -U flash:w:klipper.elf.hex
flashed fine.

I have yet to print anything but all axis homes and the extruder + hotend works. I have a TronXY X1 so I do not have a heated bed.

from klipper.

KevinOConnor avatar KevinOConnor commented on May 6, 2024 1

I have gotten the latest klipper code, and compiled the firmware for the 1284p chip, however I am still unable to have the RPi host connect to the ATMega chip. I have attached my klippy.log.

You have an extra zero in the baud field of your printer.cfg.

-Kevin

from klipper.

KevinOConnor avatar KevinOConnor commented on May 6, 2024

from klipper.

saullipton avatar saullipton commented on May 6, 2024

Thanks, that was quick! I have recompiled the firmware, however now I am unable to load the firmware onto the Arduino. I was never able to do it with your "make flash FLASH_DEVICE=/dev/ttyUSB0" script. I expect the make flash command uses the wrong (stk500v2) programmer for this board.
But instead last time I was able to get it to work using the bash command:

avrdude -p m1284p -c stk500v1 -P /dev/ttyUSB0 -b57600 -U flash:w:klipper.elf.hex

Now, I get the error:

avrdude: AVR device initialized and ready to accept instructions

Reading | | 0% 0.00savrdude: stk500_cmd(): programmer is out of sync

I will try a few more methods to flash the firmware into the board and let you know how it goes.
Thanks!

from klipper.

KevinOConnor avatar KevinOConnor commented on May 6, 2024

from klipper.

Linusoderlind avatar Linusoderlind commented on May 6, 2024

Could you add your configuration as an example file for Melzi as for Ramps and Rumba?

from klipper.

saullipton avatar saullipton commented on May 6, 2024

Linus,
I will do that for sure. However, I am still fighting my Atmel firmware upload issues. I will use another Arduino as ISP tomorrow and see where I get.
Thanks,
Saul

from klipper.

KevinOConnor avatar KevinOConnor commented on May 6, 2024

from klipper.

Linusoderlind avatar Linusoderlind commented on May 6, 2024

I did not need the -b 19200.

As I do not have a heated bed I have not tried that part of the config.
printer.cfg.txt

from klipper.

saullipton avatar saullipton commented on May 6, 2024

OK, I have made quite a bit of progress and am ready to get down to the nitty gritty.
Here are my hardware specifics:
I have an Alunar M505 board, which uses an Anet3D motherboard. This is a Melzi clone, from what I can gather. The chip is an Atmel 1284P.

To get to this point:

  • I had to burn a new bootloader onto the chip to get reliable firmware loading working. The optiboot bootloader works great. It uses a 115200 baud rate for firmware downloads.
  • My firmware download command is this now:
    avrdude -c arduino -p m1284p -P /dev/ttyUSB0 -b 115200 -U flash:w:klipper.elf.hex:i
  • I have used Linus' printer.cfg and also tried my own version.

I have gotten the latest klipper code, and compiled the firmware for the 1284p chip, however I am still unable to have the RPi host connect to the ATMega chip. I have attached my klippy.log.
klippy.log

Do you have any suggestions for getting more verbose diagnostics on the host <> printer communications?
Thanks,
Saul

PS. Here is the source I have used to configure my pinouts. http://reprap.org/wiki/Melzi Would this be for the PA- or ar- style pin assignments in printer.cfg? I suspect ar-.

Melzi Arduino Pin Numbers
#define X_STEP_PIN 15
#define X_DIR_PIN 21
#define X_MIN_PIN 18

#define Y_STEP_PIN 22
#define Y_DIR_PIN 23
#define Y_MIN_PIN 19

#define Z_STEP_PIN 3
#define Z_DIR_PIN 2
#define Z_MIN_PIN 20

#define E0_STEP_PIN 1
#define E0_DIR_PIN 0

#define LED_PIN 27

#define FAN_PIN 4

#define HEATER_0_PIN 13 // extruder

#define HEATER_BED_PIN 10 // bed (change to 12 for breakout pin on header)
#define X_ENABLE_PIN 14
#define Y_ENABLE_PIN 14
#define Z_ENABLE_PIN 26
#define E0_ENABLE_PIN 14

#define TEMP_0_PIN 7 // Analogue pin
#define TEMP_BED_PIN 6 // Analogue pin
#define SDSS 31

#define SLAVE_CLOCK 16

from klipper.

saullipton avatar saullipton commented on May 6, 2024

Womp womp. Haha thanks.

from klipper.

KevinOConnor avatar KevinOConnor commented on May 6, 2024

from klipper.

saullipton avatar saullipton commented on May 6, 2024

Update: Looks like everything is working swimmingly. I am printing out a test print now, looks great. Here is my config:
printer.cfg.txt
This is for a standard Alunar M505 / Anet A8, except with changed X step direction and extruder settings (for an E3Dv6 upgrade). The added heated bed is the only major change from Linus' cfg.
I think we can consider this request closed, and work on further items elsewhere.

THANKS!
Saul

from klipper.

nkia-christoph avatar nkia-christoph commented on May 6, 2024

For my old Zonestar P802Q it worked with:
sudo avrdude -c arduino -p m1284p -P /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A104LXET-if00-port0 -U flash:w:out/klipper.elf.hex:i -v -b 57600

from klipper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.