Skip to content

compile and download firmware

Eryone edited this page May 15, 2019 · 1 revision

compile and download firmware

1、You can download all the source code of the firmware and tools from the below github link。

https://github.com/hackaday3D/marlin_stm32

As we know that the firmware marlin is the most popular,reliable and precise firmware for 3D printer, the marlin_stm32 is based on Marlin V1.1.9 which is the latest stable version .
The 90% of the source code in marlin_stm32 is almost the same as MarlinV1.1.9, so the usage is the same as marlin, easy to configure,for more detail you can see the http://marlinfw.org .
For easy to use,we developed our IDE tool “nanofactory.exe” instead of arduino IDE just for compile and upload.
Source code can be view/edit by any text editor,e.g. Notepad++、UltraEdit、source insight.

2、 Run compile tool “nanofactory.exe”,click open to open “*.erw”, here choose the project.erw.

3、Click verify button to compile.


4、Power on the control board, connect to PC with USB line.Choose the right port and then click upload for upload the firmware to board.

PinMap

There is one pinmap of the Mega2560,you need to look up the pinmap table if you want to change the pin setting in the code. the pin setting is easier than mega2560 for that you do not need to look up the pinmap. Arduino Mega2560 PIN mapping table

Pin Number Pin Name Mapped Pin Name
1 PG5 ( OC0B ) Digital pin 4 (PWM)
2 PE0 ( RXD0/PCINT8 ) Digital pin 0 (RX0)
... ... ...

Marlin32 STM32F103 PIN mapping table

Pin Number Pin Name Mapped Pin Name
1 PE2 0xE2
2 PE3 0xE3
... ... ...


Code example
Pins setting for control board of Marlin 2560 pins_RAMBO.h
#define X_STEP_PIN 37
#define X_DIR_PIN 48
#define X_ENABLE_PIN 29
Pins setting for control board Marlin stm32 pins_ERYONE_STM32F103.h
#define X_STEP_PIN 0xDC //PD12
#define X_DIR_PIN 0xDB //PD11
#define X_ENABLE_PIN 0xC6 //PC6

Clone this wiki locally