PageSourceSearch

https://kingroon-docs-admin.netlify.app/assets/js/320deae4.63ebb96a.js

js kingroon-docs-admin.netlify.app collected 2026-10-03 12:02:29 UTC 14,352 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkobico_docs=self.webpackChunkobico_docs||[]).push([[9480],{3905:function(e,t,n){n.d(t,{Zo:function(){return m},kt:function(){return h}});var a=n(7294);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t){if(null==e)return{};var n,a,i=function(e,t){if(null==e)return{};var n,a,i={},r=Object.keys(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var p=a.createContext({}),s=function(e){var t=a.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},m=function(e){var t=s(e.components);return a.createElement(p.Provider,{value:t},e.children)},c={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},d=a.forwardRef((function(e,t){var n=e.components,i=e.mdxType,r=e.originalType,p=e.parentName,m=l(e,["components","mdxType","originalType","parentName"]),d=s(n),h=i,f=d["".concat(p,".").concat(h)]||d[h]||c[h]||r;return n?a.createElement(f,o(o({ref:t},m),{},{components:n})):a.createElement(f,o({ref:t},m))}));function h(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var r=n.length,o=new Array(r);o[0]=d;var l={};for(var p in t)hasOwnProperty.call(t,p)&&(l[p]=t[p]);l.originalType=e,l.mdxType="string"==typeof e?e:i,o[1]=l;for(var s=2;s<r;s++)o[s]=n[s];return a.createElement.apply(null,o)}return a.createElement.apply(null,n)}d.displayName="MDXCreateElement"},4394:function(e,t,n){n.r(t),n.d(t,{contentTitle:function(){return p},default:function(){return d},frontMatter:function(){return l},metadata:function(){return s},toc:function(){return m}});var a=n(7462),i=n(3366),r=(n(7294),n(3905)),o=["components"],l={id:"filament-change-notifications-with-octoprint-general-32bit",title:"General instruction for recompiling the firmware to enable HOST_ACTION_COMMANDS for printers with a 32-bit mainboard"},p=void 0,s={unversionedId:"user-guides/filament-change-notifications-with-octoprint-general-32bit",id:"user-guides/filament-change-notifications-with-octoprint-general-32bit",title:"General instruction for recompiling the firmware to enable HOST_ACTION_COMMANDS for printers with a 32-bit mainboard",description:"Step 1: Install required software",source:"@site/docs/user-guides/filament-change-notifications-with-octoprint-general-32bit.md",sourceDirName:"user-guides",slug:"/user-guides/filament-change-notifications-with-octoprint-general-32bit",permalink:"/docs/user-guides/filament-change-notifications-with-octoprint-general-32bit",editUrl:"https://github.com/TheSpaghettiDetective/TheSpaghettiDetective/edit/master/website/docs/user-guides/filament-change-notifications-with-octoprint-general-32bit.md",tags:[],version:"current",frontMatter:{id:"filament-change-notifications-with-octoprint-general-32bit",title:"General instruction for recompiling the firmware to enable HOST_ACTION_COMMANDS for printers with a 32-bit mainboard"}},m=[{value:"Step 1: Install required software",id:"step-1-install-required-software",children:[],level:2},{value:"Step 2: Download the latest Marlin source code and configure it",id:"step-2-download-the-latest-marlin-source-code-and-configure-it",children:[],level:2},{value:"Step 3: Set the correct Environment",id:"step-3-set-the-correct-environment",children:[],level:2},{value:"Step 4: Enable HOST_ACTION_COMMANDS and M600",id:"step-4-enable-host_action_commands-and-m600",children:[],level:2},{value:"Step 5: Compile the firmware",id:"step-5-compile-the-firmware",children:[],level:2},{value:"Step 6: Flash the new firmware",id:"step-6-flash-the-new-firmware",children:[],level:2}],c={toc:m};function d(e){var t=e.components,l=(0,i.Z)(e,o);return(0,r.kt)("wrapper",(0,a.Z)({},c,l,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h2",{id:"step-1-install-required-software"}
1,"Step 1: Install required software"),(0,r.kt)("p",null,"First,  lets install all of the necessary programs. All of these programs have Mac and Windows versions available."),(0,r.kt)("ol",null,(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Install ",(0,r.kt)("a",{parentName:"p",href:"https://www.python.org/downloads/release/python-382/"},"Python"),".")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Install ",(0,r.kt)("a",{parentName:"p",href:"https://code.visualstudio.com/download"},"Microsoft Visual Studio Code")," and open it.")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"In VSCode, install the ",(0,r.kt)("a",{parentName:"p",href:"https://marketplace.visualstudio.com/items?itemName=MarlinFirmware.auto-build"},"Auto Build Marlin")," extension.")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Click the extensions button on the left side of VSCode and type \u2018Auto Build Marlin\u2019 and click to install it. Platform.io will also be installed at this time.")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Close and reopen VSCode to ensure the extensions you just installed are active."))),(0,r.kt)("p",null,(0,r.kt)("img",{alt:"Open Platform.io",src:n(2902).Z,width:"3831",height:"2065"})),(0,r.kt)("h2",{id:"step-2-download-the-latest-marlin-source-code-and-configure-it"},"Step 2: Download the latest Marlin source code and configure it"),(0,r.kt)("ol",null,(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Download ",(0,r.kt)("a",{parentName:"p",href:"https://marlinfw.org/meta/download/"},"Marlin"),". Most likely, you will want the latest version, which is 2.0.9.3 at this time. Make sure you download the both \u201cMarlin-2.0.x.zip\u201d and \u201cConfigurations-release-2.0.x.x.zip\u201d.")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"After downloading, extract the zip file.")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Find the configuration.h and configuration.adv files for your printer.")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Copy and paste the files into the .\\Marlin folder that is in the Marlin 2.xx folder that you unzipped in the previous step.")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"When prompted, choose to overwrite the two files that are already there."))),(0,r.kt)("h2",{id:"step-3-set-the-correct-environment"},"Step 3: Set the correct Environment"),(0,r.kt)("ol",null,(0,r.kt)("li",{parentName:"ol"},"Click the ",(0,r.kt)("em",{parentName:"li"},"home symbol")," on the bottom left of the screen to open Platform.io.")),(0,r.kt)("p",null,(0,r.kt)("img",{alt:"Open Project Platform.io",src:n(382).Z,width:"3674",height:"1933"})),(0,r.kt)("ol",null,(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Click the ",(0,r.kt)("em",{parentName:"p"},"Open Project")," button.")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Find the unzipped Marlin folder and click ",(0,r.kt)("em",{parentName:"p"},"Open"))),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Click the ",(0,r.kt)("em",{parentName:"p"},"Explorer")," button on the left side, and click the platform.ini menu")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Navigate to the Marlin Folder on the left side of the screen."))),(0,r.kt)("p",null,(0,r.kt)("img",{alt:"Find pins.h",src:n(3713).Z,width:"1865",height:"991"})),(0,r.kt)("ol",null,(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Select the ",(0,r.kt)("em",{parentName:"p"},"Marlin")," folder. Select ",(0,r.kt)("em",{parentName:"p"},"pins"),". Select ",(0,r.kt)("em",{parentName:"p"},"pins.h"))),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Type control-f and then search for your mainboard manufacturer and find the name of the mainboard on your printer. If you do not know which mainboard is equipped with your printer, reach out to the manufacturer and ask them which mainboard your printer has and which environment you need to use to recompile Marlin. For example, the creality ender 3V2 uses the Creality 4.2.2 mainboard but every printer is different."))),(0,r.kt)("p",null,(0,r.kt)("img",{alt:"Find the environment for your mainboard",src:n(8809).Z,width:"951",height:"445"})),(0,r.kt)("ol",null,(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"}
1,"Copy the environment corresponding to your board.")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Replace the default_envs with the environment you found in the previous step."))),(0,r.kt)("h2",{id:"step-4-enable-host_action_commands-and-m600"},"Step 4: Enable HOST_ACTION_COMMANDS and M600"),(0,r.kt)("ol",null,(0,r.kt)("li",{parentName:"ol"},"Click the ",(0,r.kt)("em",{parentName:"li"},"home symbol")," on the bottom left of the screen to open Platform.io.")),(0,r.kt)("p",null,(0,r.kt)("img",{alt:"Open Project Platform.io",src:n(382).Z,width:"3674",height:"1933"})),(0,r.kt)("ol",{start:2},(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Click the ",(0,r.kt)("em",{parentName:"p"},"Open Project")," button.")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Find the unzipped Marlin folder and click ",(0,r.kt)("em",{parentName:"p"},"Open"))),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Click the ",(0,r.kt)("em",{parentName:"p"},"Explorer")," button on the left side and edit the configuration_adv file in the Marlin folder.")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"To enable the M600 command, type ",(0,r.kt)("em",{parentName:"p"},"control-f")," on your keyboard, and search for ",(0,r.kt)("em",{parentName:"p"},"M600")," to find where it is listed in the file.")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Delete the two ",(0,r.kt)("inlineCode",{parentName:"p"},"/")," symbols in front of ",(0,r.kt)("inlineCode",{parentName:"p"},"#define ADVANCED_PAUSE_FEATURE")))),(0,r.kt)("p",null,(0,r.kt)("img",{alt:"Enable M600",src:n(7948).Z,width:"1157",height:"631"})),(0,r.kt)("ol",{start:7},(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"To enable Host Action Commands Type ",(0,r.kt)("em",{parentName:"p"},"control-f")," again and search for host action command. Scroll down until you see ",(0,r.kt)("em",{parentName:"p"},"Host Action Commands"))),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Delete the ",(0,r.kt)("inlineCode",{parentName:"p"},"/")," symbol in front of ",(0,r.kt)("inlineCode",{parentName:"p"},"#define HOST_ACTION_COMMANDS")))),(0,r.kt)("p",null,(0,r.kt)("img",{alt:"Host Action Commands",src:n(658).Z,width:"788",height:"507"})),(0,r.kt)("ol",{start:9},(0,r.kt)("li",{parentName:"ol"},"Save the file")),(0,r.kt)("h2",{id:"step-5-compile-the-firmware"},"Step 5: Compile the firmware"),(0,r.kt)("ol",null,(0,r.kt)("li",{parentName:"ol"},"Hover over the build section on the top left side of the screen and you will see a hammer icon. Click this icon and click Build on the right to start building the firmware.")),(0,r.kt)("div",{className:"admonition admonition-note alert alert--secondary"},(0,r.kt)("div",{parentName:"div",className:"admonition-heading"},(0,r.kt)("h5",{parentName:"div"},(0,r.kt)("span",{parentName:"h5",className:"admonition-icon"},(0,r.kt)("svg",{parentName:"span",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16"},(0,r.kt)("path",{parentName:"svg",fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"}))),"note")),(0,r.kt)("div",{parentName:"div",className:"admonition-content"},(0,r.kt)("p",{parentName:"div"},"Be patient, compiling the firmware can take as long as ten minutes."))),(0,r.kt)("ol",{start:2},(0,r.kt)("li",{parentName:"ol"},"At the end of the terminal, you should see a list of boards, with most of them saying Ignored, and 
1your board listed as Success.")),(0,r.kt)("h2",{id:"step-6-flash-the-new-firmware"},"Step 6: Flash the new firmware"),(0,r.kt)("ol",null,(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"Go to the folder where you extracted Marlin, and under, .",".","pio\\build\\TheNameOfYourBoard. You should see a firmware.bin file. This is the file you will flash to your 3D printer.")),(0,r.kt)("li",{parentName:"ol"},(0,r.kt)("p",{parentName:"li"},"As flashing the actual firmware varies from printer to printer, we will not cover this process, but google searching \u201cHow to flash ","[your printer\u2019s name]"," firmware\u201d should yield plenty of applicable tutorials."))))}d.isMDXComponent=!0},7948:function(e,t,n){t.Z=n.p+"assets/images/advanced-pause-m600-8a5043e7b37cce462a1b887ab3feb0be.png"},3713:function(e,t,n){t.Z=n.p+"assets/images/find-environment-for-board-marlin-ender-3-v2-af3bdb5456b512bb44976063d824c48a.jpg"},2902:function(e,t,n){t.Z=n.p+"assets/images/home-button-vscode-c74de3fc186cce28ffa06d3e1f265009.PNG"},658:function(e,t,n){t.Z=n.p+"assets/images/host-action-commands-106ecff7fabf304ffe43e1db4bdbe665.png"},382:function(e,t,n){t.Z=n.p+"assets/images/open-project-platform-io-e91e06217ffce9f1a2bf6924e472ca5c.PNG"},8809:function(e,t,n){t.Z=n.p+"assets/images/platformio-environment-for-creality-ender-3v2-4928a71ae1c37a6fb6d34634713655a3.jpg"}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.