我是使用Arduino 1.8.5來編譯上傳,我假設你己經會用它了。當然要使用USB線和對應的驅動程式,一旦更新後,USB COM port X(看你的電腦指定到COM幾),baud rate就要改成250000,之前沒有原始碼的baud rate並不是250000(是115200?),如果你發現連不上了,或是D-force一直重開機,那大概就是這個問題。
这是一条来自好几年后的评论。我在近期入手了一台同款打印机,但是它的固件出现了问题。近期的新固件都无法正常在这台机器上工作。有幸翻找到您这篇文章。本人在刷写文中附带的固件时出现了本人无法解决的问题。希望能够得到您的帮助。主板上的版本号为 MKS BASE v1.3 。以下是附带的错误信息: --- Arduino:1.8.19 (Windows 10), 开发板:"Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from C:\Users\17727\Desktop\Marlin-D-force-V2-1.1.9\Marlin\endstops.cpp:35:0:
C:\Users\17727\Desktop\Marlin-D-force-V2-1.1.9\Marlin\endstop_interrupts.h: In function 'void setup_endstop_interrupts()':
endstop_interrupts.h:131:7: error: non-constant condition for static assertion
static_assert(digitalPinToPCICR(Y_MAX_PIN) != NULL, "Y_MAX_PIN is not interrupt-capable");
^~~~~~~~~~~~~
In file included from C:\Users\17727\Desktop\Marlin-D-force-V2-1.1.9\Marlin\endstops.cpp:35:0:
endstop_interrupts.h:57:57: error: reinterpret_cast from integer to pointer
WITHIN(p, 62, 69) ? &PCICR : (uint8_t*)0 )
^
C:\Users\17727\Desktop\Marlin-D-force-V2-1.1.9\Marlin\endstop_interrupts.h:131:21: note: in expansion of macro 'digitalPinToPCICR'
static_assert(digitalPinToPCICR(Y_MAX_PIN) != NULL, "Y_MAX_PIN is not interrupt-capable");
^~~~~~~~~~~~~~~~~
exit status 1
non-constant condition for static assertion --- 期待您的答复!
1 則留言:
这是一条来自好几年后的评论。我在近期入手了一台同款打印机,但是它的固件出现了问题。近期的新固件都无法正常在这台机器上工作。有幸翻找到您这篇文章。本人在刷写文中附带的固件时出现了本人无法解决的问题。希望能够得到您的帮助。主板上的版本号为 MKS BASE v1.3 。以下是附带的错误信息:
---
Arduino:1.8.19 (Windows 10), 开发板:"Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from C:\Users\17727\Desktop\Marlin-D-force-V2-1.1.9\Marlin\endstops.cpp:35:0:
C:\Users\17727\Desktop\Marlin-D-force-V2-1.1.9\Marlin\endstop_interrupts.h: In function 'void setup_endstop_interrupts()':
endstop_interrupts.h:131:7: error: non-constant condition for static assertion
static_assert(digitalPinToPCICR(Y_MAX_PIN) != NULL, "Y_MAX_PIN is not interrupt-capable");
^~~~~~~~~~~~~
In file included from C:\Users\17727\Desktop\Marlin-D-force-V2-1.1.9\Marlin\endstops.cpp:35:0:
endstop_interrupts.h:57:57: error: reinterpret_cast from integer to pointer
WITHIN(p, 62, 69) ? &PCICR : (uint8_t*)0 )
^
C:\Users\17727\Desktop\Marlin-D-force-V2-1.1.9\Marlin\endstop_interrupts.h:131:21: note: in expansion of macro 'digitalPinToPCICR'
static_assert(digitalPinToPCICR(Y_MAX_PIN) != NULL, "Y_MAX_PIN is not interrupt-capable");
^~~~~~~~~~~~~~~~~
exit status 1
non-constant condition for static assertion
---
期待您的答复!
張貼留言