Welcome! Log In Create A New Profile

Advanced

Repetier Firmware V0.82.2 Compile Error - Rambo

Posted by RobGer 
Repetier Firmware V0.82.2 Compile Error - Rambo
May 02, 2013 03:08AM
When compiling Repetier Firmware V0.82.2 for Rambo motherboard I receive below compile error:

'Motor_Current' was not declared in this scope
Commands.cpp: In function 'void current_control_init()':
Commands.cpp:238: error: 'MOTOR_CURRENT' was not declared in this scope

Only' #define MOTHERBOARD 301' changed in config file.

Commands.cpp

#if DIGIPOTSS_PIN && DIGIPOTSS_PIN > -1
const uint8_t digipot_motor_current[] = MOTOR_CURRENT;

SPI.begin();
SET_OUTPUT(DIGIPOTSS_PIN);
for(int i=0;i<=4;i++)
//digitalPotWrite(digipot_ch, digipot_motor_current);
set_current(i,digipot_motor_current);
#endif


Anybody know how to fix this one?
Re: Repetier Firmware V0.82.2 Compile Error - Rambo
May 02, 2013 11:34AM
See Configuration. Line 685

// Motor Current setting (Only functional when motor driver current ref pins are connected to a digital trimpot on supported boards)
//#define MOTOR_CURRENT {135,135,135,135,135} // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)
//#define MOTOR_CURRENT {35713,35713,35713,35713,35713} // Values 0-65535 (3D Master 35713 = ~1A)

Uncomment the rambo version part, set your currents and recompile.


Repetier-Software - the home of Repetier-Host (Windows, Linux and Mac OS X) and Repetier-Firmware.
Repetier-Server - the solution to control your printer from everywhere.
Visit us on Facebook and Twitter!
Re: Repetier Firmware V0.82.2 Compile Error - Rambo
May 03, 2013 05:48PM
Thanks Repetier
Re: Repetier Firmware V0.82.2 Compile Error - Rambo
December 28, 2017 08:06AM
This fix also works in Marlin

I was compiling Marlin 1.1.x on Arduino 1.8.2 for RAMBo 1.2d

I got this error:

'DIGIPOT_MOTOR_CURRENT' was not declared in this scope

I uncommented the line below in MArlin's Configuration_adv.h

#define DIGIPOT_MOTOR_CURRENT { 135,135,135,135,135 } // Values 0-255 (RAMBO 135 = ~0.75A, 185 = ~1A)

...and it compiles fine.
Sorry, only registered users may post in this forum.

Click here to login