makerbase-mks / MKS-Robin-E3-E3D

MKS Robin E3 E3D 32Bit Control Board 3D Printer parts with tmc2209 Uart mode driver For Creality Ender 3 CR-10
https://www.aliexpress.com/item/4000781744682.html
GNU General Public License v3.0
117 stars 99 forks source link

uploading custom code in Mks robin e3 v1.1 #182

Open akshar2324 opened 9 months ago

akshar2324 commented 9 months ago

hello i have this code but i want to use it for other use i want to run single stepper motor continues i want to upload my custom code but i have never work on this type of board can anyone help me , i have try but it is Detecting com port but when i upload i am getting"no st-link detected please connect and restart debug" in STM32cube IDE .

TrulyMarcus commented 3 months ago

Oh god this post is old, but for anyone else interested. You need an Stlink, cheap one from amazon will do. Connect the DIO, CLK, RST, GRND, and 3.3v. between the stink and the board. If you flip the board over you will see the labels on a set of six pins near the stm32 chip. Once those are connected open up the StmCubeprogrammer and plug in your Stlink to the computer. Generally it detects there is an Stlink and autofills with the connection info. You may have to try updating the Stlink firmware via a button underneath all the connection info. Also I've sometimes needed to press the reset button on the board to get the programmer to recognize the board. Once connected go to the "Erasing and Programming" tab, its the one under the pencil on the far left. You'll see file path and browse near the top of the window now. Click browse and select the .bin file you had Arduino create. I've found it works with a .bin compiled for Stm32f103RCT (Blue Button) board in the Arduino options. For the start address you put 0x08005000 . I select "verify" even though it's probably not necessary, and I leave "run after programming" unchecked. Click "start programming" and when it's done press the restart button and you should be good to go. I did this with a simple Serial output program just to keep the compilation short and the output easy, when I was done I disconnected the Stlink in the cube programmer software, opened Arduino and clicked Serial monitor.