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

Wulfsta

@Wulfsta

5
Reputation
6
Profile views
20
Posts
0
Followers
0
Following
Joined 15 Nov 2021, 20:15 Last Online 17 Nov 2024, 19:44

Wulfsta Unfollow Follow

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
    undefined
    Wulfsta
    18 Feb 2023, 00:59
  • 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
    undefined
    Wulfsta
    30 Apr 2023, 21:38
  • 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
    undefined
    Wulfsta
    15 Oct 2022, 05:01
  • 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
    undefined
    Wulfsta
    1 May 2023, 20:12

Latest posts made by Wulfsta

  • RE: Ingenuity Extruder for Smart Effector

    Just want to chime in and say that this is a really cool project, I’m impressed with the work!

    posted in Smart effector for delta printers
    undefined
    Wulfsta
    5 Aug 2023, 22:04
  • 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
    undefined
    Wulfsta
    1 May 2023, 20:12
  • 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
    undefined
    Wulfsta
    30 Apr 2023, 21:38
  • 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
    undefined
    Wulfsta
    18 Feb 2023, 00:59
  • RE: Raspberry Pi 4 to Toolboard 1LC with OpenOCD

    @dc42 said in Raspberry Pi 4 to Toolboard 1LC with OpenOCD:

    @Wulfsta the debug build configuration I have for the Tool1LC is for running without the bootloader. To use it, you would need to remove the bootloader protection, then write it to flash memory via SWD. Then to use the tool board normally again, you would need to reinstall the bootloader, again via SWD. The only tool I have ever done this with is an Atmel ICE. So unless you already have one, I can't recommend this route.

    Yeah, if I had one I’d just erase the chip using that… I do wonder why I can’t get OpenOCD working - maybe it’s the frequency or pulse width?

    Edit: I should mention that I’m trying to connect under reset as the OpenOCD docs suggest, and still no luck.

    posted in Firmware developers
    undefined
    Wulfsta
    12 Feb 2023, 00:57
  • RE: Raspberry Pi 4 to Toolboard 1LC with OpenOCD

    @dc42 Could you provide a debug build I can use for this purpose? I don't want to set up all the tooling to build RRF...

    posted in Firmware developers
    undefined
    Wulfsta
    9 Feb 2023, 06:11
  • RE: Raspberry Pi 4 to Toolboard 1LC with OpenOCD

    @gloomyandy Ah yeah, I saw this page, but didn't have a close enough look at it. Thanks for the help though!

    posted in Firmware developers
    undefined
    Wulfsta
    16 Oct 2022, 00:06
  • Is there a plugin or that performs frame expansion correction?

    Similarly to this klipper PR, I'm looking for functionality that will correct for frame expansion as a function of temperature.

    posted in Firmware wishlist
    Wulfstaundefined
    Wulfsta
    15 Oct 2022, 17:34
  • RE: Raspberry Pi 4 to Toolboard 1LC with OpenOCD

    @gloomyandy I actually have no idea how to do this, and a cursory look at the docs didn't seem to suggest it's well-known; do you happen to have a reference that I could look at, or example of someone doing this? Or at least, a link to where this is located in the OpenOCD docs?

    posted in Firmware developers
    Wulfstaundefined
    Wulfsta
    15 Oct 2022, 17:31
  • 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
    15 Oct 2022, 05:01
Unless otherwise noted, all forum content is licensed under CC-BY-SA