All KAY3D CoreXY Firmwares are all available for download including precompiled firmware.bin files. But if you prefer to tinker or perhaps, change some of the parameter values on Marlin yourself, you can choose to create your own firmware instead.
The objective of this tutorial is to help you load up a preconfigured Marlin source folder onto Visual Studio and allow you to change different parameters and values. After which, you will learn how to locate the firmware.bin file which will be ultimately used to flash your board.
This guide will based on Platform IDE for VSCode and it's build on top of Microsoft's Visual Studio Code. If you don't have the platform installed, here's a great and simple link showing you what you need to download:
Once you're ready, let's get you started!
1) Download the preconfigured Marlin Source Folder and not the firmware.bin file. You can various source files depending on the type of board you have. You can find your board type under the main menu
2) Choose the type of board you have to find the Marlin source folder you need3) Select the type of firmware you need and download the source folder and not the firmware.bin file
4) Once downloaded, unzip it
5) Your new unzipped folder may not be in the same directory. Be sure to remember which directory it is in. We need it in the next step.
6) Open up Visual Studio Code and click File -> Open Folder ...
7) This is where most people get confused so please be sure to follow accordingly. Navigate to the same folder that you unzipped earlier on until you see these files. Then click Select Folder
8) VS code will take a few seconds to open up all the files required and you will see the Marlin Folder on the left. Click on it and it will reveal all the files in the folder
8) Double click on configuration.h and configuration_adv.h file to open them as tabs on the right hand side of the window
9) Change what you need to change. Feel free to change the other files even though we did not mention them. Usually, probe to nozzle offsets, max grid points and thermistor values etc are changed. Remember that should you want a precompiled firmware.bin file, we have them available for download too!
Once you are ready, click on the tick on bottom left of the window. This will ask VS code to compile the firmware.
10) If there are no errors, you will be greeted success message like this one below:
11) Now before we can transfer this firmware onto your board, we need to located the firmware.bin file. Navigate to the Marlin folder you unzipped earlier on and locate the '.pio' folder. Click into it.
12) Then click into the 'build' folder
13) Click on 'LPC1768'. This is the name of the Microcontroller used on the SKR 1.3. Your folder's name may be different depending on the type of microcontroller used on your board
14) Locate firmware.bin file and place it in the root of your SD card
15) Insert the SD card into the SD card slot, turn on the machine and your Ender 3's LCD screen should be completely blank. It should only have a blue lit backlight for the default screen. It will be blank for the next 7-15 seconds.
If you see the KAY3D logo on boot up, congratulations. Flashing is partially complete.
To complete the flashing, remove your SD card from the card slot and insert it back into your computer. Navigate to the root folder again to ensure that the file firmware.bin is no longer there. Instead, you will find the firmware.cur file present.
If you saw the KAY3D logo earlier on on boot up but cannot find firmware.cur file, delete the firmware.bin file. This is a known bug from BigTreeTech where the firmware.bin file does not automatically become firmware.cur after flashing. Do not worry as your firmware has already been completed.