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

STM32F1: Support M997 - Reset and begin flash #15209

Merged

Conversation

reloxx13
Copy link
Contributor

@reloxx13 reloxx13 commented Sep 9, 2019

sorry, had some rebase problems :(, but got it fixed now and learned sth 👍
rebased to get travis build success.

Description

Adds M997 gcode command to the stm32f1 platform to support a fw reset and triggering a flash from sd card by bootloader.

Tested and works on my SKR mini E3.

Benefits

Remotly Firmware flashing by USB like LPC Style:

  • Mount Printer SD Card
  • Copy firmware.bin on mounted card
  • Trigger a reset by M997

Related

#13281
#11128
OctoPrint/OctoPrint-FirmwareUpdater#103
bigtreetech/BIGTREETECH-SKR-mini-E3#14

@thisiskeithb
Copy link
Member

It'll be nice to flash the SKR Mini boards just as easily as the SKR 1.3.

@JohnnyTheOne
Copy link
Contributor

What about the PRO is it possible?

@AnHardt
Copy link
Contributor

AnHardt commented Sep 10, 2019

... PRO ... ?

The code for the reset should work when put into the right HAL.
But up to now there is no way to put the firmware onto the onboard SD remotely.

@thinkyhead thinkyhead merged commit 05cd483 into MarlinFirmware:bugfix-2.0.x Sep 11, 2019
@thinkyhead thinkyhead changed the title STM32F1 Support M997 to reset FW and start a Flash STM32F1: Support M997 - Reset and begin flash Sep 11, 2019
markus-seidl pushed a commit to markus-seidl/Marlin that referenced this pull request Oct 31, 2019
@Rmkiv4
Copy link

Rmkiv4 commented Dec 28, 2019

How do you upload firmware.bin. Using Octoprint firmware updater? What kind of update method do yo use?

1 similar comment
@Rmkiv4
Copy link

Rmkiv4 commented Dec 28, 2019

How do you upload firmware.bin. Using Octoprint firmware updater? What kind of update method do yo use?

@reloxx13
Copy link
Contributor Author

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

Successfully merging this pull request may close these issues.

6 participants