Adding new EEPROM definition problem

Hi repetier,

I'm adding some new EEPROM definition.

#define ARM_LENGTH 220
#define FOREARM_LENGTH 180
#define SHOULDER_MIN_ANGLE 90
#define ELBOW_MIN_ANGLE 5
#define SHOULDER_MAX_ANGLE 270
#define ELBOW_MAX_ANGLE 180
#define SHOULDER_BED_CENTER_ANGLE 135
#define ELBOW_BED_CENTER_ANGLE 90

I use datablock in memory

#define EPR_ARM_LENGTH 1048 
#define EPR_FOREARM_LENGTH 1052 
#define EPR_SHOULDER_MIN_ANGLE 1056 
#define EPR_ELBOW_MIN_ANGLE 1060 
#define EPR_SHOULDER_MAX_ANGLE 1064 
#define EPR_ELBOW_MAX_ANGLE 1068 
#define EPR_SHOULDER_BED_CENTER_ANGLE 1072 
#define EPR_ELBOW_BED_CENTER_ANGLE 1076 

it was working fine in my first board EEPROM, but it makes problem when i upload to new board.
the value in new board EEPROM is 0 for all parameters above accept SHOULDER_MIN_ANGLE and ELBOW_MIN_ANGLE

I try to change the datablock definition with this

#define EPR_ARM_LENGTH  248 
#define EPR_FOREARM_LENGTH 252 
#define EPR_SHOULDER_MIN_ANGLE 256 
#define EPR_ELBOW_MIN_ANGLE 260 
#define EPR_SHOULDER_MAX_ANGLE 264 
#define EPR_ELBOW_MAX_ANGLE 268 
#define EPR_SHOULDER_BED_CENTER_ANGLE  272 
#define EPR_ELBOW_BED_CENTER_ANGLE  276 

it also result the same, all zero except SHOULDER_MIN_ANGLE and ELBOW_MIN_ANGLE.

what did I do wrong & how to fix this?

thanks

Comments

Sign In or Register to comment.