-
Notifications
You must be signed in to change notification settings - Fork 79
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
[FR] Updating SKR mini E3 #103
Comments
So are you saying that the lpc1768 method doesn't work for the SKR Pro boards after all? The documentation for the SKR Mini E3 and SKR Pro certainly sound like the lpc1768 copy-and-reset method should work. Is there something I can change to make it work? I don't have a board to test with so am forced to rely on what people are telling me... |
sry, i mismatched, skr pro 1.1 is also under stm, ill look again if i see some differences. right now there is no usb mount upcoming, no blockdevice with and nothing under /dev/sda* |
Have you edited your Configuration_adv.h file and set |
yeeep :S
and also added
in the pins file |
Do you have any other computer you can plug it into? Try a different cable? If it doesn't show up as a storage device then you have some other issue going on. Either that or this board simply doesn't expose the SD card over USB... |
ill try it. i just dont wanted to spam the other issue :D if someone searches for mini e3 this will come up with either a it will work or it wont work. transfering the firmware by gcode would still be an option. |
It might be worth asking on the BigTreeTech SKR Mini repository if SD card access over USB is expected to work: I don't think that the update by gcode will work - I don't think it would handle binary data. |
on windows i only get a com connection with 3 cables |
Right, so you need to find out if that's normal for your board, or if you can use some combination of Marlin firmware options to make it appear. I'm going to remove the SKR Mini E3 comments from the readme until you find out. For sure it will not work with either the STM32 flash method or the LPC1768 method. |
i did write an issue and a fb post to btt asking this. |
Although SKR added the ability to flash from the SD card to their bootloader they haven't added a USB MSC device to their Arduino framework (or the ststm32 platform, at least not by default like my lpc176x framework) Hopefully I can stabilise the Marlin Binary Protocol in the next week or so, supporting it (if you can from within octoprint, and think its worth the effort) would allow you to transfer binary data over the serial connection onto the sd card. |
Sounds good - I'll certainly look at it. |
Just for reference (MarlinFirmware/Marlin#14817), I am moving the client responses to binary but with that change it will hopefully stabilise the transport layer and sd card file transfer protocol. |
I have an SKR Pro 1.1... Aaaand there is (currently) no way to expose the SD card to Marlin or make it available through an USB connection. Their documentation is extremely poorly written and for example links Marlin build instructions for SKR 1.1 in the SKR Pro 1.1 manual (note the missing Pro). Similar... But very different. One of the problems is that it looks like the SPI bus the SD card uses is in conflict with various other board features and pins. Unfortunately even after removing all the conflicts I could find... It is still unable to send any data to the SD card. So there must be some other problems present as well. For now I couldn't find them. If anyone here has a SKR Pro 1.1 with a working SD card, please let me know. I am looking for inspiration on what could be wrong with the SD card so I'd love to compare notes. @benlye I don't think you can do anything to make this work. But nice work on the plugin. I love the idea of not having to walk to the printer and fiddling with the SD cards to update the firmware. My floor is starting to show signs of wear from all my walking to the printer... |
BTT added a PR to marlin to get SD Mounting working with the mini e3 👍 |
Any luck since the BTT PR was merged? |
Yeah - I'm curious on how this is going :) |
works fine now if you build marlin firmware with usb support. |
Very cool, will try it later. Need to change anything from the defaults for stm32flash? |
OctoPrint on a Pi with Rasbian and FirmwareUpdater Plugin Settings for SKR mini E3 v1
The firmeware file will now be copied to the mounted sd card and a M997 command will be send to restart the printer. The Bigtreetech bootloader on the skr board will now find the new firmware on the sd card and flash it. I wrote a sh script to backup the whole SD Card before/after flashing. Prep: Update FirmwareUpdate Pre- or Post -flash Settings to run the script before/after flashing flashing Preflash Postflash (dont forget to tick the checkbox to enable Postflash script)
|
If I check in platform.io, the section #define SDCARD_CONNECTION ONBOARD in configuration_adv.h is greyed ourt, so it indicates it is inactive. Why is that? I have #define SDSUPPORT active in coinfiguration.h. |
I never got this working - however, this is related: |
I was never able to mount the Sd card. I have connected a raspberry pi via usb cable, running repetier server, and I would like to be able to copy over a firmware.bin to the sd card via the USB cable, so I can issue M997 to restart the printer and update the firmware without exchanging sd cards. |
Do I need the STM32F103RC_bigtree_512K_USB board defined in platform.io for this to work or is it supposed to work also with the STM32F103RC_bigtree_512K ? |
|
not in my case, i run a pi3b with lasst octoprint version and marlin 2.0.6.1 |
Be advised: When running USB composite, things like running a PID autotune from Octoprint will trigger a connection error. So you can't PID through console and remote update at the same time... |
I thought this was the case.... |
You can always do the PID autotune using the TFT screen and then update the values in Marlin if you wish, but they get saved in the EEPROM anyway. If that's the only drawback of enabling USB composite I can live with it, if more problems arise I'll just revert back to good ol' |
I can't get automount to work here. I followed the instructions posted by @JeremyKennedy but it wont mount automatically. I release the card with M22 and no matter how long I wait, nothing shows up in /media/usb/. If I do a manual mount with the same command that umount uses: However it would be nice to get the automount to work if anyone has any ideas what it may be? EDIT: I should add, I have an SKR e3 mini 2.0 and stock ender 3 screen and I tried both |
I see this is closed, is this working on SKR E3 v2.0 ? Readme still says
|
Naive question: does the existing firmware need the be the _USB variety on the E3 mini for future OTA updates through octoprint, or just the nascent version? |
@bakaufman I had to turn on the |
@TBJ +1 here; Got an SKR Mini E3 v2.0 with the stock screen, manually mounting the SD card works, but it does not want to automount no matter what. set Update: I found some additional information on the Pi StackExchange regarding Pi 4 and Now the SD card of the SKR board shows up after a Pi boot, and, with a couple of seconds of delay, after reconnecting/rebooting the printer. In short:
And find
Insert these lines then save and close the file:
(I just did
After that I was able to reflash the firmware with no issue! |
I can confirm that @calini 's guide works, thanks! A little suggestion: ad 1. Change |
@o5 Thanks for the corrections. |
So I got the SKR mini v2.0 mini working no problem with this plugin. My host is a FreeBSD box so I will not release the details because I think you all are using a raspi, soooo... I would like anyhow to share my experience.
As many here have already pointed out, you need to use a _USB enviroment (ie. STM32F103RC_btt_512K**_USB**) to be able to upgrade the the firmware.
At this point we have done the job at the SKR MINI and we need to concentrate about the operating system hosting Octoprint. Mandatory it to test the location where you mounted the USB disk by using the button "Test": Pay attention that if you are using a Laptop or a PC Box the BIOS can detect the USB disk when it is booting up and do not load the operating system at start up. In this case you need to play with the BIOS Boot priority settings.
At this point for FirmwareUpdater you are just a user with a lpc1768 board. Forget about the SKR mini compatibility or not. I don't like the automount wankery... I want to control what is mounted and what is not mounted on my box. Expert corner BTW: Now it is time for me to see if it is stable or not this plug in. Have fun |
@Zuckme any chance you could do a PR with documentation for this? I don't have any of these SKR boards and a lot has been said in this thread. It would be great if someone who has a board can write some concise instructions that can be added to the documentation. |
@benlye I think after all what is wrote here everybody can configure it correctly. I suggest to link this as a PR. |
Are the SKR Mini E3 boards working now? |
@holocronology worked for me w/ the instructions above on an SKR E3 DIP. I just set the settings, configured the build as required for usb mount, and set up an usb automount and it worked 😀 |
Once you get the SD on USB (see above) the SKR Mini E3 is not different than any other LPC1768 board. |
So you have to flash via usb?, I was hoping to get rid of usb altogether.. |
Hmm, can you say more about what you mean by getting rid of USB altogether? I think you'd need some form of connection to flash it. |
Yeah uart |
REF: https://github. com/OctoPrint/OctoPrint-FirmwareUpdater/issues/103#issuecomment-715593936
This issue has been automatically locked because there was no further activity after it was closed. Please open a new issue for any related problems. |
Hardware Setup
SKR mini E3 in an Ender 3
Describe the problem
Could not get it to mount the SD Card
The text was updated successfully, but these errors were encountered: