Welcome! Log In Create A New Profile

Advanced

Malyan M150 - latest firmware

Posted by karcio 
Malyan M150 - latest firmware
June 12, 2018 06:10AM
Hi Guys

I have Malyan M150 with stock firmware. So far I was happy with that but I've bought autolevel sensor and for this feature I need new fw.

Could you please answer my questions?
  1. can I download latest fw from github or should I find dedicated fw for my printer?
  2. is it enough to edit just two files Configuration.h and Configuration_adv.h ?
  3. can I use latest arduino ide (fedora 28) for compiling?

is it all I need to configure?
[marlinfw.org] -> for printer
[marlinfw.org] -> probe

Edited 2 time(s). Last edit at 06/12/2018 07:33AM by karcio.


karcio
Re: Malyan M150 - latest firmware
June 12, 2018 08:44AM
I personally would try to find as much information I could before I would make the upgrade to allow for a smooth transition to your upgrade.
Do you know the configuration settings, Or can you read them from your current firmware.

Well either way Here is a start you may want to look at the following, hope it helps.

[www.thingiverse.com]

I would ignore the included hex files and go straight to the Marlin's Source file for the configuration information .

Edited 1 time(s). Last edit at 06/12/2018 08:50AM by Roberts_Clif.
Re: Malyan M150 - latest firmware
June 12, 2018 11:26AM
Quote
Roberts_Clif
Do you know the configuration settings, Or can you read them from your current firmware.

Yeah, this is problem, stock firmware came with printer, so I have no any configuration saved. I can't backup I guess sad smiley
I think I can use gcode to read firmware,steps, etc from printer, not sure if I can read anything else from printer. Also not sure if I can check mainboard name from printer. I guess I will have to check inside printer.

Thank you for link, I will read it. I'm not planing use hex because I have to do some configuration before I upload firmware,

Edited 1 time(s). Last edit at 06/12/2018 11:49AM by karcio.


karcio
Re: Malyan M150 - latest firmware
June 12, 2018 07:59PM
I use OctoPrint with a raspberry Pi and can send G & M codes to the printer.
If you have a way to send these codes you may try to send

M503 ; Print current settings

This may give you all the values

Edited 1 time(s). Last edit at 06/12/2018 07:59PM by Roberts_Clif.
Re: Malyan M150 - latest firmware
June 13, 2018 03:38AM
Quote
Roberts_Clif
I use OctoPrint with a raspberry Pi and can send G & M codes to the printer.
If you have a way to send these codes you may try to send

M503 ; Print current settings

This may give you all the values


@Roberts_Clif
Yes, I have the way to send gcode using Pronterface.
Thank you very much for help.

Edited 1 time(s). Last edit at 06/13/2018 03:41AM by karcio.


karcio
Re: Malyan M150 - latest firmware
June 14, 2018 03:57AM
Ok, small update

I was able to compile last merlin firmware with my changes, just one question. For this I have do add mainboard to board manager [github.com]


I had to select my mainboard in configuration.h

#define BOARD_MELZI

in Arduino I select board as Sanguinom

not sure what select as programmer I was trying few and finally I got

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00

any idea?
all the time.


karcio
Re: Malyan M150 - latest firmware
June 14, 2018 04:13AM
check you have set the correct processor 1284p 16mhz (at a guess) check number on large chip

programmer is for a hardware programmer, its ignored.. (you have to select upload with programmer from the menu to use this)
Re: Malyan M150 - latest firmware
June 14, 2018 04:53PM
Hi

So, I've check chip on my mainboard - ATMEGA 1284P AU1524

in Arduino my config looks:
Board: Sanguino
Processor: ATmega 1284 or ATmega1284P (16Mhz)

Compile success, but upload does not
Using Port : /dev/ttyUSB0
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00


I was trying from terminal but slower -b57600:

[karcio@localhost Marlin]$ /home/karcio/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9/bin/avrdude -C/home/karcio/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9/etc/avrdude.conf -v -patmega1284p -carduino -P/dev/ttyUSB0 -b57600 -D -Uflash:w:/tmp/arduino_build_953048/Marlin.ino.hex:i

avrdude: Version 6.3, compiled on Jan 17 2017 at 11:00:16
Copyright (c) 2000-2005 Brian Dean, [www.bdmicro.com]
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "/home/karcio/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino9/etc/avrdude.conf"
User configuration file is "/home/karcio/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port : /dev/ttyUSB0
Using Programmer : arduino
Overriding Baud Rate : 57600
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding

not sure what am I doing wrong sad smiley

[karcio@localhost Marlin]$ ll /dev/ttyUSB0
crw-rw----. 1 root dialout 188, 0 Jun 14 21:50 /dev/ttyUSB0

I am in dialout group

[karcio@localhost Marlin]$ groups karcio
karcio : karcio wheel dialout lock plugdev bumblebee

Edited 2 time(s). Last edit at 06/14/2018 04:55PM by karcio.


karcio
Re: Malyan M150 - latest firmware
June 14, 2018 11:02PM
Looks good. Probably not you...

also try 38400 as upload baud rate

Many manufacturer just don't put a boot loader on the chip so only way to program it is with avrisp to either put a bootloader on it or upload the firmware directly

Edited 1 time(s). Last edit at 06/14/2018 11:04PM by Dust.
Re: Malyan M150 - latest firmware
June 17, 2018 04:42PM
I was trying all speeds - still the same sad smiley

Could you please explain how to use avrisp or upload firmware directly?

Do I need to use those?
[s8.postimg.cc]

Edited 2 time(s). Last edit at 06/17/2018 04:56PM by karcio.


karcio
Re: Malyan M150 - latest firmware
June 17, 2018 08:30PM
Hi, finally found how to upload firmware.

Just need to do this

-Power off printer.
-Press center button on panel.
-Power up printer, please keep center button pressed.
-Release center button.
-Look up COM port from windows device manager. Type below command into windows console: avrdude.exe -v -p atmega1284p -c arduino -P com4 -b 57600 -V -U flash:w:marlin.hex
-Reboot printer if necessary.

All from this page, http://wiki.malyansys.com/doku.php?id=firmware_update_procedure


karcio
Re: Malyan M150 - latest firmware
June 17, 2018 08:51PM
It appears you hit the mother load ( "Gold mine" ) on that one web Site.
Re: Malyan M150 - latest firmware
June 17, 2018 11:33PM
Yes a device like that or annother arduno doing the same job.

please read [www.arduino.cc]
Sorry, only registered users may post in this forum.

Click here to login