Welcome! Log In Create A New Profile

Advanced

Making Sprinter Compatible w/ chipKIT Max32 by Digilent

Posted by Quentin.T 
Making Sprinter Compatible w/ chipKIT Max32 by Digilent
January 30, 2012 10:38PM
Hello everyone,

I am working on a my first RepRap, and have finished the hardware side of things. Right now I am very stuck with the software, specifically the sprinter firmware.

When I purchased my electronics, I decided not to buy an arduino board, because I had what I thought to be a perfect alternative at home (chipKIT Max32 by Diligent). Now that I am trying to load sprinter onto it, I get a a couple hundred errors all having to do with the SD card option, which I don't plan on using. I believe that if the SD card option is removed, then the firmware will work perfectly.

So my question/request is, is there someone out there who would be willing to help me create a branch of sprinter that does not offer the SD card option? I'm hoping it would be pretty simple for someone who knows what they are doing, but as you can probably tell, I am very much a beginner. Any advice, pointers, or options would be greatly appreciated. I have been trying to get rid of these errors for a few days now, so I am pretty frustrated with it.

Thank you,
Quentin

PS I have commented out the #define SDSUPPORT line in the configuration.h file, but it still compiles all of the SD files anyway.

This is a list of the errors. I appologize for the length of the post, but I thought that they would be important










In file included from /Sd2PinMap.h:23:0,
from /Sd2Card.h:26,
from Sd2Card.cpp:21:
c:\documents and settings\********\desktop\mpide-0023-windows-20111221\mpide-0023-windows-20111221\hardware\pic32\compiler\pic32-tools\bin\../lib/gcc/pic32mx/4.5.1/../../../../pic32mx/include/avr/io.h:4:2: error: #error ******** This sketch or library uses AVR-specific code that may not work with the chipKIT platform. See this forum for more information on porting code to chipKIT [www.chipkit.org/forum/viewforum.php?f=7] ********
In file included from /Sd2Card.h:26:0,
from Sd2Card.cpp:21:
/Sd2PinMap.h:285:5: error: 'DDRD' was not declared in this scope
/Sd2PinMap.h:285:12: error: 'PIND' was not declared in this scope
/Sd2PinMap.h:286:5: error: 'DDRD' was not declared in this scope
/Sd2PinMap.h:286:12: error: 'PIND' was not declared in this scope
/Sd2PinMap.h:287:5: error: 'DDRD' was not declared in this scope
/Sd2PinMap.h:287:12: error: 'PIND' was not declared in this scope
/Sd2PinMap.h:288:5: error: 'DDRD' was not declared in this scope
/Sd2PinMap.h:288:12: error: 'PIND' was not declared in this scope
/Sd2PinMap.h:289:5: error: 'DDRD' was not declared in this scope
/Sd2PinMap.h:289:12: error: 'PIND' was not declared in this scope
/Sd2PinMap.h:290:5: error: 'DDRD' was not declared in this scope
/Sd2PinMap.h:290:12: error: 'PIND' was not declared in this scope
/Sd2PinMap.h:291:5: error: 'DDRD' was not declared in this scope
/Sd2PinMap.h:291:12: error: 'PIND' was not declared in this scope
/Sd2PinMap.h:292:5: error: 'DDRD' was not declared in this scope
/Sd2PinMap.h:292:12: error: 'PIND' was not declared in this scope
/Sd2PinMap.h:293:5: error: 'DDRB' was not declared in this scope
/Sd2PinMap.h:293:12: error: 'PINB' was not declared in this scope
/Sd2PinMap.h:294:5: error: 'DDRB' was not declared in this scope
/Sd2PinMap.h:294:12: error: 'PINB' was not declared in this scope
/Sd2PinMap.h:295:5: error: 'DDRB' was not declared in this scope
/Sd2PinMap.h:295:12: error: 'PINB' was not declared in this scope
/Sd2PinMap.h:296:5: error: 'DDRB' was not declared in this scope
/Sd2PinMap.h:296:12: error: 'PINB' was not declared in this scope
/Sd2PinMap.h:297:5: error: 'DDRB' was not declared in this scope
/Sd2PinMap.h:297:12: error: 'PINB' was not declared in this scope
/Sd2PinMap.h:298:5: error: 'DDRB' was not declared in this scope
/Sd2PinMap.h:298:12: error: 'PINB' was not declared in this scope
/Sd2PinMap.h:299:5: error: 'DDRC' was not declared in this scope
/Sd2PinMap.h:299:12: error: 'PINC' was not declared in this scope
/Sd2PinMap.h:300:5: error: 'DDRC' was not declared in this scope
/Sd2PinMap.h:300:12: error: 'PINC' was not declared in this scope
/Sd2PinMap.h:301:5: error: 'DDRC' was not declared in this scope
/Sd2PinMap.h:301:12: error: 'PINC' was not declared in this scope
/Sd2PinMap.h:302:5: error: 'DDRC' was not declared in this scope
/Sd2PinMap.h:302:12: error: 'PINC' was not declared in this scope
/Sd2PinMap.h:303:5: error: 'DDRC' was not declared in this scope
/Sd2PinMap.h:303:12: error: 'PINC' was not declared in this scope
/Sd2PinMap.h:304:5: error: 'DDRC' was not declared in this scope
/Sd2PinMap.h:304:12: error: 'PINC' was not declared in this scope
/Sd2PinMap.h: In function '__uint8_t getPinMode(__uint8_t)':
/Sd2PinMap.h:314:33: error: '__uint8_t getPinMode(__uint8_t)' was declared 'extern' and later 'static'
C:\Documents and Settings\*******\Desktop\mpide-0023-windows-20111221\mpide-0023-windows-20111221\hardware\pic32\cores\pic32/wiring.h:130:9: error: previous declaration of '__uint8_t getPinMode(__uint8_t)'
Sd2Card.cpp: In function 'void spiSend(__uint8_t)':
Sd2Card.cpp:27:3: error: 'SPDR' was not declared in this scope
Sd2Card.cpp:28:12: error: 'SPSR' was not declared in this scope
Sd2Card.cpp:28:25: error: 'SPIF' was not declared in this scope
Sd2Card.cpp: In function '__uint8_t spiRec()':
Sd2Card.cpp:33:10: error: 'SPDR' was not declared in this scope
Sd2Card.cpp: In member function '__uint8_t Sd2Card::init(__uint8_t, __uint8_t)':
Sd2Card.cpp:231:3: error: 'SPCR' was not declared in this scope
Sd2Card.cpp:231:16: error: 'SPE' was not declared in this scope
Sd2Card.cpp:231:29: error: 'MSTR' was not declared in this scope
Sd2Card.cpp:231:43: error: 'SPR1' was not declared in this scope
Sd2Card.cpp:231:57: error: 'SPR0' was not declared in this scope
Sd2Card.cpp:233:3: error: 'SPSR' was not declared in this scope
Sd2Card.cpp:233:18: error: 'SPI2X' was not declared in this scope
Sd2Card.cpp: In member function '__uint8_t Sd2Card::readData(__uint32_t, __uint16_t, __uint16_t, __uint8_t*)':
Sd2Card.cpp:358:3: error: 'SPDR' was not declared in this scope
Sd2Card.cpp:362:14: error: 'SPSR' was not declared in this scope
Sd2Card.cpp:362:27: error: 'SPIF' was not declared in this scope
Sd2Card.cpp:368:14: error: 'SPSR' was not declared in this scope
Sd2Card.cpp:368:27: error: 'SPIF' was not declared in this scope
Sd2Card.cpp:373:12: error: 'SPSR' was not declared in this scope
Sd2Card.cpp:373:25: error: 'SPIF' was not declared in this scope
Sd2Card.cpp: In member function 'void Sd2Card::readEnd()':
Sd2Card.cpp:406:5: error: 'SPDR' was not declared in this scope
Sd2Card.cpp:408:16: error: 'SPSR' was not declared in this scope
Sd2Card.cpp:408:29: error: 'SPIF' was not declared in this scope
Sd2Card.cpp:412:14: error: 'SPSR' was not declared in this scope
Sd2Card.cpp:412:27: error: 'SPIF' was not declared in this scope
Sd2Card.cpp: In member function '__uint8_t Sd2Card::setSckRate(__uint8_t)':
Sd2Card.cpp:460:5: error: 'SPSR' was not declared in this scope
Sd2Card.cpp:460:20: error: 'SPI2X' was not declared in this scope
Sd2Card.cpp:462:5: error: 'SPSR' was not declared in this scope
Sd2Card.cpp:462:19: error: 'SPI2X' was not declared in this scope
Sd2Card.cpp:464:3: error: 'SPCR' was not declared in this scope
Sd2Card.cpp:464:18: error: 'SPR1' was not declared in this scope
Sd2Card.cpp:464:32: error: 'SPR0' was not declared in this scope
Sd2Card.cpp: In member function '__uint8_t Sd2Card::writeData(__uint8_t, const __uint8_t*)':
Sd2Card.cpp:559:3: error: 'SPDR' was not declared in this scope
Sd2Card.cpp:563:14: error: 'SPSR' was not declared in this scope
Sd2Card.cpp:563:27: error: 'SPIF' was not declared in this scope
Sd2Card.cpp:565:14: error: 'SPSR' was not declared in this scope
Sd2Card.cpp:565:27: error: 'SPIF' was not declared in this scope
Sd2Card.cpp:570:12: error: 'SPSR' was not declared in this scope
Sd2Card.cpp:570:25: error: 'SPIF' was not declared in this scope
Sorry, only registered users may post in this forum.

Click here to login