Marlin Firmware - VScode - Marlin Example File Guide

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Today we're going to talk about how to deal  with configurations that you may or may not know   so one of the issues that occurs a lot is people  ask how do I configure let's say the BLTouch or   you know the steppers and I haven't covered the  tutorial yet so I'm going to show you a trick on   how you can figure out what a configuration  is with a couple of different simple tools   so what I'm going to do is I'm actually going  to show you on the desktop of the computer what   we can do so if we were to go and download  our firmware from the most current build   we could actually decipher what the firmware is  for the configuration that we may want now this   doesn't cover everything but it will show  you how to figure it out so what I'm going   to do is download the actual configuration so  I'm on the configuration portion I'm going to   click download zip and this will pull it to  my computer next thing that I'll do is I'll   actually have to extract it so if we go over  to the downloads folder when it finally arrives   what we can do is we can right click on it we can  then go to extract all then we'll extract it and   once this is extracted we can pick out for example  say you have a Creality Ender 3 Pro and you have a   specific board or maybe not a specific board but  you want to know what the configuration may look   like this is what we can do to figure it out so  there's a couple of methods I'm going to show you   there's probably several more that are actually  cheaper or free but let me show you this one real   quick so I'm gonna open up first of all the folder  for configurations so their example configurations   in here these are not static configurations for  your configuration they vary between printers   so I have to emphasize that so let's go to  Creality we'll find the Ender 3 Pro right here   and then you can see that there's an SKR 1.4 Turbo  but there's not the SKR version three that we're   working with but a lot of this configuration  will be close to what we're working with so   I'm going to click here and as you can see it's  got several things in here a boot screen a status   screen configuration.h and configuration  advanced h so I'm going to copy these two   and I'm going to copy them to a folder uh  let's see over in here we'll call it compare   and uh let's see what we can do so inside here I'm  going to paste these files and I'm gonna have to   rename them because we're going to be comparing  two similar filed names so I'll click here   and I'll do underscore SKR so that's  configuration_SKR.h and this one will rename two underscore SKR for the advanced so now that we've  got those we need to get our default configuration   so this one I'm not sure about because it may  be stale so I'm going to delete that I'm going   to extract a brand new configuration that's  unmodified so I'll extract all on this this   may take a few seconds to actually extract  so one of the things I want to show you first   is that you can actually add a plug-in over  in here or extension so if you click here any   type but let's try compare and I tried out one of  these last night that I kind of liked so I think   it's compare folders so I'm going to do install  and this will install it into my environment   so now what I can do is actually show you how  to use it but first things first I'm going to   go back and show you another method to do this  in just a second so let me uh minimize this and   see where we are looks like we're almost done  so what we're going to do is we're going to   take the extracted files that we have from Marlin  over here and we're going to use these to compare   so we'll go back over to the downloads folder  go to the compare folder and we know that these   are the known good configurations for H on  configuration.h so I'm going to highlight both   and I have a software called BeyondCompare  now you can get a trial version of this and   use it or you can buy it I'm not going to try  and sell you on it I just want to show you it   so inside here I'll click compare and one of the  cool things about this is you can see what all the   same things are in the file you can see the whole  file so you can see there's differences already   or you can see just the diffs so this will pull  out the entire configuration for your particular   configuration so if you look at this kind of  closely you can see that there's custom screens   one is uh well they're both commented out so we're  gonna ignore that but we can see what the actual   serial Port configuration is for the first serial  port and that there's a second serial port in the   SKR configuration so this may give us Clues as to  how we can set things up over in here compared to   the known default configuration notice how over in  here if you look at the two lines you can see that   there's the BigTreeTech SKR and then the RAMPS  default configuration so all of this is pretty   much simplified for you so you can find what the  configuration is for your setup so essentially the   bed size will depend on if it's an actual Creality  Ender 3 Pro but you can see what everything is and   you can configure it and this will give you  a good handbook as to what you're doing now   normally I add them in one at a time so that I can  check each piece as I go along because there will   be differences between the example configuration  because it's called example and the actual so one   of the cool things about this is if you want  to actually copy things over to your regular   config file what you can do is you can actually  go through here and you can find the settings   and you see this little arrow you can click it to  actually change it and then you can save it out   now there was an export function in here years  ago where you could export out the differences   but apparently uh you just need to basically cut  and paste all of this into notepad and that'll do   the exact same thing so if you want an actual list  of what's different you can highlight the entire   side here right click copy it and another software  that you can use is actually notepad plus plus whoop there we go and this will do Compares as  well by adding a plug-in it's up in here so you   can find like the compare plug-in and add it so  I'm not going to go in too much detail with this   but it's a free software that you can use to do  it as well so I'm going to close out of here and   I'll show you the last method to do this so inside  of here we want to open up our folder so I'm going   to do it this way this time so open folder go  to my downloads folder go to the Marlin folder   the Marlin folder and then select the folder now  obviously there's nothing here yet to compare if   we look inside of the Marlin folder we only have  these two so what we want to do is we'll go over   to our downloads folder we'll go to the compare  folder to cheat quick we'll copy both of these   then we'll go back over to the downloads folder  the Marlin folder the Marlin folder again   and then this folder will paste them right here  so I'll show you what happens inside of VScode   so in vs code we now have two of each now you're  going to delete these when you're done but what   you can do is for example you can highlight  both with the control button or the ship button   depending upon how you do it right click and then  there should be a function for compare selected   now you can see that there's a difference and  you see there's a little arrow so if you want   to actually copy over to as you can see up here  this is the SKR configuration and this is your   configuration big configuration.h so if you wanted  to say Okay I want this you can just click the   arrow so obviously this will speed up for a lot  of you how you're going to set up your device   in this case we're going to click this to bring  over our configuration but obviously it's not for   the SKR version 3. so you will have to look it up  like normal by going Source core boards.h search   on SKR underscore V3 and this will bring you to  your actual actual configuration pardonment so   you can just copy that out and then you can close  it go back over here and actually paste it here if   you want and that will set up your configuration  for configuration.h once you're done what you want   to do before you build is delete this and this  from your configuration obviously your platform   io.ini will have to change like normal where you  have to go search for your configuration so that's   going to be in the ini file so if you click over  here you're gonna have to find your board but to   find it a little clue besides the actual MCU on  the top of your motherboard is to go to boards.h   and over here you can see what the chipset is now  keep in mind that they have a habit at BigTreeTech   of adding new processors so if this is not up  to date what you'll have to do is update it so one   of the tricks you can use is to actually check to  see if it's something different on their website   but currently it looks like they have one  chipset listed here so it's STM32H743 so   we'll minimize this we'll go over here and we'll  find STM32F7 click on it and then we'll   search on SKR underscore V3 hopefully and it's  not showing up so let's do SKR so apparently I   might be in the wrong folder so let's go back  and double check so Source core boards.h STM32H7 so the folder that we're in is going to  have to be H seven so I was probably in the   wrong folder so SKR underscore V3 and as you  can see there's a couple of versions in here   so as you can see right here that's our  board so I'll highlight this right click copy   and then I'll minimize this source and I'll find  my PlatformIO replace my processor and we're   good there so I'm Gonna Knock these out for the  moment so I'm going to close this I'll show you   where the changes are hopefully if they worked so  we'll delete we'll move it to the recycling bin   we'll delete move it to the recycling bin and  then we'll double check to see what our actual   board is and it's correct so it already  copied it over so what we can do is we   can try and build it by clicking the check  box over here and the configuration that we   copied over may have an issue as it looks like  right here so let's see what we got here it says   unknown motherboard in your configuration  so there's obviously an error that I missed   so I can show you first of all the reason  it's unknown is because it's got an extra beat   so let's try this again but before we do that we  do have to change this to negative one because   it's a 32-bit board and you can pick that out with  your comparison that I showed you over in here   so if we were to go down through here we could  actually find what it is so you can see it's   right here for the SKR configuration and over here  it's zero so now let's try building this again   and at this moment um if you do have issues when  it's building remember sometimes things build out   of order it's less likely now than it was in the  past so you can always do a second build if there   is an issue where you see red like we just saw  earlier what you can do is go to the very first   error and you can even highlight it by hitting the  control button on your keyboard and then clicking   on it and it may give you more information  as to what you see but usually the errors   are pretty clear if not there's also a Discord  that I'll leave a link to in the description   for your convenience where you can talk to people  in general chat chat that actually have a similar   or possible understanding of what the issue may  be also you can do a file compare like I just   showed you to see if you can narrow down what  the error may be so at this moment I'd like to   thank you for taking the time to watch this video  please like And subscribe and as always I will   place a thank you note at the end of the video  for both the Patrons and the people on PayPal   that donate to this channel so everyone take  care be safe and remember to like And subscribe
Info
Channel: Ed's 3d Tech
Views: 2,531
Rating: undefined out of 5
Keywords: Vscode and platformio install, install platformio vscode, Marlin with VScode, how to use Marlin, Marlin firmware building, Marlin installing, configuring Marlin Firmware, How to use Marlin Firmware, VScode with PlatformIO and Marlin, Compiling with Marlin Firmware, Marlin Example Files, Using Marlin Example files, Deciphering Marlin Example files, Understanding Marlin Example Files, Decoding Marlin Example files, Finding setting in Marlin Example files, Example files
Id: WXTSUo3KZR8
Channel Id: undefined
Length: 15min 58sec (958 seconds)
Published: Sun Jun 18 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.