chipKIT® Development Platform

Inspired by Arduino™

Adding libraries

Created Tue, 24 May 2011 17:51:14 +0000 by sierrasmith71


sierrasmith71

Tue, 24 May 2011 17:51:14 +0000

I added a library --VarSpeedServo- , (to be able to use a finished sketch as a test) to the MPIDE using the standard method.

If I choose an Ardunio board all works fine. If I choose a UNO32 or MAX32 the added library does not appear in the drop menu from "Sketch"..."import Library" (which does, btw, indicate a grayed out "ChipKit" at the top of the drop down menu).

I poked around in the files and found that under "hardware" ...PIC32..there is a library file and the added library was not in it. I did add it and it does then appear in the drop down menu.

I loaded a sketch that used the new library and tried to compile it...ERROR... avr/interrupt.h ( included in VarSpeedServo which I added) does not exist, compile terminated....

I guess it is still the early days yet...

I did order a UNO32 and it is being shipped UPS from the West Coast so it won't be in my hands until next Tuesday...I an anxious to test it out!!!!

note: I still have the Arduino IDE 0022 in my system , should I delete it?

David Garrison


ricklon

Wed, 25 May 2011 01:29:51 +0000

A quick recommendation to add libraries to put them in a folder in the your Arduino sketch folder called libraries. Those are picked up as contributed libraries and will show for either environment.

In terms of the avr/interrupt.h that is definitely and early days issues. There is more work to do on handling interrupts cross platform.


sierrasmith71

Wed, 25 May 2011 14:21:26 +0000

"A quick recommendation to add libraries to put them in a folder in the your Arduino sketch folder called libraries. Those are picked up as contributed libraries and will show for either environment." [color=#0040BF]Thanks This works![/color] "In terms of the avr/interrupt.h that is definitely and early days issues. [color=#FF0000]There is more work to do on handling interrupts cross platform"[/color]. [color=#0040BF]OUCH! this is going to disappoint a lot of early adoptors!!!!!!!!!!!!!!![/color]

David Garrison


Mark

Sat, 28 May 2011 14:26:22 +0000

"In terms of the avr/interrupt.h that is definitely and early days issues. There is more work to do on handling interrupts cross platform". OUCH! this is going to disappoint a lot of early adoptors!!!!!!!!!!!!!!!

David

I need to hear what people want/need as far as support in this area. Give me what the priorities are and I will do the best I can do get it done quickly. This applies to any part of the core files and libraries.

Mark


KM6VV

Mon, 06 Jun 2011 22:17:38 +0000

I need timer interrupts, or I'm dead!

I've already posted on the MsTimer2 library.

#include <avr/interrupt.h>

Can't obviously use the AVR! Needs a re-write to use the PIC 32.

Thanks!

Alan KM6VV


gdelpu

Wed, 08 Jun 2011 20:20:20 +0000

Same for me,

My highest priority are

pgmspace io interrupt

thanks for your help


KM6VV

Wed, 08 Jun 2011 21:44:38 +0000

I'd like to add the servo library.

I just checked, and the furnished servo library appears to be just for AVR.

I'm also dead without this library!

Thanks!

Alan KM6VV P.S. I should have my ChipKITs today!


Ar Druid O

Thu, 09 Jun 2011 17:09:54 +0000

Another vote for timer libraries. I need the TimerOne library really bad.

It's a very useful one- internal interrupts & PWM w/ selectable duty cycle.


KM6VV

Thu, 09 Jun 2011 17:46:29 +0000

TimerOne library? I haven't seen that.

I know about this list of libraries:

[url]http://arduino.cc/en/Reference/Libraries[/url]

I did get a couple of chipKIT Uno32 boards yesterday. Impressive! I like all the additional pins, I just found out about them!

Thanks!

Alan KM6VV


Ar Druid O

Thu, 09 Jun 2011 18:47:01 +0000

The TimerOne library is at www dot arduino dot cc / playground / Code / Timer1

(Board wouldn't let me post the URL directly)


KM6VV

Thu, 09 Jun 2011 19:27:40 +0000

I found it!

[url]http://arduino.cc/playground/Code/Timer1[/url]

Funny you can't paste a URL. Maybe it takes a day or to before they allow.

Looks like it could be useful!

Yes, I hope it gets expanded to cover the PIC32 as well.

Has anyone gone through the LIBs furnished with the mpide-0022-chipkit-win-20110521\lib build to see if all the LIBs work? That's what I was counting on. Well, and a few otheres...

Alan KM6VV

The TimerOne library is at www dot arduino dot cc / playground / Code / Timer1 (Board wouldn't let me post the URL directly)


emoseman

Thu, 07 Jul 2011 23:10:42 +0000

How is the progress on this going?

I'm interested in using the libraries that are distributed in the mpide package, but am running into the same problems as mentioned before.

I'm not sure if I was too tired when I made the Max32 purchase a couple weeks ago and didn't notice the note about the ide not being finished, but I wasn't aware that there were issues like this

If there is something routine that needs to be done to get these libs to work, I'd gladly pitch in!

Thanks!

Evan


Mark

Fri, 08 Jul 2011 02:52:13 +0000

Same for me, My highest priority are pgmspace

I think I have most of pgmspace implemented, it is in wiring.h. If I am missing anything, let me know

#if !defined(AVR) #define PROGMEM #define pgm_read_byte(x) (*((char )x)) #define pgm_read_word(x) (((short )x)) #define pgm_read_byte_near(x) (((char )x)) #define pgm_read_byte_far(x) (((char )x)) #define pgm_read_word_near(x) (((short )x)) #define pgm_read_workd_far(x) (((short *)x))

#define	prog_void		const void
#define	prog_char		const char
#define	prog_uchar		const unsigned char
#define	prog_int8_t		const int8_t
#define	prog_uint8_t	const uint8_t
#define	prog_int16_t	const int16_t
#define	prog_uint16_t	const uint16_t
#define	prog_int32_t	const int32_t
#define	prog_uint32_t	const uint32_t
#define	prog_int64_t	const int64_t
#define	prog_uint64_t	const uint64_t

#endif


edringel

Fri, 08 Jul 2011 14:46:57 +0000

Adding my 2 cents, I would definitely put working interrupts as a very high priority. I'm pretty much still working with an AVR board rather that the MAX board I purchased because the interrupts are not yet functional.

Thanks for all your hard work!

Ed


KM6VV

Fri, 08 Jul 2011 18:07:58 +0000

Have they added notes? I didn't see any when I bought. too much of an impulse buy.

No warnings on the Digilent website:

[url]http://www.digilentinc.com/Products/Catalog.cfm?NavPath=2,892&Cat=18[/url]

Alan KM6VV

How is the progress on this going? I'm not sure if I was too tired when I made the Max32 purchase a couple weeks ago and didn't notice the note about the ide not being finished, but I wasn't aware that there were issues like this <snip> Evan