New test builds available for 20110907

Announcements for new builds and MPIDE enhancements
ricklon
Posts: 178
Joined: Sun May 22, 2011 6:59 am

New test builds available for 20110907

Post by ricklon » Thu Sep 08, 2011 5:10 am

Test Build 20110907is now upload to the ChipKit Build Project site

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

Linux32
https://github.com/downloads/chipKIT32/ ... 7-test.tgz
Mac OS X
https://github.com/downloads/chipKIT32/ ... 7-test.dmg
Windows
https://github.com/downloads/chipKIT32/ ... 7-test.zip

New support:
Added support MicroElectronics Multimedia board

Note:
plib.h should not be included into library headers, can be included into .cpp, or .c. Many of the fixes are cleanup related to that.

Changes:
Issue #117 plib.h removed from Sd2Card.h, and plib.h, and p32xxxx.h add to Sd2Card.cpp
Issue #116 quick fix lower case utility folder.
Issue #115 fixed plib.h dependicies
Issue #114 fixed plib.h issues
Issue #108 references to old code removed.
Issue #104 examples from libraries are now updated upon board selection.
Issue #113 SPI Modes being set incorrectly in SPI library
Issue #111 pliib.h, p32xxxx.h fixes
Issue #112, changed assigment to compare in finISR
Issue #109 clear interrupt, Issue #110 remove float operation
Issue #72, tone now working, Genes changes applied

Andy123
Posts: 45
Joined: Sun Jul 17, 2011 6:03 pm

Re: New test builds available for 20110907

Post by Andy123 » Thu Sep 08, 2011 11:02 pm

I don't see corrected speed issue with Arduino Ethernet shield
10Mhz clock is way too fast and unstable for W5100 controller
to get 2.5MHz change:

in \hardware\pic32\libraries\Ethernet\utility\w5100.cpp
SPI.setClockDivider(SPI_CLOCK_DIV32); // 2.5MHz SPI clock

KM6VV
Posts: 121
Joined: Fri Jun 03, 2011 7:45 pm
Location: Central Coast, CA

Re: New test builds available for 20110907

Post by KM6VV » Fri Sep 09, 2011 12:21 am

I was hoping to see MsTimer2() and Servo() as reported (and resolved) issues!

Alan KM6VV

ricklon
Posts: 178
Joined: Sun May 22, 2011 6:59 am

Re: New test builds available for 20110907

Post by ricklon » Sun Sep 11, 2011 1:33 am

Are those issues filed at https://github.com/chipKIT32/chipKIT32-MAX/issues ?

If they are I'll bump them up the priority list. If not let's get them there. I can add the issue just as you described it. Did you want more info added to the issue before I submit?

--Rick

Andy123
Posts: 45
Joined: Sun Jul 17, 2011 6:03 pm

Re: New test builds available for 20110907

Post by Andy123 » Sun Sep 11, 2011 1:44 pm

Rick, I added issue #123

KM6VV
Posts: 121
Joined: Fri Jun 03, 2011 7:45 pm
Location: Central Coast, CA

Re: New test builds available for 20110907

Post by KM6VV » Sun Sep 11, 2011 10:37 pm

Please submit MsTimer2() and Servo().

Thanks!

Alan KM6VV

GeneApperson
Posts: 239
Joined: Wed Jun 01, 2011 9:53 pm
Location: Pullman WA
Contact:

Re: New test builds available for 20110907

Post by GeneApperson » Wed Sep 14, 2011 12:10 am

KM6VV wrote:Please submit MsTimer2() and Servo().
Alan,

I'm not familar with what these issues are. If you can give me some more detail on them, I will log the issues and work on them. I may be able to get this done before the next release is prepared.

Gene Apperson
Digilent

KM6VV
Posts: 121
Joined: Fri Jun 03, 2011 7:45 pm
Location: Central Coast, CA

Re: New test builds available for 20110907

Post by KM6VV » Wed Sep 14, 2011 6:53 pm

I compile with these header files:

Code: Select all

#include <Servo.h>
#include <MsTimer2.h>
#include "ASB13_MM_A.h"

...

MsTimer2::set(1, ItsAlive); // 1ms period
MsTimer2::start();

...

this time I tried it, I got:

ASB13_MM_A.cpp:93:22: fatal error: MsTimer2.h: No such file or directory
compilation terminat
ed.

Although the MsTimer2.h is in the "libraries" directory. Not what I remember from before.
And interestingly, no complaint on Servo.h, which is just before it in libraries.

If I comment out TsTimer2(), I get further on to a raft of Servo errors:

E:\ARobot\Robot Class\Arduino\mpide-0022-chipkit-win-20110521\hardware\pic32\libraries\Servo\Servo.cpp: In function 'void handle_interrupts(timer16_Sequence_t, volatile __uint16_t*, volatile __uint16_t*)':
E:\ARobot\Robot Class\Arduino\mpide-0022-chipkit-win-20110521\hardware\pic32\libraries\Servo\Servo.cpp:95:30: warning: large integer implicitly truncated to unsigned type
E:\ARobot\Robot Class\Arduino\mpide-0022-chipkit-win-20110521\hardware\pic32\libraries\Servo\Servo.cpp: At global scope:
E:\ARobot\Robot Class\Arduino\mpide-0022-chipkit-win-20110521\hardware\pic32\libraries\Servo\Servo.cpp:105:8: error: expected constructor, destructor, or type conversion before '(' token
E:\ARobot\Robot Class\Arduino\mpide-0022-chipkit-win-20110521\hardware\pic32\libraries\Servo\Servo.cpp: In function 'void initISR(timer16_Sequence_t)':
E:\ARobot\Robot Class\Arduino\mpide-0022-chipkit-win-20110521\hardware\pic32\libraries\Servo\Servo.cpp:153:5: error: 'TCCR1A' was not declared in this scope
E:\ARobot\Robot Class\Arduino\mpide-0022-chipkit-win-20110521\hardware\pic32\libraries\Servo\Servo.cpp:154:5: error: 'TCCR1B' was not declared in this scope
E:\ARobot\Robot Class\Arduino\mpide-0022-chipkit-win-20110521\hardware\pic32\libraries\Servo\Servo.cpp:154:18: error: 'CS11' was not declared in this scope
E:\ARobot\Robot Class\Arduino\mpide-0022-chipkit-win-20110521\hardware\pic32\libraries\Servo\Servo.cpp:154:22: error: '_BV' was not declared in this scope
E:\ARobot\Robot Class\Arduino\mpide-0022-chipkit-win-20110521\hardware\pic32\libraries\Servo\Servo.cpp:155:5: error: 'TCNT1' was not declared in this scope
E:\ARobot\Robot Class\Arduino\mpide-0022-chipkit-win-20110521\hardware\pic32\libraries\Servo\Servo.cpp:161:5: error: 'TIFR1' was not declared in this scope
E:\ARobot\Robot Class\Arduino\mpide-0022-chipkit-win-20110521\hardware\pic32\libraries\Servo\Servo.cpp:161:18: error: 'OCF1A' was not declared in this scope
E:\ARobot\Robot Class\Arduino\mpide-0022-chipkit-win-20110521\hardware\pic32\libraries\Servo\Servo.cpp:162:5: error: 'TIMSK1' was not declared in this scope
E:\ARobot\Robot Class\Arduino\mpide-0022-chipkit-win-20110521\hardware\pic32\libraries\Servo\Servo.cpp:162:20: error: 'OCIE1A' was not declared in this scope
E:\ARobot\Robot Class\Arduino\mpide-0022-chipkit-win-20110521\hardware\pic32\libraries\Servo\Servo.cpp: In member function 'void Servo::writeMicroseconds(int)':
E:\ARobot\Robot Class\Arduino\mpide-0022-chipkit-win-20110521\hardware\pic32\libraries\Servo\Servo.cpp:313:23: error: 'SREG' was not declared in this scope
E:\ARobot\Robot Class\Arduino\mpide-0022-chipkit-win-20110521\hardware\pic32\libraries\Servo\Servo.cpp:314:9: error: 'cli' was not declared in this scope

What IS the proper way to set up files if using both Arduino UNO tool path and UNO32?

Thanks!

Alan KM6VV

GeneApperson
Posts: 239
Joined: Wed Jun 01, 2011 9:53 pm
Location: Pullman WA
Contact:

Re: New test builds available for 20110907

Post by GeneApperson » Wed Sep 14, 2011 8:52 pm

These error messages for Servo are being generated from files in a ...win-20110521... folder. The compiler is complaining about AVR register names. It looks like you aren't using the new test build.

MsTimer2 is not one of the standard libraries, it is one of the contributed libraries. It isn't included in either the standard Arduino distribution or the MPIDE distribution. It is unlikely that it will work until it has been ported to the PIC32.

Gene

KM6VV
Posts: 121
Joined: Fri Jun 03, 2011 7:45 pm
Location: Central Coast, CA

Re: New test builds available for 20110907

Post by KM6VV » Wed Sep 14, 2011 10:20 pm

Hi Gene,

I was trying an old library. I re-loaded mpide-0022-windows-20110907-test\, and with MsTimer2() commented out, it compiles!

I copied an MsTimer2 directory into mpide-0022-windows-20110907-test\libraries, but (and I ran into this before) the compiler doesn't see the MsTimer2 directory. Import library doesn't see the directory either, even after exiting and reloading mpide. It does see all the fresh library files. Funny, I was able to add new libraries to the Arduino libraries.

But wait, as a test, I renamed the new Servo directory ServoX (to kill it) and with #include MsTimer2.h commented out, it once again compiles! Where is the compiler getting Servo.h?

This is one library I might just tackle. I've set up interrupts on the PIC18F4620 for this same function, maybe it won't be too hard.

Thanks!

Alan

Post Reply