Version: 2.18.0
1 | 2 | 3 | 4 | 5 | 6 |
---|---|---|---|---|---|
GEMINIS | GEMINIX | GEMINIXS | GEMINID1 | GEMINID3 |
Warning: current source code supports bootloader version 1.58 and above, when you restart the machine, the upper left corner of screen should display the bootloader version, if it doesn't display or the version is lower than 1.58, you can't use this firmware.
Install vscode, and install platformio plugin in the vscode extension.
Download this firmware and unzip it, you will get a firmware folder. Run vscode -> file -> Open Folder, select the firmware folder, open it.
Check the model on the machine: Start the printer, enter the System ->Info interface, and when the firmware version is above 2.16, you can view the relevant information of the current model, as shown in the following figure.
If the applicable model listed on this page does not have your model, please download another appropriate firmware
Open Marlin/TronxyMachine.h, Find #define TRONXY PROJ, change the following project name to PROJ XXX (XXX represents your printer model).
Try compiling, and the compiler will automatically download relevant dependent libraries. If an error occurs, please refer to the FAQ for solutions.
Open file: .platformio\packages\framework-arduinoststm32\system\Middlewares\ST\STM32_USB_Host_Library\Core\Src\usbh_core.c
Compile the firmware. The first compilation may take a long time. The compiled target file is placed in the 'update' folder
Copy the 'update' folder into the root directory of the SD card, insert the card into the printer, restart, and the machine will automatically update the firmware. After that, the machine will run the current firmware.
If you want to switch back to the original interface of Marlin, just define "#define TRONXY_UI" in "Marlin/TronxyMachine.h" as UI_MARLIN_DEFAULT
When you burn the firmware you compiled into the machine and report an error all the time, you should pay attention to: by default, the main control chip corresponding to this firmware is STM32F446ZET, but in fact, because another chip GD32F4 may be used on the same machine, you need to confirm which chip your machine is.There are two confirmation methods:
When GD32 series chips are confirmed, you need to modify:
In the platformio installation directory, find the function uint32_t analogRead(uint32_t ulPin) in the .platformio\packages\framework-arduinoststm32\cores\arduino\wiring_analog.c, Add some code under the statement "value = adc_read_value(p, _internalReadResolution)",like this:
value = adc_read_value(...
value >>= 2;
value &= 0x03FF;
value >>= 4;
value &= 0x00FF;
value = mapResolution(value...
After modification, recompile and burn. At this time, it becomes the firmware of GD32
If you encounter problems like " multiple definition of 'EXTI1_IRQHandler' " as shown below, please find the location of the file in the figure below
open the file and comment out “void EXTI1_IRQHandler(void)”(according to the error message) function, as shown in the figure.