Add support for Arm'ed (STM32F4) board (#12147)

2.0.x
Karl Andersson 6 years ago committed by Scott Lahteine
parent 1fb9b299d4
commit 4eb798dbdc

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -231,6 +231,7 @@
#define BOARD_TEENSY35_36 841 // Teensy3.5 and Teensy3.6 #define BOARD_TEENSY35_36 841 // Teensy3.5 and Teensy3.6
#define BOARD_BEAST 1802 // STM32FxxxVxT6 Libmaple based stm32f4 controller #define BOARD_BEAST 1802 // STM32FxxxVxT6 Libmaple based stm32f4 controller
#define BOARD_STM32F4 1804 // STM32 STM32GENERIC based STM32F4 controller #define BOARD_STM32F4 1804 // STM32 STM32GENERIC based STM32F4 controller
#define BOARD_ARMED 1807 // Arm'ed STM32F4 based controller
// //
// ARM Cortex M7 // ARM Cortex M7

@ -397,6 +397,8 @@
#include "pins_BEAST.h" // STM32F4 env:STM32F4 #include "pins_BEAST.h" // STM32F4 env:STM32F4
#elif MB(STM32F4) #elif MB(STM32F4)
#include "pins_STM32F4.h" // STM32F4 env:STM32F4 #include "pins_STM32F4.h" // STM32F4 env:STM32F4
#elif MB(ARMED)
#include "pins_ARMED.h" // STM32F4 env:ARMED
// //
// ARM Cortex M7 // ARM Cortex M7

@ -0,0 +1,174 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef STM32F4
#error "Oops! Make sure you have an STM32F4 board selected from the 'Tools -> Boards' menu."
#endif
#ifndef ARMED_V1_0
#define ARMED_V1_1
#endif
#define DEFAULT_MACHINE_NAME "Arm'ed"
#define BOARD_NAME "Arm'ed"
#define I2C_EEPROM
#define E2END 0xFFF // EEPROM end address (4kB)
#if HOTENDS > 2 || E_STEPPERS > 2
#error "Arm'ed supports up to 2 hotends / E-steppers."
#endif
//
// Limit Switches
//
#define X_MIN_PIN PE0
#define X_MAX_PIN -1
#define Y_MIN_PIN PE1
#define Y_MAX_PIN -1
#define Z_MIN_PIN PE14
#define Z_MAX_PIN -1
//
// Z Probe (when not Z_MIN_PIN)
//
// #ifndef Z_MIN_PROBE_PIN
// #define Z_MIN_PROBE_PIN PA4
// #endif
//
// Steppers
//
#ifdef ARMED_SWAP_X_E1
#define X_STEP_PIN PE4
#define X_DIR_PIN PE2
#define X_ENABLE_PIN PE3
#define X_CS_PIN PE5
#else
#define X_STEP_PIN PD3
#define X_DIR_PIN PD2
#define X_ENABLE_PIN PD0
#define X_CS_PIN PD1
#endif
#define Y_STEP_PIN PE11
#define Y_DIR_PIN PE10
#define Y_ENABLE_PIN PE13
#define Y_CS_PIN PE12
#define Z_STEP_PIN PD6
#define Z_DIR_PIN PD7
#define Z_ENABLE_PIN PD4
#define Z_CS_PIN PD5
#define E0_STEP_PIN PB5
#define E0_DIR_PIN PB6
#define E0_CS_PIN PB4
#ifdef ARMED_V1_0
#define E0_ENABLE_PIN PB3
#else
#define E0_ENABLE_PIN PC12
#endif
#ifdef ARMED_SWAP_X_E1
#define E1_STEP_PIN PD3
#define E1_DIR_PIN PD2
#define E1_ENABLE_PIN PD0
#define E1_CS_PIN PD1
#else
#define E1_STEP_PIN PE4
#define E1_DIR_PIN PE2
#define E1_ENABLE_PIN PE3
#define E1_CS_PIN PE5
#endif
//
// SPI
//
#define SCK_PIN PA5
#define MISO_PIN PA6
#define MOSI_PIN PA7
//
// Temperature Sensors
//
#define TEMP_0_PIN PC0 // Analog Input
#define TEMP_1_PIN PC1 // Analog Input
#define TEMP_BED_PIN PC2 // Analog Input
//
// Heaters / Fans
//
#define HEATER_0_PIN PA1 // PWM pin
#define HEATER_1_PIN PA2 // PWM pin
#define HEATER_BED_PIN PA0 // PWM pin
#define FAN_PIN PC6 // PWM pin, Part cooling fan
#define FAN1_PIN PC7 // PWM pin, Extruder fan
#define FAN2_PIN PC8 // PWM pin, Controller fan
//
// Misc functions
//
#define SDSS PE7
#define SS_PIN PE7
#define LED_PIN PB7 // Heart beat
#define PS_ON_PIN PA10
#define KILL_PIN PA8
#define PWR_LOSS PA4 // Power loss / nAC_FAULT
//
// LCD / Controller
//
#define SD_DETECT_PIN PA15
#define BEEPER_PIN PC9
#define LCD_PINS_RS PE9
#define LCD_PINS_ENABLE PE8
#define LCD_PINS_D4 PB12
#define LCD_PINS_D5 PB13
#define LCD_PINS_D6 PB14
#define LCD_PINS_D7 PB15
#define BTN_EN1 PC4
#define BTN_EN2 PC5
#define BTN_ENC PC3
//
// Filament runout detection
//
#define FIL_RUNOUT_PIN PA3
//
// Extension pins
//
#define EXT0_PIN PB0
#define EXT1_PIN PB1
#define EXT2_PIN PB2
#define EXT3_PIN PD8
#define EXT4_PIN PD9
#define EXT5_PIN PD10
#define EXT6_PIN PD11
#define EXT7_PIN PD12
#define EXT8_PIN PB10
#define EXT9_PIN PB11

@ -280,6 +280,19 @@ lib_ignore = Adafruit NeoPixel, c1921b4, TMCStepper
src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F4> src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F4>
monitor_speed = 250000 monitor_speed = 250000
#
# ARMED
#
[env:ARMED]
platform = ststm32
framework = arduino
board = ARMED
build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing -std=gnu11 -std=gnu++11
lib_deps = ${common.lib_deps}
lib_ignore = Adafruit NeoPixel, c1921b4
src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F4>
monitor_speed = 250000
# #
# Teensy 3.5 / 3.6 (ARM Cortex-M4) # Teensy 3.5 / 3.6 (ARM Cortex-M4)
# #

Loading…
Cancel
Save