Flashing Marlin on 2021 Tronxy Boards

What is Marlin or Klipper?
Marlin and Klipper are more advanced 3D printing firmwares compared to the stock TronXY Chitu Firmware. This is more useful for us tinkerers that want to mod and tune our machines out to heck, so that we achieve the best print results possible.

Unfortunately
Tronxy removed this feature for 2021 boards as easy as it was, tho some smart people in the community have found out how to install these firmwares anyway. This will be a step-by-step guide.

Downloading the Programmer
Download and install the Trial version of this Programmer https://www.st.com/en/ecosystems/stm32cube.html ( you dont need any drivers for the board) Or download it directly without bloating your email and such for windows here

Note by user "Gutbusters" from the TronXY Discord: the stm programmer and the firmware you are flashing need to be on the same drive. Also note that trying another USB port might fix connection issues.

Downloading older Firmware
Download older firmware here ( other link without facebook login coming soon )

Other, better download link: https://drive.google.com/file/d/1Y5Qz6n5KemlSCJgn-jSfjkT8x3PNgFl3/view?usp=sharing ( if this one is broken contact the admins on the tronxy discord )

Download a driver (optional)
Some users reported the need of a driver which can be downloaded here: https://drive.google.com/file/d/1XCdo2yElN3qrb-J0e7hVo3N2p8Qxq2nb/view?usp=sharing

Removing or re-setting jumpers
Remove the "BOOT" jumper from your board. Set the other jumper from "5V" to "USB"



Connecting a USB cable
Now, go ahead and connect a USB cable from your PC to your mainboard and we can dive right in to the Installation! Make sure the Power cable is not giving any power to the board.

Detecting the Board
Open stm32cube, on the left side of the program you have a refresh button, press it and you should find the com port of the printer, select it and click on connect.

Flushing Tronxy's sh*t firmware off
On the left side of the screen you have to select the function ERASE&PROGRAMMING, click on "full chip erase", this will wipe all the content of the mainboard, helping us being able to put new firmware on

Installing an older Version of the Tronxy Firmware
The firmware file you downloaded above now gets in use. On stm32cube insert this file on the file path of the erase&programming section, check on "skip flash erase before programming" and on "verify programming", After that is done click on "start program"

Re-connecting Jumpers and final steps
Once done, click on disconnect, disconnect usb cable from the board, move the jumper back on 5v and put back the other jumper on boot, Connect the power cable and turn on the printer, You might get an error here, no problem, just turn off the printer.

For klipper, refer back to the guide here!

Now, insert the SD card with the marlin update.cbd ( a guide on how to configure and builda a marlin update.cbd can be found here under 1.1.3 ) and turn on the printer. You are now running Marlin on your new Tronxy! Awesome!

Detailed instructions by user MohnJadden#9796 ( thank you):

Getting Marlin, configuring it for your machine & building it
Grab the contents of https://github.com/rhapsodyv/Marlin, download, edit configuration.h to uncomment the line with your X5SA's configuration and uncomment (still gotta know your board version, extruder, and driver type) and uncomment either line 60, 61, or 62 (I did 62), save the file

Compile your firmware (I used https://marlinfw.org/docs/basics/auto_build_marlin.html ) Alternatively use PlatformIO like Jeff's3D in his guide.

Getting it on the printer
''Copy the build files to the root of a FAT32 formatted microSD card, eject, insert to printer, boot, and that's that (at least it was that for me) Whatever link I had to rhapsodyv was some kind of older bizarro config stuff which wouldn't compile and had other unknown options - the repo in step 2 was just "uncomment your X5SA and I do the rest". Literally didn't have to do any other config changes other than the ones I mentioned there.''

Thanks for the user bottega meccanica#6659 for telling us about this amazing discovery on the TronXY discord. So many thanks to you!

If you have any further questions, join the TronXY discord server to get the best support out of all platforms!

Thanks for reading and happy printing!