Sd won't load on boot



  • My sd is formatted using SD formatter to FAT32, cluster size default

    i have been using this duet for 6 months now and one fine day it stops working i had a problem with the Ethernet rj42 socket so i was using Ponterface for a while

    now i don't think its a hardware issue because M21 loads the sd and it reads everything but it just won't load on boot plus once it boots there's nothing happening to the stepper motors when I'm trying to control it from Ponterface, probably because config.g didn't load on boot. i dont know whats going on is it my config….?

    i even tried a different sd card

    a 4gb and a 16gb, both giving me the exact same result

    Connecting...
    Cannot initialise SD card 0: Card not foundRepRapFirmware for Duet Version 1.18.1 dated 2017-04-09
    Executing default.g (no configuration file found)...Error, not found
    RepRapFirmware for Duet is up and running.
    Printer is now online.
    SENDING:M503
    Configuration file not found!
    SENDING:M503
    Configuration file not found!
    SENDING:M20
    Begin file list
    NONE
    End file list
    SENDING:M21
    SDHC card mounted in slot 0, capacity 3.69Gb
    SENDING:M503

    ;M111 S0 ; Debug off
    M550 PRED ; Machine name (can be anything you like). With DHCP enabled connect to (example) http://reprapproormerod2 (machine name with no spaces).
    M551 Preprap ; Machine password (currently not used)
    M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0xED ; MAC Address
    ;M552 P0.0.0.0 ; uncomment for DHCP
    M552 P192.168.1.14 ; IP address, comment for DHCP
    M553 P255.255.255.0 ; Netmask
    M554 P192.168.1.1 ; Gateway, comment for DHCP
    M555 P2 ; Set output to look like Marlin
    ;M575 P1 B57600 S1 ; Comms parameters for PanelDue
    G21 ; Work in millimeters
    G90 ; Send absolute coordinates...
    M83 ; ...but relative extruder moves
    M574 X0 Y1 Z0 S1 ; set end-stop configuration (Y end-stop only, at low end, active high)
    M574 E01 S0
    M92 X80 Y80 Z400 ; Set axis steps/mm
    M906 X800 Y1000 Z800 E800 ; Set motor currents (mA)
    ;single nozzle build
    ;M563 P0 D0 H1 ; Define tool 0
    ;G10 P0 S0 R0 ; Set tool 0 operating and standby temperatures
    ;M92 E85.72 ; Set extruder steps per mm (single nozzle)
    ;M569 P0 S0 ; Set X axis direction
    ;single nozzle build electronic-port change to extruder2 on physical 1
    ;M563 P1 D1 H2 ; Define tool 1, uncomment if you have a dual color upgrade
    ;G10 P1 S0 R0
    ;M92 E85.72
    ;
    If you have a dual-nozzle build, remove or comment out the previous line, and uncomment the following 3 lines
    ;M563 P1 D1 H2 ; Define tool 1
    ;G10 P1 X19 S0 R0 ; Set tool 1 operating and standby temperatures
    ;M92 E420:420 ; Set extruder steps/mm (dual nozzle)
    ;M92 E85.72 ; Set extruder steps per mm
    ;
    If you have a modulated IR probe with on-board micro-controller, change P2 to P1 in the following
    M558 P2 ; Use a simple modulated Z probe (change to P1 for an intelligent Z probe)
    G31 Z1 P500 ; Set the probe height and threshold (put your own values here)
    ;*** If you have a Duet board with 1K thermistor series resistors, change R4700 to R1000 to the following M305 commands
    ;M305 P0 R4700 H0 L0 ; Put your own H and/or L values here to set the bed thermistor ADC correction
    ;M305 P1 R4700 H0 L0 ; Put your own H and/or L values here to set the first nozzle thermistor ADC correction
    ;M305 P2 R4700 H0 L0 ; Put your own H and/or L values here to set the second nozzle thermistor ADC correction
    ;*** Adjust the XY coordinates in the following M557 commands to suit your build and the position of the IR sensor
    M557 P0 X45 Y5 ; Four...
    M557 P1 X45 Y195 ; ...probe points...
    M557 P2 X200 Y195 ; ...for bed...
    M557 P3 X200 Y5 ; ...leveling
    M557 P4 X100 Y97.5 ; 5th probe point for leveling (uncomment this if you are using a dc42 differential IR probe)
    ;*** if you are using axis compensation, put the figures in the following command
    M556 S75 X0 Y0 Z0 ; Axis compensation here
    M201 X800 Y800 Z15 E1000 ; Accelerations (mm/s^2)
    M203 X15000 Y15000 Z100 E3600 ; Maximum speeds (mm/min)
    M566 X600 Y600 Z30 E20 ; Minimum speeds mm/minute
    M208 X200 Y


  • administrators

    If config.g is not read at boot time then the motor currents will not be set, which explains why the motors don't run.

    Is this a Duet 0.6 or 0.8.5 board? If so then it could be a problem with the Card Detect contact in the SD card socket, or the soldering of that pin to the main PCB.



  • i re-soldered the pins on to the pcb it still has the same effect its probably internal in the sd slot

    SENDING:M503
    Configuration file not found!
    SENDING:M503
    Configuration file not found!
    SENDING:M20
    Begin file list
    NONE
    End file list
    SENDING:M21
    SDHC card mounted in slot 0, capacity 3.69Gb
    SENDING:M503

    ;M111 S0 ; Debug off
    M550 PRED ; Machine name (can be anything you like). With DHCP enabled connect to (example)

    it reads every time on M21
    that's whats bugging me how come it did not read before ;(

    or
    could it be that my config is too big and it times out before reading it or something…?


  • administrators

    I can see two possibilities:

    1. A power supply issue. If the power voltage is rising very slowly, it is possible that the Duet is ready before the SD card is.

    2. The CD pin on the SD socket is not working, or not soldered properly to the PCB. This happens sometimes Duet 0.6 and older Duet 0.8.5 boards. It's the end pin at the row of pins on the back of the SD card socket, and under magnification it is easy to see whether the pin is actually soldered to the pad underneath or just resting on it. A bug in the ATSAM3X8E chip means that once the firmware has initialised the temperature sensor, the state of the CD pin no longer matters.

    I think #2 is much more likely.



  • ok thanks david
    ill look into it and get back to you



  • so i checked the connections and they seem good on the outside. Test came out negative so its probably contact problem is inside the sd slot itself i did them again just to make sure, and emailed t3p3 about replacements.

    ok the good news,
    i think i can still run without the glitch
    maybe by setting the entire config in a macro and then calling it, that should work for single runs
    till my replacements get here, thoughts..?

    or
    for smaller macro
    what can i add to the macro, what else has to set other than motor currents

    and is it possible some smd surrounding the sd is the cause, maybe the (R73) marked 473, it seems to be connected to the CD pin


  • administrators

    You can use 'M98 Pconfig.g' to run config.g from another macro.



  • even better …!

    thanks 😉



  • got a new sd card slot from t3p3 fixed it and it runs perfect, i checked out the old slot ….and it was bad contacts inside the sd slot.
    anyhow
    thanks to David & Roland for the assist
    🙂


Locked
 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.