Can´t upload firmware, wheres the error dont get it

Hey everyone, trying to upload my z probe autolevel firmware.

s.
Arduino: 1.0.6 (Windows NT (unknown)), Board: "Melzi 1284p 16mhz"
c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld.exe: Repetier.cpp.elf section .text will not fit in region text
c:/program files (x86)/arduino/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/bin/ld.exe: region text overflowed by 72 bytes

So its too large, how can i make it fit so that i can upload it.

just chaged smthg in this segment but i cant find a solution:

#define Z_PROBE_Z_OFFSET 0
#define Z_PROBE_Z_OFFSET_MODE 0
#define UI_BED_COATING 1
#define FEATURE_Z_PROBE 1
#define Z_PROBE_BED_DISTANCE 10
#define Z_PROBE_PIN ORIG_Z_MIN_PIN
#define Z_PROBE_PULLUP 1
#define Z_PROBE_ON_HIGH 1
#define Z_PROBE_X_OFFSET -30
#define Z_PROBE_Y_OFFSET -30
#define Z_PROBE_WAIT_BEFORE_TEST 0
#define Z_PROBE_SPEED 2
#define Z_PROBE_XY_SPEED 100
#define Z_PROBE_SWITCHING_DISTANCE 1
#define Z_PROBE_REPETITIONS 3
#define Z_PROBE_HEIGHT 2
#define Z_PROBE_START_SCRIPT "G28 Y0 X0\n G1 X-40\n G28 Z0\n G1 Z5\n"
#define Z_PROBE_FINISHED_SCRIPT "G28 X0 Y0"
#define Z_PROBE_REQUIRES_HEATING 0
#define Z_PROBE_MIN_TEMPERATURE 150
#define FEATURE_AUTOLEVEL 1
#define Z_PROBE_X1 10
#define Z_PROBE_Y1 10
#define Z_PROBE_X2 170
#define Z_PROBE_Y2 10
#define Z_PROBE_X3 10
#define Z_PROBE_Y3 170
#define BED_LEVELING_METHOD 0
#define BED_CORRECTION_METHOD 0
#define BED_LEVELING_GRID_SIZE 5
#define BED_LEVELING_REPETITIONS 5
#define BED_MOTOR_1_X 0
#define BED_MOTOR_1_Y 0
#define BED_MOTOR_2_X 200
#define BED_MOTOR_2_Y 0
#define BED_MOTOR_3_X 100
#define BED_MOTOR_3_Y 200
#define BENDING_CORRECTION_A 0
#define BENDING_CORRECTION_B 0
#define BENDING_CORRECTION_C 0
#define FEATURE_AXISCOMP 0
#define AXISCOMP_TANXY 0
#define AXISCOMP_TANYZ 0
#define AXISCOMP_TANXZ 0

regards

Peter


Comments

  • You need to disable all unneeded features if you use such small controllers. LCD is big, sd card is big. G2/G3 support gives you some byte as well.

    EEPROM is also big but you want this for autoleveling.
  • Where is the specified line in conf.h ? sorry im noob :/
  • to disable the sd card i mean
  • As nob you bette ruse the online config tool. Sd is disabled until you enable it or add a display with sd card in which case it is always enabled. you would then need to edit ui.h to remove the enable command in the section for your display.
Sign In or Register to comment.