Boy did I screw up !

This topic contains 28 replies, has 3 voices, and was last updated by  Ryan 3 months ago.

Viewing 29 posts - 1 through 29 (of 29 total)
  • Author
    Posts
  • #61875

    Ron Millsap
    Participant

    I could use a little help please.

    Last week I started looking at Estlcam. Today I decided to see if Estlcam could talk to my build. I have a Rambo with dual end stops and a full LCD. I also have a raspberry Pi hooked up running CNCjs.

    Yesterday EVERYTHING was working just fine. After my adventures today during which I tried to run the Estlcam setup I bricked it all. Where it all went wrong was when I tried to run “Setup/CNC Controller/Program Controller”. Everything “seemed” to work but there was no machine movement. So I did a booboo and shut it all down rather than using the “Restore Controller” button in Estlcam. Now I have no LCD and no machine movement either from the LCD knob or through CNCjs even though CNCjs appears to be working without error.

    Once I realized I shouldn’t have shut it down I figured it was too late and Id have to re-flash the Rambo. I tried the following firmware files:

    Marlin-bugfix-2.0.x

    Marlin-MPCNC_Rambo_T8_16T_LCD_DualEndstop

    by following this guide

    https://www.v1engineering.com/marlin-firmware/

    The first one compiles and uploads but I still don’t have functionality with the LCD or CNCjs.

    The second one won’t compile and I get the following error:

    Multiple libraries were found for “U8glib.h”

     Used: C:\Users\ronmillsap\Documents\Arduino\libraries\U8glib

     Not used: C:\Users\ronmillsap\AppData\Local\Arduino15\packages\rambo\hardware\avr\1.0.1\libraries\U8glib

    fork/exec C:\Users\ronmillsap\AppData\Local\Arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2/bin/avr-gcc.exe: The filename or extension is too long.

    Error compiling for board RAMBo.

    Anybody have any ideas what I’m doing wrong?

    #61876

    Ryan
    Keymaster

    Just before the actual how to flash part of the firmware page there is a very important set of instructions for Marlin 2.0 firmware.

    Beta Pre-Release Firmware

    If you like to be more up to date with the Newest Marlin features, I have all my most recent updates here.

    Github pre-configured.

    Right now flashing Marlin 2.0 requires an Arduino IDE edit, when this is fixed I will update this.

    You can use the nightly (1.8.6), the beta does not work now 3/20/18.

    • Open arduino
    • File/Preferences
    • Make note of the directory at the bottom, “more preferences”
    • Open that file with notepad
    • 3rd line down, “build.path=c:\tmp” works for me…
    • Todd posted some pics – in the forums.
    1 user thanked author for this post.
    #61878

    Ron Millsap
    Participant

    Thanks Ryan! Which firmware version should I be using?

    I remember seeing “Bugfix” when I would start it up before, is that the right one ?

    #61879

    Ron Millsap
    Participant

    Oh, I get it, the “Marlin” vs “Bugfix” names screwed me up. Sorry

    #61880

    Ron Millsap
    Participant

    Ok, I did that, still not working.

    Same thing. Bugfix2.0 compiles and uploads but doesnt fix the problem.

    Marlin-MPCNC_Rambo_T8_16T_LCD_DualEndstop gives me this when trying to compile.

    Archiving built core (caching) in: C:\Users\RONMIL~1\AppData\Local\Temp\arduino_cache_117660\core\core_rambo_avr_rambo_3ad5e6b5a02ffa124c7188ad46be603b.a
    sketch\src\backtrace\backtrace.cpp.o (symbol from plugin): In function `backtrace()’:</h6>
    <h6>(.text+0x0): multiple definition of `backtrace()’
    sketch\src\HAL\backtrace\backtrace.cpp.o (symbol from plugin):(.text+0x0): first defined here
    c:/users/ronmillsap/appdata/local/arduino15/packages/arduino/tools/avr-gcc/4.9.2-atmel3.5.4-arduino2/bin/../lib/gcc/avr/4.9.2/../../../../avr/bin/ld.exe: Disabling relaxation: it will not work with multiple definitions
    collect2.exe: error: ld returned 1 exit status
    Multiple libraries were found for “U8glib.h”
    Used: C:\Users\ronmillsap\Documents\Arduino\libraries\U8glib
    Not used: C:\Users\ronmillsap\AppData\Local\Arduino15\packages\rambo\hardware\avr\1.0.1\libraries\U8glib
    exit status 1
    Error compiling for board RAMBo.
    #61881

    Ryan
    Keymaster

    You are using the “Hourly” build of arduino and changed the directory to c:\TMP?

    #61899

    Ron Millsap
    Participant

    You are using the “Hourly” build of arduino and changed the directory to c:\TMP?

    Yes, I couldn’t remember the last time I updated so before i answered you I went back, uninstalled Arduino, then downloaded the build thats out there right now (June 18, 9:13:39 GMT).

    And yes I edited the preferences file to add “build.path=c:\tmp”. Then for the eighth time today I uploaded “bugfix_2.0”. No errors this time but still no machine movement and still no LCD.

    CNCjs on my raspberry pi thinks everything is hunky-dory to I’m quite convinced that I bricked my Rambo.

    Can I buy another one from you?

    #61900

    Ryan
    Keymaster

    Yes, I couldn’t remember the last time I updated so before i answered you I went back, uninstalled Arduino, then downloaded the build thats out there right now (June 18, 9:13:39 GMT).

    Hourly, not the current, https://www.arduino.cc/download.php?f=/arduino-nightly-windows.zip

    And yes I edited the preferences file to add “build.path=c:\tmp”. Then for the eighth time today I uploaded “bugfix_2.0”. No errors this time but still no machine movement and still no LCD.

    Double check that it is there. It only sticks if you do it while arduino is closed.

     

    CNCjs on my raspberry pi thinks everything is hunky-dory to

    Lets leave the raspberry pi out of it, way too much about this that I can not understand.. Use repetier or an lcd to test.

     

    I’m quite convinced that I bricked my Rambo.

    Highly doubt it. To verify just flash the regular not dual endstop Marlin v1…https://www.v1engineering.com/wp-content/uploads/2017/08/MPCNC813FullRAmbo_GLCD_T8.zip

     

    1 user thanked author for this post.
    #61903

    Ron Millsap
    Participant

    Yes, the most recent HOURLY. if you look at the Arduino download site theres an orange box showing “June 18 etc”

    Yes again, just like the instructions say, it must be done with arduino NOT running.

    I have been ignoring the Pi. I know because I have to use the Rambo USB port for both the Pi and Arduino. I only plugged up the Pi after flashing to see if its connecting to the Rambo. it does connect and the terminal window in CNCjs shows the communications. I can send commands to the Rambo from the Pi and the Rambo responds but the commands dont result in stepper movement at all. Also, no matter what i do the LCD is blank. Its lit but theres no info displayed.

     

    Ill go try the v1.0 now.

    #61904

    Ryan
    Keymaster

    The arduino ide flashes with no errors now, and your LCD worked before?

    #61905

    Ron Millsap
    Participant

    The arduino ide flashes with no errors now, and your LCD worked before?

    Yes, 2.0 flashed with no errors however, the LCD has NOT worked throughout this whole mess and still doesn’t.

    By the way when I looked at the terminal in Arduino IDE it showed that “bug fix 2.0” was running.

    #61907

    Ryan
    Keymaster

    Swap your LCD cables, as in turn them around, a few went out backwards.

    #61910

    Ron Millsap
    Participant

    I went into IDE and sent a few commands in the IDE terminal and got the results below. It shows 3 end stops (bugfix 2.0) AND it shows they are triggered when physically they are NOT.

    start
    echo:Marlin bugfix-2.0.x

    echo: Last Updated: 2018-01-20 | Author: (none, default config)
    echo:Compiled: Jun 19 2018
    echo: Free Memory: 5548 PlannerBufferBytes: 1232
    echo:Hardcoded Default Settings Loaded
    echo: G21 ; Units in mm (mm)

    echo:Filament settings: Disabled
    echo: M200 D3.00
    echo: M200 D0
    echo:Steps per unit:
    echo: M92 X80.00 Y80.00 Z4000.00 E500.00
    echo:Maximum feedrates (units/s):
    echo: M203 X300.00 Y300.00 Z5.00 E25.00
    echo:Maximum Acceleration (units/s2):
    echo: M201 X3000 Y3000 Z100 E10000
    echo:Acceleration (units/s2): P<print_accel> R<retract_accel> T<travel_accel>
    echo: M204 P3000.00 R3000.00 T3000.00
    echo:Advanced: S<min_feedrate> T<min_travel_feedrate> B<min_segment_time_us> X<max_xy_jerk> Z<max_z_jerk> E<max_e_jerk>
    echo: M205 S0.00 T0.00 B20000 X10.00 Y10.00 Z0.30 E5.00
    echo:Home offset:
    echo: M206 X0.00 Y0.00 Z0.00
    echo:PID settings:
    echo: M301 P22.20 I1.08 D114.00
    ok
    ok
    ok
    ok
    Reporting endstop status
    x_min: TRIGGERED
    y_min: TRIGGERED
    z_min: TRIGGERED
    ok

    #61911

    Ron Millsap
    Participant

    Swap your LCD cables, as in turn them around, a few went out backwards.

    Already did that and yes mine WERE backwards and worked fine once I turned them around. but that was yesterday. Haven’t moved them in a week.

    #61912

    Ryan
    Keymaster

    That means you have Marlin 2.0 on your board but not the Dual end stop version and I’m assuming you have end stops plugged in. The logic is reversed for the non dual end stop version.

    #61913

    Ryan
    Keymaster

    Dual will show 5 endstops, adding an x2 and a y2.

    #61914

    Ron Millsap
    Participant

    Swapped them just now just for kicks, LCD was dark. Put them back the way they were, LCD lights, no text.

    #61915

    Ron Millsap
    Participant

    I have a stupid question. When I download a zip from your “git” do I unzip and use the files just as they are unzipped or am I missing something. I ask because I notice that the number of tabs in Arduino IDE have been decreasing with every new release to the point where now there’s just a “configuration.h” and a “configuration.adv” no other files. Is that how it’s supposed to be ?

    #61916

    Ron Millsap
    Participant

    One last question then I’m giving up. I see this echoed in the IDE terminal when I start the RAMBO. What does it mean and what if the “default hardcoded” settings have been screwed up by Estlcam?

    echo:Hardcoded Default Settings Loaded

    #61917

    Ryan
    Keymaster

    I have a stupid question. When I download a zip from your “git” do I unzip and use the files just as they are unzipped or am I missing something. I ask because I notice that the number of tabs in Arduino IDE have been decreasing with every new release to the point where now there’s just a “configuration.h” and a “configuration.adv” no other files. Is that how it’s supposed to be ?

    Unzip and use as is, This is the change in Marlin 2…better file organization. You still need all teh files so use the entire folder as is when unzipped, you would get errors if you did it wrong.

     

    I see this echoed in the IDE terminal when I start the RAMBO. What does it mean and what if the “default hardcoded” settings have been screwed up by Estlcam? echo:Hardcoded Default Settings Loaded

    Not sure, I have not seen this. anything you did by flashing estlcam , should have been reversed. Again you can make sure by flashing a 1.0 version and then back to 2.0, this swill clear the eeprom for sure.

     

    One last question then I’m giving up.

    Nope. Not going to let you do that. Just an hour ago you were convinced it was broken…we already saved more than $130, and I am sure you have learned a few things. Take a break if you need to but we will get you there.

     

    Swapped them just now just for kicks, LCD was dark. Put them back the way they were, LCD lights, no text.

    Cool, so orientation is correct, and we have proof it worked previously. It has to be loaded correctly or my firmware would not flash. Try physically swapping the cables. They do different things and there are different wires used. If there was all of the sudden a bad wire this might fix it.

     

    1 user thanked author for this post.
    #61921

    Ron Millsap
    Participant

    ok, i must have messee up the post about v1.0. I triedto flash 1.0 but when compilation started I got massive errors, see below. (Theres much more of the same errors repeating)

    Build options changed, rebuilding all
    In file included from sketch\MarlinConfig.h:26:0,

    from sketch\Marlin.h:36,

    from sketch\Marlin_main.cpp:223:

    pins_RAMBO.h:178:29: error: pasting “/* AUX-4*/” and “_RPORT” does not give a valid preprocessing token

    #define BEEPER_PIN 79 // AUX-4

    ^

    sketch\fastio.h:64:32: note: in definition of macro ‘_TOGGLE’

    #define _TOGGLE(IO) do {DIO ## IO ## _RPORT ^= _BV(DIO ## IO ## _PIN); } while (0)

    ^

    sketch\buzzer.h:62:7: note: in expansion of macro ‘TOGGLE’

    TOGGLE(BEEPER_PIN);

    ^

    sketch\buzzer.h:62:14: note: in expansion of macro ‘BEEPER_PIN’

    TOGGLE(BEEPER_PIN);

    ^

    pins_RAMBO.h:178:29: error: pasting “/* AUX-4*/” and “_PIN” does not give a valid preprocessing token

    #define BEEPER_PIN 79 // AUX-4

    ^

    sketch\fastio.h:64:59: note: in definition of macro ‘_TOGGLE’

    #define _TOGGLE(IO) do {DIO ## IO ## _RPORT ^= _BV(DIO ## IO ## _PIN); } while (0)

    ^

    sketch\buzzer.h:62:7: note: in expansion of macro ‘TOGGLE’

    TOGGLE(BEEPER_PIN);

    ^

    sketch\buzzer.h:62:14: note: in expansion of macro ‘BEEPER_PIN’

    TOGGLE(BEEPER_PIN);

    ^

    pins_RAMBO.h:178:29: error: pasting “/* AUX-4*/” and “_RPORT” does not give a valid preprocessing token

    #define BEEPER_PIN 79 // AUX-4

    ^

    sketch\fastio.h:62:41: note: in definition of macro ‘_WRITE’

    #define _WRITE(IO, v) do { if (&(DIO ## IO ## _RPORT) >= (uint8_t *)0x100) {_WRITE_C(IO, v); } else {_WRITE_NC(IO, v); }; } while (0)

    ^

    sketch\buzzer.h:70:7: note: in expansion of macro ‘WRITE’

    WRITE(BEEPER_PIN, LOW);

    ^

    sketch\buzzer.h:70:13: note: in expansion of macro ‘BEEPER_PIN’

    WRITE(BEEPER_PIN, LOW);

    ^

    pins_RAMBO.h:178:29: error: pasting “/* AUX-4*/” and “_WPORT” does not give a valid preprocessing token

    #define BEEPER_PIN 79 // AUX-4

    ^

    sketch\fastio.h:51:51: note: in definition of macro ‘_WRITE_C’

    {DIO ## IO ## _WPORT |= _BV(DIO ## IO ## _PIN); } \

    ^

    sketch\fastio.h:74:21: note: in expansion of macro ‘_WRITE’

    #define WRITE(IO,V) _WRITE(IO,V)

    ^

    sketch\buzzer.h:70:7: note: in expansion of macro ‘WRITE’

    WRITE(BEEPER_PIN, LOW);

    ^

    sketch\buzzer.h:70:13: note: in expansion of macro ‘BEEPER_PIN’

    WRITE(BEEPER_PIN, LOW);

    ^

    pins_RAMBO.h:178:29: error: pasting “/* AUX-4*/” and “_PIN” does not give a valid preprocessing token

    #define BEEPER_PIN 79 // AUX-4

    ^

    sketch\fastio.h:51:78: note: in definition of macro ‘_WRITE_C’

    {DIO ## IO ## _WPORT |= _BV(DIO ## IO ## _PIN); } \

    ^

    sketch\fastio.h:74:21: note: in expansion of macro ‘_WRITE’

    #define WRITE(IO,V) _WRITE(IO,V)

    ^

    sketch\buzzer.h:70:7: note: in expansion of macro ‘WRITE’

    WRITE(BEEPER_PIN, LOW);

    ^

    sketch\buzzer.h:70:13: note: in expansion of macro ‘BEEPER_PIN’

    WRITE(BEEPER_PIN, LOW);

     

    #61922

    Ryan
    Keymaster

    Try flashing 1.0 with the regular (non Nightly) arduino.

    This is all complicated because I screwed up and did not make a dual version of 1.0…just too many versions of Marlin to keep current.

    1 user thanked author for this post.
    #61923

    Ron Millsap
    Participant

    I’m working on cleanly reinstalling IDE and I’ll bench compile V1.0 when I’m done. If that works then I’ll try to get v2.0 flashed.  By the way, when I got my board I remember it showing “bug_fix-2.0” when I ran it. Is that the same file that’s in the pull down menu on your git-hub. I’m not sure how I got to a V2.0 without endstops cause I’ve allways had them installed and plugged in (and they all worked fine if fact this all started today because I made a new z probe cable and was going out to play.)

    #61924

    Ron Millsap
    Participant

    Try flashing 1.0 with the regular (non Nightly) arduino.

    This is all complicated because I screwed up and did not make a dual version of 1.0…just too many versions of Marlin to keep current.

    Ahh… sweet success! EVERYTHING is functioning 100% normal.

    I somehow messed up my Arduino installtion when I tried to use the hourly build. I uninstalled IDE then deleted all the left over configuration file then installed regular IDE 1.8.5. Then I bench compiled Marlin 1, it worked. then compiled Marlin 2 and it worked. So I went out to the shop, uploaded Marlin 1, it worked. Then uploaded Marlin 2 and all was back to normal. I didn’t use the “hourly build” but I did add the “build.path=c:\tmp” to the preferences file. I don’t know if it matters, I’m just trying to document what I did in the unfortunate event that someone else runs across this problem. I’m not sure how they could though cause I worked really hard and spent a lot of hours screwing this up !!!! LOL

    #61925

    Ryan
    Keymaster

    High five!

    It’s usually something odd like this. Glad you stuck with it, sorry it was so frustrating for you.

    1 user thanked author for this post.
    #61926

    Ron Millsap
    Participant

    High five!

    It’s usually something odd like this. Glad you stuck with it, sorry it was so frustrating for you.

    DUDE! Im the one who caused the problem! any frustration was with MY screw up, no need to be sorry about that.

    You know, I read a lot in this forum and see how much effort you put into helping users out. I dont know how you keep up and i dont know how you keep your cool with some of the reactions you get. I really appreciate your help Thanks Ryan.

    3 users thanked author for this post.
    #61927

    Ryan
    Keymaster

    Thanks that really means a lot.

    I enjoy this, I do get frustrated, but it all usually works out like this. Then everyone gets to smile and learn something. Pretty cool job, right?! You didn’t read the fine print though…now you have to jump in when someone has a similar issue. 😉

    1 user thanked author for this post.
    #61928

    Barry
    Participant

    Ryan is a very cool dude.

    2 users thanked author for this post.
    #61929

    Ryan
    Keymaster

    Awww Jeez, thanks. Gunna make me blush.

     

Viewing 29 posts - 1 through 29 (of 29 total)

You must be logged in to reply to this topic.