Repetier Firmware on MKS GEN L
Hello, I am replacing my melzi board with an MKS GEN L V2.0.
I used the old firmware and so far I just edited the pins for the LCD.
I received this error:
uint8_t entType = HAL::readFlashByte((const prog_char*)&(ent->menuType));
found ui.cpp.
What does this code mean?
Thanks
Comments
exit status 1
expected primary-expression before 'const'
Or you upgrade to recent version then you can use latest arduino ide. You can normally do this easily leaving all new settings to default value and just copy the one from your existing configuration.
motion.h:540: error: 'DIO22_WPORT' was not declared in this scope
motion.h:540: error: 'DIO22_PIN' was not declared in this scope
motion.h:540: error: 'DIO22_WPORT' was not declared in this scope
motion.h:540: error: 'DIO22_PIN' was not declared in this scope
#define ADC_KEYPAD_PIN 4
which is equivalent to D58 just as analog input?
Guess you already say in DisplayList.h this section:
Which has no case for the mks board so guess you modified it to your pin numbers already. If the board works as I think with varying resistance you should see different adc values. You could add some test code to write the adc value to serial so you see it in your hosts console.
After
uint16_t adc = osAnalogInputValues[KEYPAD_ANALOG_INDEX] >> (ANALOG_REDUCE_BITS);
add
Com::printFLN(PSTR("Key:"), (int32_t)adc);
Then you see if it changes while pressing a key or not.
Also make sure no function is using pin D58 for anything else or it might override it to digital function.
Select the socket where the second driver is mounted to e.g. E1 or E2. That's all needed. All step signals will now also be send at same time to that driver.
For Z mirror both get same steps count. If they differ you normally have different microstepping configured on your board.
Also check in eeprom if all values for steps etc are valid values. NaN/Inf and eventually 0 can also prevent moves but motor would at least block then.
Inf = Inifinite
Sepecial binary values not mapping to a valid number and causing computations to fail if one of them has that value.