Browse Source

Fix Archim 2 build for PIO

Scott Lahteine 4 years ago
parent
commit
723d4d6f61
3 changed files with 21 additions and 2 deletions
  1. 1
    1
      Marlin/Makefile
  2. 1
    1
      Marlin/src/pins/pins.h
  3. 19
    0
      platformio.ini

+ 1
- 1
Marlin/Makefile View File

686
 
686
 
687
 else ifeq ($(HARDWARE_VARIANT), archim)
687
 else ifeq ($(HARDWARE_VARIANT), archim)
688
   CDEFS      += -DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSB_VID=0x27b1 -DUSB_PID=0x0001 -DUSBCON '-DUSB_MANUFACTURER="UltiMachine"' '-DUSB_PRODUCT="Archim"'
688
   CDEFS      += -DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSB_VID=0x27b1 -DUSB_PID=0x0001 -DUSBCON '-DUSB_MANUFACTURER="UltiMachine"' '-DUSB_PRODUCT="Archim"'
689
-  LIB_CXXSRC += variant.cpp IPAddress.cpp Reset.cpp RingBuffer.cpp Stream.cpp UARTClass.cpp  USARTClass.cpp abi.cpp new.cpp watchdog.cpp CDC.cpp PluggableUSB.cpp  USBCore.cpp
689
+  LIB_CXXSRC += variant.cpp IPAddress.cpp Reset.cpp RingBuffer.cpp Stream.cpp UARTClass.cpp  USARTClass.cpp abi.cpp new.cpp watchdog.cpp CDC.cpp PluggableUSB.cpp USBCore.cpp
690
   LIB_SRC    += cortex_handlers.c iar_calls_sam3.c syscalls_sam3.c dtostrf.c itoa.c
690
   LIB_SRC    += cortex_handlers.c iar_calls_sam3.c syscalls_sam3.c dtostrf.c itoa.c
691
 
691
 
692
   ifeq ($(U8GLIB), 1)
692
   ifeq ($(U8GLIB), 1)

+ 1
- 1
Marlin/src/pins/pins.h View File

454
 #elif MB(ARCHIM1)
454
 #elif MB(ARCHIM1)
455
   #include "sam/pins_ARCHIM1.h"                 // SAM3X8E                                env:DUE env:DUE_debug
455
   #include "sam/pins_ARCHIM1.h"                 // SAM3X8E                                env:DUE env:DUE_debug
456
 #elif MB(ARCHIM2)
456
 #elif MB(ARCHIM2)
457
-  #include "sam/pins_ARCHIM2.h"                 // SAM3X8E                                env:DUE env:DUE_debug
457
+  #include "sam/pins_ARCHIM2.h"                 // SAM3X8E                                env:DUE_archim env:DUE_archim_debug
458
 #elif MB(ALLIGATOR)
458
 #elif MB(ALLIGATOR)
459
   #include "sam/pins_ALLIGATOR_R2.h"            // SAM3X8E                                env:DUE env:DUE_debug
459
   #include "sam/pins_ALLIGATOR_R2.h"            // SAM3X8E                                env:DUE env:DUE_debug
460
 #elif MB(ADSK)
460
 #elif MB(ADSK)

+ 19
- 0
platformio.ini View File

207
   -mpoke-function-name
207
   -mpoke-function-name
208
 
208
 
209
 #
209
 #
210
+# Archim SAM
211
+#
212
+[env:DUE_archim]
213
+platform      = atmelsam
214
+board         = due
215
+src_filter    = ${common.default_src_filter} +<src/HAL/DUE>
216
+build_flags   = ${common.build_flags}
217
+  -DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON
218
+
219
+[env:DUE_archim_debug]
220
+# Used when WATCHDOG_RESET_MANUAL is enabled
221
+platform      = atmelsam
222
+board         = due
223
+src_filter    = ${common.default_src_filter} +<src/HAL/DUE>
224
+build_flags   = ${common.build_flags}
225
+  -DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON
226
+  -funwind-tables -mpoke-function-name
227
+
228
+#
210
 # NXP LPC176x ARM Cortex-M3
229
 # NXP LPC176x ARM Cortex-M3
211
 #
230
 #
212
 [env:LPC1768]
231
 [env:LPC1768]

Loading…
Cancel
Save