소스 검색

Archim: PIO upload on Windows, Arduino IDE LCD (#17405)

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
Ryan 4 년 전
부모
커밋
a97ae51cc7
No account linked to committer's email address
3개의 변경된 파일20개의 추가작업 그리고 4개의 파일을 삭제
  1. 18
    0
      Marlin/src/HAL/DUE/upload_extra_script.py
  2. 0
    4
      Marlin/src/HAL/DUE/usb/conf_usb.h
  3. 2
    0
      platformio.ini

+ 18
- 0
Marlin/src/HAL/DUE/upload_extra_script.py 파일 보기

@@ -0,0 +1,18 @@
1
+#
2
+# Set upload_command
3
+#
4
+#  Windows: bossac.exe
5
+#  Other: leave unchanged
6
+#
7
+
8
+import platform
9
+current_OS = platform.system()
10
+
11
+if current_OS == 'Windows':
12
+
13
+	Import("env")
14
+
15
+	# Use bossac.exe on Windows
16
+	env.Replace(
17
+	    UPLOADCMD="bossac --info --unlock --write --verify --reset --erase -U false --boot"
18
+	)

+ 0
- 4
Marlin/src/HAL/DUE/usb/conf_usb.h 파일 보기

@@ -78,10 +78,6 @@
78 78
 //! To define a Full speed device
79 79
 //#define USB_DEVICE_FULL_SPEED
80 80
 
81
-#if MB(ARCHIM1)
82
-  #define USB_DEVICE_FULL_SPEED
83
-#endif
84
-
85 81
 //! To authorize the High speed
86 82
 #ifndef USB_DEVICE_FULL_SPEED
87 83
   #if (UC3A3||UC3A4)

+ 2
- 0
platformio.ini 파일 보기

@@ -214,6 +214,7 @@ board         = due
214 214
 src_filter    = ${common.default_src_filter} +<src/HAL/DUE>
215 215
 build_flags   = ${common.build_flags}
216 216
   -DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON
217
+extra_scripts = Marlin/src/HAL/DUE/upload_extra_script.py
217 218
 
218 219
 [env:DUE_archim_debug]
219 220
 # Used when WATCHDOG_RESET_MANUAL is enabled
@@ -223,6 +224,7 @@ src_filter    = ${common.default_src_filter} +<src/HAL/DUE>
223 224
 build_flags   = ${common.build_flags}
224 225
   -DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON
225 226
   -funwind-tables -mpoke-function-name
227
+extra_scripts = Marlin/src/HAL/DUE/upload_extra_script.py
226 228
 
227 229
 #
228 230
 # NXP LPC176x ARM Cortex-M3

Loading…
취소
저장