1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

Solved R1+ not flashing firmware with Arduino software

Discussion in 'Troubleshooting' started by Rat_Patrol, Jan 9, 2017.

Thread Status:
Not open for further replies.
  1. Rat_Patrol

    Rat_Patrol Member

    Joined:
    Dec 14, 2016
    Messages:
    178
    Likes Received:
    24
    Have arduino software up, sketch up, newest firmware up (with my much slower acceleration, jerk settings and new steps p/m since calibrating my extruder) and I tell the sketch to upload.

    Then I get a success message, except it didn't. I startup S3D and drive the M503 and the old settings are still in there. Did it again, still tells me upload complete, nothing. Connecting to the right arduino board, Com 5, etc. I ask arduino to pull up info on the board, it does succesfully and gives serial number of the board, etc..

    Thoughts?
     
  2. Geof

    Geof Volunteer Moderator
    Staff Member

    Joined:
    Nov 9, 2015
    Messages:
    6,757
    Likes Received:
    2,339
    You have to clear eeprom M500 M502
     
    mark tomlinson likes this.
  3. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,915
    Likes Received:
    7,338
    Yep, the EEPROM will bite you. Reload it from the firmware after modification of the firmware.
     
  4. Rat_Patrol

    Rat_Patrol Member

    Joined:
    Dec 14, 2016
    Messages:
    178
    Likes Received:
    24
    OK, did M500 then M502, then used arduino to upload the sketch. Still old settings.
     
  5. Rat_Patrol

    Rat_Patrol Member

    Joined:
    Dec 14, 2016
    Messages:
    178
    Likes Received:
    24
    Here is the cut/paste from comms with the board. Shows modified, but new settings are not in there. The extruder steps per mm are off, and the jerk values are not correct.

    Attempting connection at \\.\COM5...

    READ: start

    Connected to machine!

    READ: echo:Marlin1.0.0

    Marlin1.0.0

    SENT: T0

    READ: echo: Last Updated: Jan 9 2017 11:27:24 | Author: (RoBo 3D, R1+ Single Extruder)

    Last Updated: Jan 9 2017 11:27:24 | Author: (RoBo 3D, R1+ Single Extruder)

    READ: Compiled: Jan 9 2017

    READ: echo: Free Memory: 3964 PlannerBufferBytes: 1232

    Free Memory: 3964 PlannerBufferBytes: 1232

    READ: echo:Stored settings retrieved

    Stored settings retrieved

    READ: echo:SD card ok

    READ: echo:Active Extruder: 0

    Active Extruder: 0

    READ: ok

    SENT: M105

    READ: ok T:59.4 /0.0 B:33.9 /0.0 T0:59.4 /0.0 @:0 B@:0

    SENT: M503

    READ: echo:Steps per unit:

    Steps per unit:

    READ: echo: M92 X80.00 Y80.00 Z800.00 E833.00

    M92 X80.00 Y80.00 Z800.00 E833.00

    READ: echo:Maximum feedrates (mm/s):

    Maximum feedrates (mm/s):

    READ: echo: M203 X500.00 Y500.00 Z5.00 E25.00

    M203 X500.00 Y500.00 Z5.00 E25.00

    READ: echo:Maximum Acceleration (mm/s2):

    Maximum Acceleration (mm/s2):

    READ: echo: M201 X500 Y500 Z100 E2000

    M201 X500 Y500 Z100 E2000

    READ: echo:Acceleration: S=acceleration, T=retract acceleration

    Acceleration: S=acceleration, T=retract acceleration

    READ: echo: M204 S500.00 T3000.00

    M204 S500.00 T3000.00

    READ: echo: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), E=maximum E jerk (mm/s)

    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), E=maximum E jerk (mm/s)

    READ: echo: M205 S0.00 T0.00 B20000 X17.00 Z0.40 E5.00

    M205 S0.00 T0.00 B20000 X17.00 Z0.40 E5.00

    READ: echo:Home offset (mm):

    Home offset (mm):

    READ: echo: M206 X0.00 Y0.00 Z0.00

    M206 X0.00 Y0.00 Z0.00

    READ: echo:pID settings:

    PID settings:

    READ: echo: M301 P22.20 I1.08 D114.00

    M301 P22.20 I1.08 D114.00

    READ: ok

    SENT: M105

    READ: ok T:59.2 /0.0 B:33.7 /0.0 T0:59.2 /0.0 @:0 B@:0

    Disconnected.
     
  6. Rat_Patrol

    Rat_Patrol Member

    Joined:
    Dec 14, 2016
    Messages:
    178
    Likes Received:
    24
    Should I just use the M commands to put my values back in and call it a day?
     
  7. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,915
    Likes Received:
    7,338
    You need to do the EEPROM refresh after loading the firmware.

    Here are the commands:

    ==== EEPROM GCodes ====

    M500 Store current settings in EEPROM for the next startup or M501.
    M501 Read all parameters from EEPROM. (Or, undo changes.)
    M502 Reset current settings to defaults, as set in Configurations.h. (Follow with M500 to reset the EEPROM too.)

    So after firmware is fixed you need the M502 and an M500 at some point for them to work.
     
  8. mark tomlinson

    mark tomlinson ༼ つ ◕_ ◕ ༽つ
    Staff Member

    Joined:
    Feb 21, 2013
    Messages:
    23,915
    Likes Received:
    7,338
    Do them all in that order.
    Flash firmware
    M502
    M500
     
    Geof likes this.
  9. Rat_Patrol

    Rat_Patrol Member

    Joined:
    Dec 14, 2016
    Messages:
    178
    Likes Received:
    24
    Thanks, looks good!
     
Thread Status:
Not open for further replies.

Share This Page