Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SKR Mini E3 USB Connection #2

Closed
ilakuli opened this issue Jul 8, 2019 · 61 comments
Closed

SKR Mini E3 USB Connection #2

ilakuli opened this issue Jul 8, 2019 · 61 comments

Comments

@ilakuli
Copy link

ilakuli commented Jul 8, 2019

Hello,

My SKR Mini E3 keeps disconnecting from any USB Device after about 15 seconds. Tested on Windows PC and Octoprint. In Windows, the board shows up and connects normally but after 15 seconds it just disconnects. In Octoprint the same thing happens. Firmware was configured and compiled according to the List provided on Github. Have noticed the issue with conflicting serial port information and tried both ways. Nothing solved the issue. Any help would be appreciated.

Thanks.

@vyruz1986
Copy link

I can confirm the same behavior on my E3 Mini board with the latest build from Marlin directly (at commit 2b1c2a0)

@Msq001
Copy link

Msq001 commented Jul 9, 2019

I will test it

@Msq001
Copy link

Msq001 commented Jul 9, 2019

Can you provide firmware. bin file? I tested the latest version of marlin, no such behavior, and I uploaded a workable firmware. bin in here, you can try to use this to see if it works properly.

@ilakuli
Copy link
Author

ilakuli commented Jul 9, 2019

Firmware.zip
attached is the firmware.bin.

I will test your firmware but I cannot use it permanenlty since my Ender 3 hast a different hotend and auto bed leveling.

Thanks,

@ilakuli
Copy link
Author

ilakuli commented Jul 9, 2019

Your firmware resolved the issue. Can you provide the source code so I can add auto bed level and compile myself?

@Msq001
Copy link

Msq001 commented Jul 9, 2019

this firmware.bin is compiled from old version Marlin, and the source code have be replaced by new verison, this issue maybe the Marlin's bug, I will locate and fix it as soon as possible, when I fix this, I will tell you and upload the workable source code in here.

@vyruz1986
Copy link

vyruz1986 commented Jul 9, 2019 via email

@vyruz1986
Copy link

Here's a zip (with firmware.bin , github doesn't allow *.bin uploads) which demonstrates the problem.
firmware.zip

It was compiled by setting #define SERIAL_PORT_2 -1 and with marlin at commit ab99a80

@Msq001
Copy link

Msq001 commented Jul 10, 2019

hi~ I have upload source code, LCD12864 is ok, usb connect to printrun is ok

@Msq001
Copy link

Msq001 commented Jul 10, 2019

It's just download form Latest version MarlinFirmware/Marlin@a23021b

@vyruz1986
Copy link

Below are 2 pictures comparing configuration.h and configuration_adv.h between the source code in this repository(https://github.com/bigtreetech/BIGTREETECH-SKR-mini-E3-/tree/2a167ef96c9170c63288a3c1d69b6dea9d913506/firmware/Marlin-2.0.x-SKR-Mini-E3), and MarlinFirmware/Marlin@a23021b , as you can see there are way more changes than what you currently have described in the instructions on how to flash Marlin. Likely if we apply all these changes to the latest Marlin sources, it will work as well. I'll give that a try tonight and report back here.
Configuration_adv.h
2019-07-10 08_31_04-WinMerge -  Configuration_adv h x 2

Configuration.h
2019-07-10 08_30_11-WinMerge -  Configuration h x 2

@vyruz1986
Copy link

vyruz1986 commented Jul 10, 2019

Ok so after testing, I've done the following and have a completely working Ender 3 with the BBT SKR E3 Mini board.

  1. Clone the latest version of Marlin (I used MarlinFirmware/Marlin@4e479ca)
  2. In the repo you just cloned, copy the contents of config\examples\Creality\Ender-3\ to Marlin
  3. In platformio.ini, change the following line under the [platformio] section:
    env_default = BIGTREE_SKR_MINI
  4. Make the changes described below to Configuration.h and Configuration_adv.h

Configuration.h

#define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.
#define SERIAL_PORT 2
#define SERIAL_PORT_2 -1
  #define MOTHERBOARD BOARD_BIGTREE_SKR_MINI_E3
#define X_DRIVER_TYPE  TMC2209
#define Y_DRIVER_TYPE  TMC2209
#define Z_DRIVER_TYPE  TMC2209
#define E0_DRIVER_TYPE TMC2209

Configuration_adv.h

  #define  Y_SLAVE_ADDRESS 1
  #define  Z_SLAVE_ADDRESS 2
  #define E0_SLAVE_ADDRESS 3

This works for my printer.

@vyruz1986
Copy link

vyruz1986 commented Jul 10, 2019

Apparently I cheered too early :) The control knob still isn't working. Printing over USB works fine, but pressing the control button causes the board to freeze up :(

Edit: Also the USB connection is still dropping after ~15 seconds, so this specific issue isn't really fixed it seems.

@Msq001
Copy link

Msq001 commented Jul 11, 2019

Apparently I cheered too early :) The control knob still isn't working. Printing over USB works fine, but pressing the control button causes the board to freeze up :(

Edit: Also the USB connection is still dropping after ~15 seconds, so this specific issue isn't really fixed it seems.

this issue please comment out #define SPEAKER in configuration.h file

@Msq001
Copy link

Msq001 commented Jul 11, 2019

and I wil update your feedback in readme.md, thanks for your feedback !

@vyruz1986
Copy link

Control knob issue was fixed by commenting out #define SPEAKER as suggested by @Msq001 , thanks!

@Xenon-2510
Copy link

Any update on this issue? I have got the board up and running but have an issue with the X axis stepper driver and cannot debug as the serial connection doesn't work.

@Msq001
Copy link

Msq001 commented Jul 18, 2019

Any update on this issue? I have got the board up and running but have an issue with the X axis stepper driver and cannot debug as the serial connection doesn't work.

Have you installed Maple USB port driver on your computer? Can you debug with this firmware. bin

@Xenon-2510
Copy link

I will check this firmware out later today, I have installed the Maple driver on my pc but I am also trying to use Rpi3 with Octoprint. I will feedback the outcome.

@Xenon-2510
Copy link

Hi,

So i tried the firmware you suggested and unfortunately it did not work, I then tried a firmware that I was sent through facebook earlier this week by Zyfio (see attached) this worked fine with the serial connection both from my PC using pronterface and my Rpi3 using Octoprint. So i know that the board works and that it is a firmware issue, I have attached the working firmware for you to try but I am afraid I do not have the source.

I am hoping that this is of some use, please let me know if there is anything else that I can do to support.

firmware_working_serial.zip

@Msq001
Copy link

Msq001 commented Jul 19, 2019

Hi, Even if you updated the firmware. bin that we have compiled here, the serial port is still unrecognizable?

@Msq001
Copy link

Msq001 commented Jul 19, 2019

SO SORRY for this issue, USB Serial can't recognize or unstable because of: USB slave needs to connect a pull-up resistor to VCC in D + to tell USB host it's own device type, we use a P-MOS to control whether the 1.5k resistance is pulled up or not, and the GPIO of P-MOS should "output" a stable low level, but It was "input" state before, so the USB device could not recognize or be unstable.
I have updated the firmware.bin and source code now, It should workable now

@nicstoun
Copy link

Hi, i think soon buy this board ..i track this issues ,still board don't have stable firmware for everyday use ?

Regards

@Msq001
Copy link

Msq001 commented Jul 19, 2019

the SD card print, and usb serial is ok now in my tested, but I need more feedback, this source code and firmware.bin should workable and I have Creat a PR to fix this issue in Marlin master branch MarlinFirmware/Marlin#14679

@nicstoun
Copy link

the SD card print, and usb serial is ok now in my tested, but I need more feedback, this source code and firmware.bin should workable and I have Creat a PR to fix this issue in Marlin master branch MarlinFirmware/Marlin#14679

Ok, for that i see only usb have some issues now , if flash firmware provided later i get board all be fine right ?

@Xenon-2510
Copy link

I have tried the source firmware this afternoon, seem to be getting inconsistent E1 Thermal runaway issues on boot. Do you need to add in a grace period for this board?

@Msq001
Copy link

Msq001 commented Jul 19, 2019

@Xenon-2510 This seems to happen only when you connect to USB CDC serial at startup, right? If wait 4-5s for motherboard to startup completed, then connecting USB CDC Serial is normal ?

@Msq001
Copy link

Msq001 commented Jul 19, 2019

the SD card print, and usb serial is ok now in my tested, but I need more feedback, this source code and firmware.bin should workable and I have Creat a PR to fix this issue in Marlin master branch MarlinFirmware/Marlin#14679

Ok, for that i see only usb have some issues now , if flash firmware provided later i get board all be fine right ?

yes, It should be fine.

@Xenon-2510
Copy link

@Msq001 - yes, it seems to only do it when the printer is turned on with the USB plugged in. Is there anyway this can be rectified as this didn't happen with the stock board? I like to leave Octoprint connected so I can remotely turn the print on and start a print from the Web interface.

@vyruz1986
Copy link

I tried building the latest bigtreetech/Marlin repository, and can confirm the USB issue is fixed 👍
Thanks BTT!

@reloxx13

This comment has been minimized.

@bigtreetech bigtreetech reopened this Aug 3, 2019
@thomasgerman
Copy link

why can not I connect the board to usb? I loaded the last marlin, when I connect the cable hangs up the board and the hotend fan whistles. where is the problem?

@mejtoogood
Copy link

Board still gives thermal runaway error when USB connected at boot. Not prepared to use workaround which degrades safety. Fix was in pipeline 24 days ago, what is status?

@bigtreetech
Copy link
Owner

look here MarlinFirmware/Marlin#15026, we have fixed the usb cdc connection bug of temperature. and have update source code

@thomasgerman
Copy link

thomasgerman commented Aug 22, 2019 via email

@reloxx13
Copy link

reloxx13 commented Aug 23, 2019

Must i all uint_16 Switch to uint_8? Or what? Gesendet mit der WEB.DE iPhone App Am 22.08.19 um 09:15 schrieb BigTreeTech

look here MarlinFirmware/Marlin#15026, we have fixed the usb cdc connection bug of temperature. and have update source code -- You are receiving this because you commented. Reply to this email directly or view it on GitHub: #2 (comment)

click on the link and read the file changes.

@petrik0621
Copy link

Hi. I need the Maple USB driver for the PC can anyone send me pls? I can't find it.

@petrik0621
Copy link

@Msq001 thank, I found that too, but i don't know how to instal it :( I'm new

@Msq001
Copy link

Msq001 commented Aug 28, 2019

@petrik0621

  1. first, download this folder.
  2. After you update the normal firmware, insert motherboard USB into PC, You should see a maple device with a yellow exclamation mark in the Device Manager
  3. Right-click for Update Driver Software.
  4. Select Browse PC Local Files for Update Driver
  5. Select the folder has be download.
  6. Start update driver...

@petrik0621
Copy link

petrik0621 commented Aug 28, 2019 via email

@petrik0621
Copy link

@Msq001 I can just open the folder, there is no download button.

@petrik0621
Copy link

@Msq001 2
1

@Msq001
Copy link

Msq001 commented Aug 28, 2019

I upload folder in here too https://github.com/bigtreetech/BIGTREETECH-SKR-mini-E3-/tree/master/firmware .
you can download the Whole repo
image

@petrik0621
Copy link

@Msq001 ok thanks but what now?
I have Windows 8 :(
3

@reloxx13
Copy link

google "windows 8 install driver without digital signature"

@reloxx13
Copy link

@bigtreetech u can close this now

@Silversurfer79
Copy link

Maybe a silly question, is there a bin file that i can load from SD or do i need have the SKR connect via USB to Adr or a PC to do this?

@Silversurfer79
Copy link

?

@NotNiki
Copy link

NotNiki commented May 22, 2020

Hi, I connect the USB to a pc/octoprint it works but when i sent M305 for PID autotune my connection will always close and won't open again. Does anybody know what to do? Thanks, Adam.

@ajahongir
Copy link

having problems with board. once as i flash with new firmware. i connect by usb and send M501 M500 to clear eeporm and save settins. make another minor changes and flash again but next time usb connection not working. its hang up when it try to connect by pronterface, all configurations are same. only i change offsets. i can not figure out why it stops to connect. tryed to reinstall firmware and so on. dont help is there any ideas? but when you connect. it recognize on PC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests