Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. Wulfsta
    3. Best
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 20
    • Best 4
    • Controversial 0
    • Groups 0

    Best posts made by Wulfsta

    • RE: Raspberry Pi 4 to Toolboard 1LC with OpenOCD

      I have it working with the following bash script:

      SWCLK=25
      SWDIO=24
      SRST=18
      
      echo "Exporting SWCLK and SRST pins."
      echo $SWCLK > /sys/class/gpio/export
      echo $SRST > /sys/class/gpio/export
      echo "out" > /sys/class/gpio/gpio$SWCLK/direction
      echo "out" > /sys/class/gpio/gpio$SRST/direction
      
      echo "Setting SWCLK low and pulsing SRST."
      echo "0" > /sys/class/gpio/gpio$SWCLK/value
      echo "0" > /sys/class/gpio/gpio$SRST/value
      echo "1" > /sys/class/gpio/gpio$SRST/value
      
      echo "Unexporting SWCLK and SRST pins."
      echo $SWCLK > /sys/class/gpio/unexport
      echo $SRST > /sys/class/gpio/unexport
      
      echo "Ready for OpenOCD."
      
      openocd -c "adapter driver bcm2835gpio; \\
      bcm2835gpio peripheral_base 0xFE000000; \\
      bcm2835gpio speed_coeffs 236181 60; \\
      adapter gpio swclk $SWCLK; \\
      adapter gpio swdio $SWDIO; \\
      adapter gpio srst $SRST; \\
      transport select swd; \\
      set CHIPNAME samc21; \\
      source [find target/at91samdXX.cfg]; \\
      reset_config srst_only; \\
      adapter speed 276; \\
      init; \\
      reset; \\
      reset; \\
      at91samd chip-erase; \\
      at91samd bootloader 0; \\
      program Duet3Bootloader-SAMC21.elf verify; \\
      reset; \\
      shutdown"
      
      echo "Done."
      

      This is adapted from here.

      posted in Firmware developers
      Wulfstaundefined
      Wulfsta
    • RE: asking again, Duet 3 6hc running Klipper?

      @oliof I posted a script to flash 1LC boards using OpenOCD and a Pi elsewhere on the forum.

      posted in Using Duet Controllers
      Wulfstaundefined
      Wulfsta
    • RE: Issues with pressure advance since RRF 3.4

      Seeing this thread, I really wish I had spent time making that band-aid test print use a bit less plastic...

      posted in General Discussion
      Wulfstaundefined
      Wulfsta
    • RE: asking again, Duet 3 6hc running Klipper?

      @oliof yeah, that’s it. Huge pain to figure that out. I’ll add docs to klipper eventually, but it’s not my priority at the moment. Meanwhile it should be easy enough to figure out by looking at the schematics.

      posted in Using Duet Controllers
      Wulfstaundefined
      Wulfsta