본문 바로가기

Desktop CNC

Compiling GRBL with Visual Studio Code

Compiling GRBL with Visual Studio Code (GRBL 컴파일)

 

 

1. Download lastest grbl from here

 

 

2. Extract file to anywhere

 

 

3. Launch Arduino IDE 

 

 

4. Load the grbl folder into the Arduino IDE as a Library.

 

  1) Menu location

 

  2) Must choose grbl not grbl-xxxx

 

  3) Then you can find the grbl in arduino library folder

 

 

5. Launch Visual Studio Code and open grbl folder

 

  1) Menu location

 

  2) Choose grbl library folder

 

 

6. Setting up Visual Studio Code for grbl

 

  1) Press F1 and choose Arduino:Initialize

 

  2) Open arduino.json

 

  3) Edit arduino.json

    ※ Chinese arduino nano has older bootloader

{
    "sketch": "examples\\grblUpload\\grblUpload.ino",
    "port": "COM4",
    "board": "arduino:avr:nano",
    "configuration": "cpu=atmega328old",
    "output": "..\\grbl-build"
}

 

 

7. Compile and upload