bigtreetech / BIGTREETECH-SKR-mini-E3

BIGTREETECH SKR-mini-E3 motherboard is a ultra-quiet, low-power, high-quality 3D printing machine control board. It is launched by the 3D printing team of Shenzhen BIGTREE technology co., LTD. This board is specially tailored for Ender 3 printer, perfectly replacing the original Ender3 printer motherboard.
2.03k stars 1.98k forks source link

SKR Mini E3 USB Connection #2

Closed ilakuli closed 5 years ago

ilakuli commented 5 years ago

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 commented 5 years ago

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

Msq001 commented 5 years ago

I will test it

Msq001 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

Msq001 commented 5 years ago

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 commented 5 years ago

Could everyone please state which commit of marlin they are building and testing?

I have this issue with commit 2b1c2a0db

Will try later today with the bin file provided by Msq001, thanks

On Tue, 9 Jul 2019, 06:39 Msq001, notifications@github.com wrote:

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.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BIGTREETECH-SKR-mini-E3-/issues/2?email_source=notifications&email_token=AA3T2M54MEBSFDBLH4ESNY3P6QI6TA5CNFSM4H6YO2A2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZPB2BI#issuecomment-509484293, or mute the thread https://github.com/notifications/unsubscribe-auth/AA3T2MYH25BFYLDOHQGCFMDP6QI6TANCNFSM4H6YO2AQ .

vyruz1986 commented 5 years ago

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 ab99a807

Msq001 commented 5 years ago

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

Msq001 commented 5 years ago

It's just download form Latest version https://github.com/MarlinFirmware/Marlin/commit/a23021b823477b907f8b5e658afc3bbb3165be31

vyruz1986 commented 5 years ago

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 commented 5 years ago

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@4e479caf61fde35121351e33276aed673a365b7f)
  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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

vyruz1986 commented 5 years ago

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

Xenon-2510 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

Msq001 commented 5 years ago

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 commented 5 years ago

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

Regards

Msq001 commented 5 years ago

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 https://github.com/MarlinFirmware/Marlin/pull/14679

nicstoun commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

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

Msq001 commented 5 years ago

@Xenon-2510 Please wait 4-5s, after motherboard startup successed, then connect USB CDC Sereial will be ok, if you don't want to wait, Please uncomment this #define BOGUS_TEMPERATURE_FAILSAFE_OVERRIDE in here, https://github.com/bigtreetech/BIGTREETECH-SKR-mini-E3-/blob/1016c47352a5a30e4ea25dda2652418618295655/firmware/Marlin-2.0.x-SKR-Mini-E3/Marlin/src/pins/pins_BIGTREE_SKR_MINI_E3.h#L35 this is just a temporary solution. I will continue to debug this issue, and when I find the final solution, I will update it.

Msq001 commented 5 years ago

@vyruz1986 Thanks for your feedback and patience!

nicstoun commented 5 years ago

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. Can you open theme to explain in details all options for this board. I read for DIAG instead of Endstop, blocking rotation detection ,that sound interesting but not find info in manual. Thank you!

ilakuli commented 5 years ago

Just to give some Feedback: My Mini E3 is now fully running with working USB Connection so Issue solved. Let me know whether I should close this issue or keep it open.

nicstoun commented 5 years ago

What about Eeprom settings i read this chip not support this options ? How safe calibrated settings ?

Msq001 commented 5 years ago

it can be saved in SD card file "eeprom.dat".

nicstoun commented 5 years ago

it can be saved in SD card file "eeprom.dat".

Ok, so that is solution now

Msq001 commented 5 years ago

yeah. we are considering to modify stm32f103rc to stm32f103re. it have 512KB flash. can to emulation eeprom. but not confirm yet

nicstoun commented 5 years ago

yeah. we are considering to modify stm32f103rc to stm32f103re. it have 512KB flash. can to emulation eeprom. but not confirm yet

Good to know , hope this happened soon :)

reloxx13 commented 5 years ago

dont close this if its not fixed!

a workaround is not a fix!

reloxx13 commented 5 years ago

@bigtreetech pls reopen

thomasgerman commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

look here https://github.com/MarlinFirmware/Marlin/pull/15026, we have fixed the usb cdc connection bug of temperature. and have update source code

thomasgerman commented 5 years ago

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 https://github.com/MarlinFirmware/Marlin/pull/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: https://github.com/bigtreetech/BIGTREETECH-SKR-mini-E3-/issues/2#issuecomment-523780953

reloxx13 commented 5 years ago

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 commented 5 years ago

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

Msq001 commented 5 years ago

@petrik0621 https://github.com/bigtreetech/BIGTREETECH-SKR-MINI-V1.1/tree/master/firmware/mapleDrv-USBdriver

petrik0621 commented 5 years ago

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

Msq001 commented 5 years ago

@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...