GRBL_STM32 icon indicating copy to clipboard operation
GRBL_STM32 copied to clipboard

How to flashing

Open qiwalker opened this issue 4 years ago • 5 comments

hi im interest to use your firmware is there any tutorial to flashing ?

thanks ^^

qiwalker avatar Dec 23 '20 03:12 qiwalker

hi qiwalker,

please download STM32CubeProgrammer to download the program. https://www.st.com/en/development-tools/stm32cubeprog.html

Please read this page : https://www.waveshare.com/product/mcu-tools/core-boards-compact-boards/stm32-core/core746i.htm

Switch 11 must be on "System" position and connect your board to the PC. Import the file (.*bin) and download.

technosar avatar Jan 04 '21 06:01 technosar

hi, happy new years!

received ur information and thanks

as i read on the document is able to use 8 axis, how to configure the axis usage ? and where i can find the pin mapping ?

thanks ^^

qiwalker avatar Jan 08 '21 01:01 qiwalker

hi qiwalker , happy new year too !

You will find all informations in the GRBL_STM32/grbl/cpu_map.h file.

Step port : #define STEP_PORT GPIOG #define X_STEP_BIT 0 #define Y_STEP_BIT 2 #define Z_STEP_BIT 4 #define A_STEP_BIT 6 #define B_STEP_BIT 8 #define C_STEP_BIT 10 #define U_STEP_BIT 12 #define V_STEP_BIT 14

Direction port: #define DIRECTION_PORT GPIOG #define X_DIRECTION_BIT 1 #define Y_DIRECTION_BIT 3 #define Z_DIRECTION_BIT 5 #define A_DIRECTION_BIT 7 #define B_DIRECTION_BIT 9 #define C_DIRECTION_BIT 11 #define U_DIRECTION_BIT 13 #define V_DIRECTION_BIT 15

Example : For X motor, GPIOG0 is PULSE pin and GPIOG1 is DIRECTION pin For Y motor, GPIOG2 is PULSE pin and GPIOG3 is DIRECTION pin For Z motor, GPIOG4 is PULSE pin and GPIOG5 is DIRECTION pin ...

To use all 8 axis, you have to write your own software.

I hope I answered the question.

technosar avatar Jan 08 '21 22:01 technosar

ok thanks for your prompt reply

regarding

  • M62 set outputs
  • M63 reset outputs
  • M66 wait input event

how to configure usage pin for M62 code ?

qiwalker avatar Jan 09 '21 02:01 qiwalker

set output 0 M62 P0

reset output 0 M63 P0

The outputs are connected to the SPI bus. I use a MC33879 to drive all the 16 outputs.

Here is the schematic example : io.pdf

technosar avatar Jan 09 '21 22:01 technosar