Skip to content

Commit

Permalink
auto build binary
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Terentiev <[email protected]>
  • Loading branch information
Sergey1560 committed Jan 3, 2023
1 parent c99f852 commit c87862d
Show file tree
Hide file tree
Showing 14 changed files with 2,768 additions and 12 deletions.
21 changes: 16 additions & 5 deletions Marlin/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -1639,6 +1639,7 @@
// @section motion

/**************** Driver DIR Configuration *******************/
#ifndef AUTO_BUILD
//Robin Nano v1.1 and v1.2 configs:
// 4 x TMC 2208/2209
#define ALL_DRV_2208
Expand All @@ -1661,6 +1662,7 @@

//Flying Bear Reborn 3.0
//#define FB_5_REBORN_3_0
#endif

#ifdef ALL_DRV_2208
#define USR_E0_DIR true
Expand Down Expand Up @@ -1854,13 +1856,22 @@
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
#define FIL_RUNOUT_ENABLED_DEFAULT false // Enable the sensor on startup. Override with M412 followed by M500.
#define NUM_RUNOUT_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each.
#define FIL_RUNOUT_STATE FIL_RUNOUT_LEVEL // Pin state indicating that filament is NOT present.

#if FIL_RUNOUT_LEVEL==LOW
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
#else
#define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins.
#ifdef PRINTER_NAME_FB5
#define FIL_RUNOUT_STATE LOW // Pin state indicating that filament is NOT present.
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
#endif

#ifdef PRINTER_NAME_FB4S
#define FIL_RUNOUT_STATE HIGH // Pin state indicating that filament is NOT present.
#define FIL_RUNOUT_PULLDOWN // Use internal pullup for filament runout pins.
#endif

#ifndef FIL_RUNOUT_STATE
#define FIL_RUNOUT_STATE LOW // Pin state indicating that filament is NOT present.
#define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins.
#endif

//#define WATCH_ALL_RUNOUT_SENSORS // Execute runout script on any triggering sensor, not only for the active extruder.
// This is automatically enabled for MIXING_EXTRUDERs.

Expand Down
9 changes: 7 additions & 2 deletions Marlin/src/pins/stm32f1/pins_MKS_ROBIN_NANO.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,13 @@

#include "pins_MKS_ROBIN_NANO_common.h"

//#define PRINTER_NAME_FB5
#define PRINTER_NAME_FB4S
#ifndef PRINTER_NAME_FB5
#ifndef PRINTER_NAME_FB4S
#define PRINTER_NAME_FB4S
//#define PRINTER_NAME_FB5
#endif
#endif


#ifdef PRINTER_NAME_FB5
#ifdef PRINTER_NAME_FB4S
Expand Down
8 changes: 7 additions & 1 deletion Marlin/src/pins/stm32f4/pins_MKS_ROBIN_NANO_V1_3_F4.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@

#include "../stm32f1/pins_MKS_ROBIN_NANO_common.h"

#define PRINTER_NAME_FB5
#ifdef PRINTER_NAME_FB4S
#undef PRINTER_NAME_FB4S
#endif

#ifndef PRINTER_NAME_FB5
#define PRINTER_NAME_FB5
#endif

// Если нужен сменный драйвер в слоте второго экструдера как основной экструдер, нужно раскоментировать этот параметр
//#define EXT_EXTRUDER_DRIVER
Expand Down
62 changes: 62 additions & 0 deletions build_config/build_bin.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#!/bin/bash

PIO_PATH="~/.platformio/penv/bin/pio"
PIO_PARAM="run -s"
PIO_CONFIG_PATH="./build_config"

BIN_DIR="./build_bin"
BIN_F103_DIR="stm32f103_boards"
BIN_F407_DIR="stm32f407_boards"

RN_PATH_F1="./.pio/build/mks_robin_nano_v1v2/Robin_nano35.bin"
RN_PATH_F4="./.pio/build/mks_robin_nano_v1_3_f4/Robin_nano35.bin"

echo "Clean bin dir"
rm -rf ${BIN_DIR}

echo "Mkdir struct"
mkdir ${BIN_DIR}
mkdir -p ${BIN_DIR}/{${BIN_F103_DIR},${BIN_F407_DIR}}
mkdir -p ${BIN_DIR}/${BIN_F103_DIR}/{reborn_v3,robin_nano_v1_1}
mkdir ${BIN_DIR}/${BIN_F103_DIR}/robin_nano_v1_1/{fb_4s,fb4s_all_drv_2208,fb_5,fb5_all_drv_2208}
mkdir ${BIN_DIR}/${BIN_F407_DIR}/{robin_nano_1_3_A4988_TMC,robin_nano_1_3_TMC,robin_nano_s_1_3,robin_nano_s_1_3_with_2209}

echo "STM32F4 Boards"
echo " - Robin Nano 1.3 s"
${PIO_PATH} ${PIO_PARAM} -c ${PIO_CONFIG_PATH}/platformio_fb5_rn13_s.ini
cp ${RN_PATH_F4} ${BIN_DIR}/${BIN_F407_DIR}/robin_nano_s_1_3

echo " - Robin Nano 1.3 s + 2209"
${PIO_PATH} ${PIO_PARAM} -c ${PIO_CONFIG_PATH}/platformio_fb5_rn13_s_2209.ini
cp ${RN_PATH_F4} ${BIN_DIR}/${BIN_F407_DIR}/robin_nano_s_1_3_with_2209

echo " - Robin Nano 1.3 ALL 2209"
${PIO_PATH} ${PIO_PARAM} -c ${PIO_CONFIG_PATH}/platformio_fb5_rn13_tmc.ini
cp ${RN_PATH_F4} ${BIN_DIR}/${BIN_F407_DIR}/robin_nano_1_3_TMC

echo " - Robin Nano 1.3 A4988 + 2209"
${PIO_PATH} ${PIO_PARAM} -c ${PIO_CONFIG_PATH}/platformio_fb5_rn13_a4988_tmc.ini
cp ${RN_PATH_F4} ${BIN_DIR}/${BIN_F407_DIR}/robin_nano_1_3_A4988_TMC


echo "STM32F1 Boards"
echo " - Robin Nano 1.1 FB4s stock"
${PIO_PATH} ${PIO_PARAM} -c ${PIO_CONFIG_PATH}/platformio_fb4_rn_11_a4988.ini
cp ${RN_PATH_F1} ${BIN_DIR}/${BIN_F103_DIR}/fb_4s

echo " - Robin Nano 1.1 FB4s 2208"
${PIO_PATH} ${PIO_PARAM} -c ${PIO_CONFIG_PATH}/platformio_fb4_rn_11_2208.ini
cp ${RN_PATH_F1} ${BIN_DIR}/${BIN_F103_DIR}/fb4s_all_drv_2208

echo " - Robin Nano 1.1 FB5 stock"
${PIO_PATH} ${PIO_PARAM} -c ${PIO_CONFIG_PATH}/platformio_fb5_rn_11_a4988.ini
cp ${RN_PATH_F1} ${BIN_DIR}/${BIN_F103_DIR}/fb_5

echo " - Robin Nano 1.1 FB5 2208"
${PIO_PATH} ${PIO_PARAM} -c ${PIO_CONFIG_PATH}/platformio_fb5_rn_11_2208.ini
cp ${RN_PATH_F1} ${BIN_DIR}/${BIN_F103_DIR}/fb5_all_drv_2208

echo " - Reborn 3.0"
${PIO_PATH} ${PIO_PARAM} -c ${PIO_CONFIG_PATH}/platformio_fb5_rb_30.ini
cp ${RN_PATH_F1} ${BIN_DIR}/${BIN_F103_DIR}/reborn_v3

Loading

0 comments on commit c87862d

Please sign in to comment.