mkfirmware / marlinkimbra4due Goto Github PK
View Code? Open in Web Editor NEWMK4due firmware for Arduino DUE
MK4due firmware for Arduino DUE
Hi Mago
I have a compile error
C:\Users\io\AppData\Local\Temp\buildc948b8971d27b06242df706ab1a6243a.tmp\sketch\src\nextion\Nextion_lcd.cpp: In function 'void PlayPausePopCallback(void*)':
C:\Users\io\AppData\Local\Temp\buildc948b8971d27b06242df706ab1a6243a.tmp\sketch\src\nextion\Nextion_lcd.cpp:576:16: error: 'class CardReader' has no member named 'pauseSDPrint'
card.pauseSDPrint(); ^
C:\Users\io\AppData\Local\Temp\buildc948b8971d27b06242df706ab1a6243a.tmp\sketch\src\nextion\Nextion_lcd.cpp:580:16: error: 'class CardReader' has no member named 'startFileprint'
card.startFileprint(); ^
C:\Users\io\AppData\Local\Temp\buildc948b8971d27b06242df706ab1a6243a.tmp\sketch\src\nextion\Nextion_lcd.cpp: In function 'void StopPopCallback(void*)':
C:\Users\io\AppData\Local\Temp\buildc948b8971d27b06242df706ab1a6243a.tmp\sketch\src\nextion\Nextion_lcd.cpp:588:14: error: 'class CardReader' has no member named 'stopSDPrint'
card.stopSDPrint(ptr == &Logo);
Thanks
Hello,
is there a way to get a Filament Tracking System to work?
https://sparklab-shop.de/elektronik/60/fts-v2-filament-tracking-system-1-75mm?c=10
In Repetier this sensor can slow down the speed, if the sensor detects that the sensor is not according to the Extrusion Steps.
Will this be possible to implement? I can help with some testing, if it matters.
Greatings from Germany
Hi!
I've tried this new version with DUAL_X_CARRIAGE, but doesn't works. (Arduino Mega)
When compile the code raise this error:
### sketch/src/MK_Main.cpp: In function 'void tool_change(uint8_t, float, bool)':
sketch/src/MK_Main.cpp:8777:78: error: 'DEBUG__INFO_POS' was not declared in this scope
if (DEBUGGING(INFO)) DEBUG__INFO_POS("New Extruder", current_position);
^
In file included from sketch/src/../base.h:72:0,
from sketch/src/MK_Main.cpp:31:
sketch/src/MK_Main.cpp:8781:59: error: 'inactive_extruder_x_pos' was not declared in this scope
current_position[X_AXIS] = LOGICAL_X_POSITION(inactive_extruder_x_pos);
^
sketch/src/../src/MK_Main.h:129:38: note: in definition of macro 'LOGICAL_POSITION'
#define LOGICAL_POSITION(POS, AXIS) (POS + home_offset[AXIS] + position_shift[AXIS])
^
sketch/src/MK_Main.cpp:8781:40: note: in expansion of macro 'LOGICAL_X_POSITION'
current_position[X_AXIS] = LOGICAL_X_POSITION(inactive_extruder_x_pos);
^
sketch/src/MK_Main.cpp:8785:13: error: 'active_extruder_parked' was not declared in this scope
active_extruder_parked = (active_extruder == 0); // this triggers the second extruder to move into the duplication position
^
sketch/src/MK_Main.cpp:8789:64: error: 'duplicate_extruder_x_offset' was not declared in this scope
current_position[X_AXIS] = destination[X_AXIS] + duplicate_extruder_x_offset;
^
sketch/src/MK_Main.cpp:8791:13: error: 'extruder_duplication_enabled' was not declared in this scope
extruder_duplication_enabled = false;
^
In file included from sketch/src/../base.h:60:0,
from sketch/src/MK_Main.cpp:31:
sketch/src/MK_Main.cpp:8803:56: error: 'active_extruder_parked' was not declared in this scope
SERIAL_LMV(INFO, "Active extruder parked: ", active_extruder_parked ? "yes" : "no");
^
sketch/src/../src/communication/communication.h:100:56: note: in definition of macro 'SERIAL_V'
#define SERIAL_V(val, args...) Com::print(val, ##args)
^
sketch/src/../src/communication/communication.h:124:59: note: in expansion of macro 'SERIAL_MV'
#define SERIAL_LMV(srt, msg, val, args...) SERIAL_S(srt),SERIAL_MV(msg, val, ##args),SERIAL_E
^
sketch/src/MK_Main.cpp:8803:11: note: in expansion of macro 'SERIAL_LMV'
SERIAL_LMV(INFO, "Active extruder parked: ", active_extruder_parked ? "yes" : "no");
^
exit status 1
Error compilación en tarjeta Arduino/Genuino Mega or Mega 2560.
This is my Configuration_Overall file
`/**
/**** CONFIGURATION BASIC ****/
/**** CONFIGURATION CARTESIAN ****/
//#define Z_PROBE_FIX_MOUNTED
/**** CONFIGURATION FEATURE ****/
/**** CONFIGURATION TEMPERATURE ****/
`
from /Users/Fran/Downloads/MarlinKimbra4due-master/MK4due/MK4due.ino:212:
sketch/module/sanitycheck.h:1594:6: error: #error DEPENDENCY ERROR: At least one of the ?_ENDSTOP_SERVO_NR is required for DEACTIVATE_SERVOS_AFTER_MOVE.
^
Only happen when activate:
Config of servo:
Some idea?
There are some bugs in the stepper on the last patch. You should update it. This is also now much faster.
Wurstnase/Marlin4Due@1c7857b
if enable FAST_PWM_FAN in Configuration_Feature.h, it causes compiling error.
error message:
AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\module\MK_Main.cpp: In function 'void setPwmFrequency(uint8_t, int)':
AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\module\MK_Main.cpp:8609:33: error: 'digitalPinToTimer' was not declared in this scope
switch(digitalPinToTimer(pin)) {
^
Hi,
When i try to enable a max6675 support on arduino due board, it's fail to compile and get this output
sketch/module/temperature/temperature.cpp: In function 'void tp_init()': sketch/module/temperature/temperature.cpp:1000:15: error: 'SS_PIN' was not declared in this scope pinMode(SS_PIN, OUTPUT); ^ sketch/module/temperature/temperature.cpp: In function 'int read_max6675()': sketch/module/temperature/temperature.cpp:1238:5: error: 'SPCR' was not declared in this scope SPCR = BIT(MSTR) | BIT(SPE) | BIT(SPR0); ^ In file included from sketch/module/temperature/../../base.h:14:0, from sketch/module/temperature/temperature.cpp:21: sketch/module/temperature/temperature.cpp:1238:16: error: 'MSTR' was not declared in this scope SPCR = BIT(MSTR) | BIT(SPE) | BIT(SPR0); ^ sketch/module/temperature/../../module/macros.h:8:21: note: in definition of macro 'BIT' #define BIT(b) (1<<(b)) ^ sketch/module/temperature/temperature.cpp:1238:28: error: 'SPE' was not declared in this scope SPCR = BIT(MSTR) | BIT(SPE) | BIT(SPR0); ^ sketch/module/temperature/../../module/macros.h:8:21: note: in definition of macro 'BIT' #define BIT(b) (1<<(b)) ^ sketch/module/temperature/temperature.cpp:1248:5: error: 'SPDR' was not declared in this scope SPDR = 0; ^ In file included from sketch/module/temperature/../../base.h:14:0, from sketch/module/temperature/temperature.cpp:21: sketch/module/temperature/temperature.cpp:1249:18: error: 'SPSR' was not declared in this scope for (; !TEST(SPSR, SPIF);); ^ sketch/module/temperature/../../module/macros.h:9:22: note: in definition of macro 'TEST' #define TEST(n,b) (((n)&BIT(b))!=0) ^ sketch/module/temperature/temperature.cpp:1249:24: error: 'SPIF' was not declared in this scope for (; !TEST(SPSR, SPIF);); ^ sketch/module/temperature/../../module/macros.h:8:21: note: in definition of macro 'BIT' #define BIT(b) (1<<(b)) ^ sketch/module/temperature/temperature.cpp:1249:13: note: in expansion of macro 'TEST' for (; !TEST(SPSR, SPIF);); ^ sketch/module/temperature/temperature.cpp:1255:18: error: 'SPSR' was not declared in this scope for (; !TEST(SPSR, SPIF);); ^ sketch/module/temperature/../../module/macros.h:9:22: note: in definition of macro 'TEST' #define TEST(n,b) (((n)&BIT(b))!=0) ^ sketch/module/temperature/temperature.cpp:1255:24: error: 'SPIF' was not declared in this scope for (; !TEST(SPSR, SPIF);); ^ sketch/module/temperature/../../module/macros.h:8:21: note: in definition of macro 'BIT' #define BIT(b) (1<<(b)) ^ sketch/module/temperature/temperature.cpp:1255:13: note: in expansion of macro 'TEST' for (; !TEST(SPSR, SPIF);); ^ exit status 1
Do you can help me?
Hi! I've got DUE with dead programming usb port (I mean MEGA16U2 and looks like Rx pin of UART_0). So best Idea is to use one of 3 other UARTS with TTL adapter. But changing SERIAL_PORT in Configuration_basic doesn't affect at all. Because there is no any connection between MSG_PORT in HAL.h and SERIAL_PORT. So my proposual is just add following in base.h (just before #include "src/HAL/HAL.h"):
#define MSG_PORT SERIAL_PORT.
If you have better solution please - do it in your way, just make it work. My method - works.
I'have look a freeze of printer after a few minutes of printing, my printer go on "MAXTEMP" 755*C and freeze.
And it's totally random
Arduino: 1.6.4 (Mac OS X), Placa:"Arduino Duemilanove or Diecimila, ATmega328"
Opções de compilação alteradas, recompilando tudo
In file included from blinkm.cpp:5:0:
base.h:22:22: fatal error: fastio.h: No such file or directory
#include "fastio.h"
^
compilation terminated.
Erro compilando.
Este relatório deveria ter mais informações
"Mostrar saída verbosa durante a compilação"
habilitado em Arquivo > Preferências.
hello i have verified this on my ramps-fd and your pinout number are not right...
PIN RAMPS-FD V1 & V2
THERMISTOR 0 0 ANALOG
THERMISTOR 1 1 ANALOG
THERMISTOR 2 2 ANALOG
THERMISTOR 3 3 ANALOG
FET D8 8 OK
FET D9 9 OK
FET D10 10 OK
FET D11 11 OK
FET D12 12 OK
FET D2 2 OK
PS ON 53 OK
MESSAGE LED 13 OK
X MIN 22 OK
X MAX 30 OK
Y MIN 24 OK
Y MAX 38 OK
Z MIN 26 OK
Z MAX 34 OK
X STEP 63 OK
X DIR 62 OK
X ENABLE 48 OK
Y STEP 65 OK
Y DIR 64 OK
Y ENABLE 46 OK
Z STEP 67 OK
Z DIR 66 OK
Z ENABLE 44 OK
E0 STEP 36 OK
E0 DIR 28 OK
E0 ENABLE 42 OK
E1 STEP 43 OK
E1 DIR 41 OK
E1 ENABLE 39 OK
E2 STEP 32 OK
E2 DIR 47 OK
E2 ENABLE 45 OK
SERVO 0 7 OK
SERVO 1 6 OK
SERVO 2 5 OK
SERVO 3 3 OK
KILL PIN 40 OK
I2C-0
SDA 20 ?
SCL 21 ?
I2C-1
SDA 70 ?
SCL 9 ?
hi @MagoKimbra , thanks for sharing the codes , however I coud'nt find active low laser function in your codes ,
actually I made cnc laser with https://github.com/TurnkeyTyranny modified marlin code which is now updated with Hanken https://github.com/HakanBastedt/Marlin4Due/tree/Laser for due board , we discus with couple of cool guys about how the most code not consider readiness the tools in codes, and always suppose the tools is up and ready , for example in plasma machine it is necessary ,the torch is initiated and ready for cut , also in laser machine , laser power unit always check the cooling system and power of the beam , and I think this readiness should be check in loop function , it is standard way which software such as Mach3 do
I really appreciated if you could check those code as well as my due shield for cnc laser and have your comments ,
Hi,
I use the Arduino Due. I set up the connections of the SD card to pin 9 and a touch screen to pin 10 both get the MISO, MOSI & TCK from the same pins (74,75,76). Now the internal setup of the Arduino Due is configured in a way to normally just use pin 4 and 10 as chip select pins for SPI. However, is it possible to those via software based SPI control?
Or rephrasing the question. Is it possible while using the extended SPI to use other pins then 4, 10 and 52 to connect an SD cart with the Arduino ´Due?
Cheers,
Tim
While trying to use PWM on the Alligator Board, the output is only binary.
The temperature shows up as 4-5 times the ambient temperature, same printer with same firmware (a part from the DEFINE Board_name) but different board and microcontroller (ramps 1.4 with mega) is reading right temps.
Hello there !
First, thank you for your great work for arduino due 👍
Today i was printing an object and i saw my son turning the rotary button wildly.
I noticed the steppers were not working well (they froze), I was looking to the code and trying to find out where the problem is comming from. I tried to put the priority of the stepper to 0 (NVIC_setPriority) but nothing changed. Does someone have an idea where the problem is comming from ?
Sincerely yours,
Nick
Hi
Just updated firmware using the configuration tool. I use singlenozzle configuration with 2 extruders on prusa-like printer.
STRANGE PROBLEM: Every time Z is moving the Extruder 2 is moving too! but when moving the extruder 2, there is no movement of Z axis....
Help will be appreciated!
if enable M100_FREE_MEMORY_WATCHER in Configuration_Feature.h, it causes compiling error.
error message:
AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\module\sd\SDFat.cpp:4283:15: error: type mismatch with previous external decl of 'int* SdFatUtil::__brkval' [-fpermissive]
extern int* __brkval;
^
In file included from AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\module\sd../../base.h:45:0,
from AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\module\sd\SDFat.cpp:21:
AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\module\sd../../module/MK_Main.h:244:16: error: previous external decl of 'void* __brkval' [-fpermissive]
extern void *__brkval;
^
I was debugging the new LCD screen on Ultratronics with SPI. Problem is with the HAL, where the function receive has the SDSS put to LOW. This is the SD pin, which I reckon should not be in a hardware abstraction layer, as this function is also called from temperature.cpp. So maybe we can set the CS pin as parameter in the spiInit function. Or better, replace the whole thing for the SPI library native to Arduino?
uint8_t HAL::spiReceive() {
WRITE(SDSS, LOW); <- This is specific for SD
uint8_t b = spiTransfer(0xff);
WRITE(SDSS, HIGH); <- This is specific for SD
return b;
}
if I put a figure greater than 55 in bed_printer_radius nothing works properly neither has nor the G29 g30.
My delta have a 200mm diameter bed before it working with marlin...
Hi MagoKimbra
With the latest Commit disappeared HAL::spiBegin() in read_max6675 function.
A question: is correct that spiBegin and spiInit are performed every time you read the temperature? (read_max6675)
Drakelive
in temperature.cpp you have forgotten :
line 1048, 1051, 1054, 1673, 1687 and 1701 in end of the line: ";" !!!
If I load / flash other 32 bit versions of Marlin like Repetier or Wurstnase - Marlin4Due there is no problem, but with MK4due windows no longer recognises the native port, the programming port is fine. I am using the latest version of MK4due. Due combined with Radds v1.5.
Regards.
if enable ADVANCE in Configuration_Feature.h, it causes compiling error.
error message:
In file included from AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\base.h:38:0,
from MarlinKimbra4due.git\trunk\MK4due\MK4due.ino:197:
AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\module/sanitycheck.h:378:8: error: #error DEPENDENCY ERROR: Missing setting STEPS_MM_E
#error DEPENDENCY ERROR: Missing setting STEPS_MM_E
^
if I set the STEPS_MM_E(ex. #define STEPS_MM_E 836) in Configuration_Feature.h, it still causes compiling error.
error message:
AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\module\motion\stepper.cpp: In function 'void TIMER0_COMPA_vect()':
AppData\Local\Temp\build41e4efdcf85178b85a086bd08f467a14.tmp\sketch\module\motion\stepper.cpp:800:5: error: 'OCR0A' was not declared in this scope
OCR0A = old_OCR0A;
^
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.