bigtreetech / BIGTREETECH-SKR-V1.3

32bit board with LPC1768, support marlin2.0 and smoothieware, support lcd2004/12864, On-board TMC2130 SPI interface and TMC2208 UART interface no additional wiring is required
1k stars 1.15k forks source link

[region RAM overflowed with stack] when trying to compile config file for BIGTREETECH SKR1.4 for ender 3 #475

Open smartkidag opened 3 years ago

smartkidag commented 3 years ago

Bug Description

I'm trying to compile firmware for my ender 3, I've added a second extruder. I had Marlin 2.x.x last week and have it working with single extruder. Only change I've made is added a second extruder and a corresponding driver and I get the error "Region RAM overflowed with stack"

Configuration Files

It works fine without having a second extruder or a second stepper driver.

Steps to Reproduce

  1. Add parameters for another extruder
  2. Compile and visual studio code gives me the error.

Expected behavior:

Compile normally and I can use the bin file to flash my ender 3

Actual behavior:

Doesn't compile.

Additional Information

It works with Bigtreetech's firmware they have on their github (2.0.6.1 I believe), but their firmware has some issue with auto bed leveling where it wont work. So I want to use the latest Marlin firmware and I get this error. Please help me..

Config files.zip

Terixxx commented 3 years ago

Try to change with this values in configuration_adv.h

// @section motion

// The number of linear moves that can be in the planner at once. // The value of BLOCK_BUFFER_SIZE must be a power of 2 (e.g. 8, 16, 32)

if BOTH(SDSUPPORT, DIRECT_STEPPING)

define BLOCK_BUFFER_SIZE 8

elif ENABLED(SDSUPPORT)

define BLOCK_BUFFER_SIZE 16

else

define BLOCK_BUFFER_SIZE 16

endif

// @section serial

// The ASCII buffer for serial input

define MAX_CMD_SIZE 96

define BUFSIZE 4

I was in the same situation and after changing values like above compiled without errors.