Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error compiling v1b1 for ramps 1.3/1.4 on MEGA 2560 #40

Closed
birdmun opened this issue Dec 25, 2011 · 3 comments
Closed

error compiling v1b1 for ramps 1.3/1.4 on MEGA 2560 #40

birdmun opened this issue Dec 25, 2011 · 3 comments

Comments

@birdmun
Copy link

birdmun commented Dec 25, 2011

I have tried arduino-019, 22, 23, 1.0. ( I know the firmware isn't supposed to compile on 1.0, but, I just wanted to be somewhat thorough in my attempts to get around the problem. )
All four error saying:

In file included from /Sd2Card.h:27,
from Sd2Card.cpp:21:
Sd2PinMap.h:42: error: expected unqualified-id before numeric constant
Sd2PinMap.h:43: error: expected unqualified-id before numeric constant

for reference lines 42 and 43:

uint8_t const SS_PIN = 53; // B0
uint8_t const MOSI_PIN = 51; // B2

I attempted to comment out the sdcard reader as I am not currently using it. I could not manage to get the compile to complete.

The base download will compile as is, but, as soon as I change MOTHERBOARD to 33 the error occurs.

@bkubicek
Copy link
Contributor

For any non-sanguino, arduino 1.0 should be fine, arduino 1 is my prime compiling platform.
The problem you had is some conflict between the definition of MOSI_PIN in the file you found, as it is already defined in pins.h in your case.
I made a fix, please try and if its working, close this issue. Merry Christmas!

@birdmun
Copy link
Author

birdmun commented Dec 26, 2011

Your fix compiled just fine for me. Thanks

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants