Comments (14)
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.
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.
from klipper.
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.
from klipper.
Could you add your configuration as an example file for Melzi as for Ramps and Rumba?
from klipper.
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.
from klipper.
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.
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.
Womp womp. Haha thanks.
from klipper.
from klipper.
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.
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)
- [FR] CANbus for LPC176x boards HOT 1
- issuses with gd32f303 chip on ender3 v2 neo HOT 1
- Unable to connect HOT 1
- Deadlock when using exclude_objects containing umlaut. HOT 4
- Ender 3, Klipper/Mainsail no longer booting HOT 1
- Request for a command to wait for a variable update HOT 1
- X axis movement inverted after TUNING_TOWER command for pressure advance configuration HOT 1
- MCU Problem HOT 4
- Ender 3 S1/Pro min_mesh value too high HOT 2
- ADC out of range issue and improvements HOT 1
- [Enhancement] M300 Support HOT 1
- Mks robin nano v3 provides only 150k steps per second HOT 1
- Wrong information about generating hex because its generating binary file HOT 1
- Apparent regression in variable PA HOT 6
- Hi, is last_stoep_clock a uint64_t value or a uint32_t one? or it's by designed to converted from uint64_t to uint32_t inexplicitly? HOT 1
- Probe pin out in Octopus Pro v1.1 HOT 1
- Manta m5p endstop stuck on HOT 1
- Klipper fails to build with Apple's cpp HOT 19
- Klipper flashing but not responding on the GTM332 Mini S HOT 1
- Hardcoded path in src/linux/main.c for sched.h HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from klipper.