Bukobot 3D Printer Forum

News: Added the Bukobot Parts List (BOM) to Wiki at http://bukobot.com/bukobot-parts-list
Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: Rebuild Bukov2Duo FW  (Read 890 times)

garloff

  • Newbie
  • *
  • Posts: 6
  • Open Source Veteran
    • View Profile
Rebuild Bukov2Duo FW
« on: November 29, 2013, 11:19:33 PM »
Hi,

I need to rebuild the Marlin FW on my brand new Buko v2 Duo with BAUDRATE 230400 (or 115200) in order to make RepetierHost work on my Linux machine.(Mono has a stupid limitation to only support std. serial speeds.)
(Given that a significant fraction of 3D printer users are Linuxers, I wonder why 230400 is not the default if on the other hand RepetierHost is the recommended software for diagnosing and printing.)

I'm struggling with it ...

1. I rediffed the changes at http://bukobot.com/bukobot-marlin-firmware-file-changes against current git Marlin_v1 branch and built and uploaded with arduino1.0.5. The resulting firmware looked fine at first, but did not execute any move commands. Also a number of parameters were different from the FW build that was shipped. gettemp in pronsole also only displayed one temperature (0C) as opposed to both Extr.1 and Hotbed temp in the original FW.
2. Tried to reompile the 2012-10-10 firmware referenced at http://bukobot.com/bukobot-marlin-configuration with no more luck.
3. Got FW sources from https://github.com/whosawhatsis/Marlin/archive/Bukobot_config.zip and uploaded with Arduino. Same results. No movements, only one temperature.

BTW: RepetierHost now seem seems to talk to the Buko, but no more success doing anything than with pronsole.

Using 3 and fixing up the PID temperature coeffs to match the orig firmware, Ihere's what I get:


garloff@nehalem:/casa/Hardware/RepRap/Printrun-master
  • $ ./pronsole.py

Welcome to the printer console! Type "help" for a list of available commands.
uninitialized> connect /dev/ttyUSB3 230400
start         
Printer is now online
External Reset
Marlin 1.0.0   
Last Updated: 2013-03-08 | Author: Deezmaker+KG
Compiled: Nov 29 2013
Free Memory: 4594  PlannerBufferBytes: 1232
Using Default settings:
Steps per unit:
M92 X111.98 Y111.98 Z6400.00 E630.00
Maximum feedrates (mm/s):
M203 X500.00 Y500.00 Z3.50 E45.00
Maximum Acceleration (mm/s2):
M201 X800 Y800 Z100 E10000
Acceleration: S=acceleration, T=retract acceleration
M204 S3000.00 T3000.00
Advanced variables: S=Min feedrate (mm/s), T=Min travel feedrate (mm/s), B=minimum segment time (ms), X=maximum xY jerk (mm/s),  Z=maximum Z jerk (mm/s)
M205 S0.00 T0.00 B20000 X18.00 Z0.40 E5.00
Home offset (mm):
M206 X0.00 Y0.00 Z0.00
PID settings: 
M301 P8.29 I0.37 D45.91
SD init fail   
PC> gettemp
Hotend: 0/0
PC> move z 10
PC> home
Error:Line Number is not Last Line Number+1, Last Line: 0
PC> [ERROR] Error:Line Number is not Last Line Number+1, Last Line: 0

Resend: 1     
PC> home
Error:Line Number is not Last Line Number+1, Last Line: 0
PC> [ERROR] Error:Line Number is not Last Line Number+1, Last Line: 0

Resend: 1     
PC>


What's wrong here?
Has Diego not yet published the working FW sources for Bukov2?
-- Kurt

garloff

  • Newbie
  • *
  • Posts: 6
  • Open Source Veteran
    • View Profile
Re: Rebuild Bukov2Duo FW
« Reply #1 on: November 29, 2013, 11:37:21 PM »
One additional detail: I I build from recent git (with the Configuration changes merged), I get an error in addition after connecting with pronsole.py:

[...]
PID settings: 
M301 P8.29 I0.37 D45.91
Error:1       
PC> [ERROR] Error:1

: Extruder switched off. MINTEMP triggered !
Error:Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)
PC> [ERROR] Error:Printer stopped due to errors. Fix the error and use M999 to restart. (Temperature is reset. Set it after restarting)
-- Kurt

whosawhatsis

  • Administrator
  • Hero Member
  • *****
  • Posts: 598
    • View Profile
    • Whosawhatsis on G+
Re: Rebuild Bukov2Duo FW
« Reply #2 on: November 30, 2013, 02:10:42 AM »
Step 1: download the pre-configured firmware here: https://github.com/whosawhatsis/Marlin/tree/Bukobot_config
Step 2: uncomment line #7 of configuration.h (#define SERIAL_COMPATIBILITY).
Step 3: upload to your board (Arduino version 1.0.3 is recommended).

Edit: Oh, for Duo, you'll also want to uncomment line 4# (#define DUO). Forgot about this because I've been working with the newer test branch at https://github.com/whosawhatsis/Marlin/tree/bukobot_update, which includes automatic Duo selection.
« Last Edit: November 30, 2013, 02:25:35 AM by whosawhatsis »

garloff

  • Newbie
  • *
  • Posts: 6
  • Open Source Veteran
    • View Profile
Re: Rebuild Bukov2Duo FW
« Reply #3 on: November 30, 2013, 03:31:12 PM »
Thanks for the pointer!
I tried a couple of things.
What seems to have made the difference is the BAUDRATE.
Don't try to set speed to 230400 -- 115200 works (as does 250000). Not sure why this is ...

Followup question:
The Marlin FW that was preinstalled reported
PID settings:
M301 P8.29 I0.37 D45.91
while the one produced from above git tree has
M301 P87.89 I3.88 D664.28

Which is correct?
Should I edit DEFAULT_Kp and friends to match the one from the preinstall FW?
-- Kurt

whosawhatsis

  • Administrator
  • Hero Member
  • *****
  • Posts: 598
    • View Profile
    • Whosawhatsis on G+
Re: Rebuild Bukov2Duo FW
« Reply #4 on: November 30, 2013, 11:31:34 PM »
Oh, that branch is more out-of-date than I thought. Yes, P8.29 I0.37 D45.91 are the correct values. There's an additional "SPITFIRE" define in the current version, but I guess I made those edits in the copy of Marlin that's not connected to the repo and haven't filtered the updates back. The bukobot_update branch has those updates, and it will replace the other one once it is sufficiently tested.

garloff

  • Newbie
  • *
  • Posts: 6
  • Open Source Veteran
    • View Profile
Re: Rebuild Bukov2Duo FW
« Reply #5 on: December 01, 2013, 08:49:23 AM »
I can test the bukobot_update branch... if that's a good idea...
I guess the pre-installed FW came from it anyway...  (maybe the git version should be referenced in
the VERSION string?)
Anything I should be looking out for with bukobot_update branch (except for setting SPITFIRE) when building and testing?

Another note:
For my v2Duo,  X/Y/Z_MAX_POS values of 225, 220 and 205 would seem correct - any reason to not put these in there?

Thx!
-- Kurt

garloff

  • Newbie
  • *
  • Posts: 6
  • Open Source Veteran
    • View Profile
Re: Rebuild Bukov2Duo FW
« Reply #6 on: December 04, 2013, 12:09:17 AM »
Just for the record:
- I built firmware from bukobot_update, setting Spitfire and SERIAL_COMPATIBILITY (BAUDRATE 115200)
- I changed X/Y/Z_MAX_POS to be 231/216/210 respectively (that's the most I can get out of my v2Duo)
- I lowered DEFAULT_XYJERK to 18.5 and the PREHEAT_TEMPs a bit.
- I reenabled SDSUPPORT
and tested the resulting FW with http://www.thingiverse.com/thing:5382/ (with PLA on glass plate).

Worked like a charm.
-- Kurt

whosawhatsis

  • Administrator
  • Hero Member
  • *****
  • Posts: 598
    • View Profile
    • Whosawhatsis on G+
Re: Rebuild Bukov2Duo FW
« Reply #7 on: December 07, 2013, 08:32:12 PM »
Thanks for mentioning the SDSUPPORT thing. That must have gotten lost when merging config files. Most of the testing I've done of this branch is with VIKI enabled, which also enableds SDSUPPORT, but it should be enabled for all of our boards.

 

BloQcs design by Bloc
SMF 2.0.3 | SMF © 2011, Simple Machines