Welcome! Log In Create A New Profile

Advanced

cardreader.cpp:25: error 'DIOSDPOWER_PIN' was not declared

Posted by duckfriedrice 
cardreader.cpp:25: error 'DIOSDPOWER_PIN' was not declared
November 24, 2013 11:10PM
I've just finished building my first reprap Mendal Prusa i3

Was having fun tuning the traveling distance

But didn't know since when, the Marlin configuration code was failing the compile

The error msg says:

cardreader.cpp:25: error: 'DIOSDPOWER_WPORT' was not declared in this scope
cardreader.cpp:25: error: 'DIOSDPOWER_PIN' was not declared in this scope
cardreader.cpp: In member function 'void CardReader::initsd()':
cardreader.cpp:145: error: 'SDSS' was not declared in this scope


The below line was highlighted for the error:

SET_OUTPUT(SDPOWER);

I have attached a screenshot and actual configuration of the error page.

Marlini3V1.rar

Also that the LCD2004 has always been displaying strange things, either random squares or strange characters

I've followed the online instructions from RepRapDiscount Smart Controller page


RepRapDiscount Smart Controller

Marlin V1 (new)

In "Configuration.h”

Change line 46 to “#define MOTHERBOARD 33”
Change line 306 to “#define REPRAP_DISCOUNT_SMART_CONTROLLER” (just remove the // at the beginning)
Change line 326 to “#define NEWPANEL //enable this if you have a click-encoder panel” (just remove the // at the beginning)

Switch over to "Pins.h" and change line 318 to “#define RAMPS_V_1_3” (just remove the // at the beginning)

Upload the firmware, power off the Arduino, connect the panel, reapply power, and everything should work.


Re: cardreader.cpp:25: error 'DIOSDPOWER_PIN' was not declared
November 25, 2013 02:58PM
If it was compiling before you started to tune the values, but not now, you have probably changed or deleted something else by accident.

If you were only changing the default steps etc, your easiest option is to save a copy of your news settings, and then go back to your original files. Then just paste in the steps line in configuration.h
Sorry, only registered users may post in this forum.

Click here to login