chipKIT® Development Platform

Inspired by Arduino™

New test builds available for 20110813

Created Mon, 15 Aug 2011 00:34:34 +0000 by ricklon


ricklon

Mon, 15 Aug 2011 00:34:34 +0000

New builds available for 20110813

Feauture added: Sketch path is included in compile includes. This enables USB, and Ethernet code from Digilent and Microchip to work.

https://github.com/chipKIT32/chipKIT-builds/downloads

Linux32 https://github.com/downloads/chipKIT32/chipKIT-builds/mpide-0022-linux32-20110813-test.tgz Mac OS X https://github.com/downloads/chipKIT32/chipKIT-builds/mpide-0022-macosx-20110813-test.dmg Windows https://github.com/downloads/chipKIT32/chipKIT-builds/mpide-0022-windows-20110813-test.zip


Mr_Fixit

Thu, 18 Aug 2011 22:21:35 +0000

I've refreshed that issue on the issue list. This was fixed, and somehow got unfixed.

I did some test compiles of the sample programs. Neither of the SPI programs compile. Here is the error (DigitalPotControl)... After all, we need to control our Pot, right? ;) All else looks like its working.

C:\Program Files\chipkit\.\hardware\pic32\libraries\SPI\SPI.cpp:50:6: error: prototype for 'void SPIClass::setClockDivider(WORD)' does not match any in class 'SPIClass'
C:\Program Files\chipkit\.\hardware\pic32\libraries\SPI\/SPI.h:82:15: error: candidate is: static void SPIClass::setClockDivider(BYTE)

lrenaud

Fri, 19 Aug 2011 16:12:36 +0000

I did some test compiles of the sample programs. Neither of the SPI programs compile. Here is the error (DigitalPotControl)... After all, we need to control our Pot, right? ;) All else looks like its working.

C:\Program Files\chipkit\.\hardware\pic32\libraries\SPI\SPI.cpp:50:6: error: prototype for 'void SPIClass::setClockDivider(WORD)' does not match any in class 'SPIClass'
C:\Program Files\chipkit\.\hardware\pic32\libraries\SPI\/SPI.h:82:15: error: candidate is: static void SPIClass::setClockDivider(BYTE)

This was a minor header error that was missed when SPI.cpp was updated in the last build to support the 9-bit dividers that the PIC32 supports rather than just 8-bit dividers. Until the next test build comes out the patch is simply go into /hardware/pic32/libraries/SPI/SPI.h and change line 95 from

static void setClockDivider(BYTE);

to the following

static void setClockDivider(WORD);

ricklon

Fri, 19 Aug 2011 23:12:44 +0000

Fixed, new test builds will include the fix. If feedback is positive the official release will be made.


mongo

Fri, 19 Aug 2011 23:36:48 +0000

I know it is a change but I posted a diff to the Libraries forum that makes WStrings.cpp more portable and fixes issue with data types, can you please look at that.

Or we need a modified stdlib.h on linux, one that supports iota with longs, unsigned longs, and unsigned ints

Thanks


GeneApperson

Sat, 20 Aug 2011 16:05:32 +0000

I'm working this weekend trying to resolve as many of these problems as I can. I'll add this one to the list of things to look into.

Thanks for helping to identify the problem.

Gene Apperson Digilent