bigtreetech / EBB

474 stars 103 forks source link

SB2209 / SB2240 Won't go into DFU Mode #74

Closed alexrizk1117 closed 3 months ago

alexrizk1117 commented 1 year ago

I'm trying to install an sb2209 board using U2C wired into a pi. I'm trying to get the board into DFU mode but haven't had any success. All I see when running "lsusb" on my pi is:

Also, I'm trying to use the Boot + Reset method, but that doesn't seem to work. Is the SB2209 supposed to have a solid green and red light?

Also, when having the U2C board hooked up, should it be running power through the 24V PS, or should that only be powered through the pi in usb C?

Nooni99 commented 11 months ago

Have you found a solution @alexrizk1117 ? I am having the same issue except I see " Raspberry Pi RP2 Boot" when I try to go to DFU mode. Despite this, I am unable to enter dfu mode.

ga73 commented 11 months ago

@Nooni99 i'm having the same issue...have you worked this out ?

Nooni99 commented 11 months ago

@ga73 I have not found the exact solution and I just gave up on it because I wanted to get my printer working and just wired everything directly to my motherboard without canboot. However, I will do some experimenting once I have time. The next thing I am going to try which might work is using stm32 cube programmer to rewrite the sb2209. That might work and I suggest you try it. Let me know the results.

ga73 commented 11 months ago

Okay I got everything working last night and now up and running... I connected both the utc and rp2209 to 24v and ground instead of 5v usb power... The only other thing I did different was to get into dfu on the rp2209 I held down the boot button and then pressed the reset for maybe 3 second.. Let go of reset and then boot button... My can wires went to the screw terminals on the utc... Green was can low and yellow can high... I hope this helps someone

ga73 commented 11 months ago

Also make sure you remove the usb 5v jumper BEFORE connecting to 24v and that you have the 120r jumpers on both the utc and rp2209 board otherwise they won't communicate with each other

ga73 commented 11 months ago

Also this link was much better than just using the BTT guide alone...

https://github.com/Esoterical/voron_canbus

Nooni99 commented 11 months ago

@ga73 thank you so much for figuring this out. I'll probably at the sb2209/2240 to my voron soon because of you.

ga73 commented 11 months ago

Your welcome, I hope it helps, I'm not expert but feel free to leave another message here if you get stuck and I'll see what I did differently.. Good luck

the1snm commented 9 months ago

I wanted to add that I was seeing this same problem of no DFU mode with just the tool head board installed and USB-C to the RPi. I swapped cables and it worked perfectly on the new cable so I suspect the first cable was cheaper and/or for charging only. I've run into this before with micro and mini USB cables and it is more common since so many of those are 2 wire charge only.

Hope this helps someone.

ParabolicTech commented 7 months ago

I am having the same issue. I hold the boot button and press the reset and it doesnt go into DFU mode. The device ID shows up with no description. This happens weather or not I try to enable DFU. I can plug it into my windows machine and it WILL bring up the bootloader folder if I do the button sequence. But for some odd reason connected to my Raspberry PI it doesnt function into DFU mode. Anyone else with this issue? Is there a way I can flash it in Windows?

Nooni99 commented 7 months ago

@ParabolicTech have you tried the solutions from above?

ParabolicTech commented 7 months ago

@ParabolicTech have you tried the solutions from above?

Yes, Thats why I posted. Ive been at this for hours in multiple places and cant figure out why I cant enable DFU. Diffrent known working cables - different (5v) power supplies, in fact I have my raspPI disconnected from my octopus board JUST to eliminate some of the other addresses showing up.

Nooni99 commented 7 months ago

@ParabolicTech hmmm. That's interesting. I'm not sure what's wrong. Those boards are quite difficult to get running anyways and I hope bigtreetech does another version that's easier to get working. In the mean time, I hope someone posts a solution that works for you. Best of luck!

ga73 commented 7 months ago

You mention you connected to 5v..have you tried connecting to 24v? This seemed to make a difference for me, also make sure your usb cable is a data and not just a usb power cable and finally do you have the r120 jumpers on both your canbus board AND your UTC (assuming this is what your using)?

I connected mine up fully and then flashed it, saying that if you just can't get it working try stm32cube software on windows as a last resort

LeighT616 commented 7 months ago

Hi i've just hit this issue... the board will not go into DFU mode. I've tried various USB C cables and zero dice!

is there any resolution on this, i'm looking into the stm32cub software via windows but surely there has to be a better solution

ParabolicTech commented 7 months ago

So after a lot of trials and tribulations I found out it DOES go into DFU mode by holding the reset button and clicking the boot button once. HOWEVER, the feedback that's listed online isn't correct. The board im using has the RP2040 chip on it so it wont list the description when it goes into DFU mode as listed on various instructions. The description is just blank. I was able to continue with the process and flashed the board, got the green light and the flashing red light and the rest of the listed setup worked fine.

Nooni99 commented 6 months ago

Yeah, I'm still having the same issue with getting it in DFU mode. I have tried everything.

wes4560 commented 5 months ago

I have my sb2209 rb2040 hooked directly to the octopus using the rj connection I have unplugged everything used the 5v jumper and also tried the 24 v supply and I can't get it to go in DFU mode the light just stays green and I can't get it to show up at all in the ssh with the pi

Nooni99 commented 5 months ago

@wes4560 I found the solution. Since the chip is an RP2040, it will use boot mode. Your device should appear as "Raspberry Pi RP2 Boot" which is effectively the same as DFU mode. You can download firmware to it with no problem. Best of luck!

mprenter commented 3 months ago

Same issue as everyone above, having a brand new board and unable to get it into DFU mode. Can get the device to say "RP2 Boot" which some people say is good enough, but how do I install the firmware without using the dfu-util?

Nooni99 commented 3 months ago

@mprenter please don't make the misunderstanding I did. "RP2 Boot" is the "DFU mode" of this board. Since the board has a RP chip, it uses "RP2 Boot" instead. So follow all the steps you should follow and once you have "RP2 Boot" you're ready to move onto the next steps. You should be able to install the firmware the same you would any other chip. Let me know if you have more questions.

looxonline commented 3 months ago

Same issue as everyone above, having a brand new board and unable to get it into DFU mode. Can get the device to say "RP2 Boot" which some people say is good enough, but how do I install the firmware without using the dfu-util?

This is not an ST chip. It is an RP chip. You can't use dfu-util with it, you need to use the programming methods mentioned in the manual.

Destra-Slaybot commented 1 month ago

Have you found a solution @alexrizk1117 ? I am having the same issue except I see " Raspberry Pi RP2 Boot" when I try to go to DFU mode. Despite this, I am unable to enter dfu mode.

was this ever solved, i can't get past this one part

bigtreetech commented 1 month ago

Have you found a solution @alexrizk1117 ? I am having the same issue except I see " Raspberry Pi RP2 Boot" when I try to go to DFU mode. Despite this, I am unable to enter dfu mode.

was this ever solved, i can't get past this one part

If you see this, then it is in DFU. It is an RP2040. The manual has the info you need.

Charleslotto commented 3 weeks ago

I see below and get an error:

Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 004: ID 1d50:614e OpenMoko, Inc. stm32g0b1xx Bus 002 Device 015: ID 2e8a:0003 Raspberry Pi RP2 Boot Bus 002 Device 003: ID 04d9:8030 Holtek Semiconductor, Inc. BTT-HDMI5 Bus 002 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub biqu@BTT-CB1:~/klipper$ make flash FLASH_DEVICE=2e8a:0003 Flashing out/klipper.bin to 2e8a:0003 sudo dfu-util -d ,2e8a:0003 -R -a 0 -s 0x8000000:leave -D out/klipper.bin

dfu-util 0.9

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. Copyright 2010-2016 Tormod Volden and Stefan Schmidt This program is Free Software and has ABSOLUTELY NO WARRANTY Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

dfu-util: Invalid DFU suffix signature dfu-util: A valid DFU suffix will be required in a future dfu-util release!!! dfu-util: No DFU capable USB device available

Failed to flash to 2e8a:0003: Error running dfu-util

If the device is already in bootloader mode it can be flashed with the following command: make flash FLASH_DEVICE=0483:df11 OR make flash FLASH_DEVICE=1209:beba

If attempting to flash via 3.3V serial, then use: make serialflash FLASH_DEVICE=2e8a:0003

make: *** [src/stm32/Makefile:111: flash] Error 255