Makerbase --> defining board

Hi to all.
I am trying to compile for the first time, the Marlin firmware for Makerbase MKS Gen_L v2.1. I didn't use this board before so take this into consideration :slight_smile:
When i compile it i get this error message:
///////////////////////////////////
Sketch uses 56050 bytes (22%) of program storage space. Maximum is 253952 bytes. Global variables use 2487 bytes (30%) of dynamic memory, leaving 5705 bytes for local variables. Maximum is 8192 bytes.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: verification error, first mismatch at byte 0x1ad9
0x91 != 0x0d
avrdude: verification error; content mismatch
////////////////////////////////////
I am not sure if this has to do with defining the board in configuration.h file of Marlin directory, but if it has, some help with syntax would be welcome.
I guess it should be something like _MKS_Gen_L or similar ?

Configuration.h
// Choose the name from boards.h that matches your setup
#ifndef MOTHERBOARD
#define MOTHERBOARD BOARD_RAMPS_14_EFB
#endif

Arnix

What processor is the controller using? A Mega? In the IDE tools menu, you need to choose the right processor in order to compile.

I have choose atmega 2560 which should be correct chip.

So to compile code to run on that board, choose the Arduino Mega or Mega 2560 in the IDE tools menu.

:-), maybe we didn't understand us. I have choose those settings but it looks like i need to set something directly in the configuration.h file, because i can not compile it.

Hi @arnix

The compilation was successful. The error you posted occurred during the upload process, which only starts after the sketch has been successfully compiled.

So the problem is in the communication between the computer and the Makerbase MKS Gen_L v2.1 board.

*** I agree with you but i can not find any logical solution for this. There ware some posts regarding problems with USB cable but i dont think that this could be a problem. Anyhow, i will switch the cable just to see if something will change...

it was USB cable that i got with the board. Unbelievable... So if something like this happens, throw away cable that you get with the board and buy a new one... OK, now i need to figure out how to pass commands from python to board, but first i will try with arduino IDE.

Nice work on tracking down the cause of the upload error! Thanks for taking the time to post an update with your findings.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.