chipKIT® Development Platform

Inspired by Arduino™

MPIDE error running

Created Thu, 10 Oct 2013 16:28:11 +0000 by illegalbean


illegalbean

Thu, 10 Oct 2013 16:28:11 +0000

Hi,

I was wondering if anyone would be able to help me figure out an issue i'm having compiling a sketch; I have tried compiling the SoftPWMServo "SimplePWM" with no success. I am using MPIDE 0023-windows-20120903 on a windows xp pc.

I get the following message:

"Error running."

"SimplePWM.ccp: In function 'void loop()': SimplePWM.ccp: 32.43 error: to few arguments to function 'int32_t SoftPWMServoPWMWrite(uint32_t, uint8_t, bool)' ....

The message continues on to giving me the path of the file several times with the message above after each call to the SoftPWMServoPWMWrite() function.

Thank you in advance for your help.


majenko

Thu, 10 Oct 2013 23:04:00 +0000

Try a version of MPIDE that's not a year old. Things have moved on somewhat since then, especially with the software servo library.

[url]http://chipkit.s3.amazonaws.com/builds/mpide-0023-windows-20130918-test.zip[/url]


illegalbean

Fri, 18 Oct 2013 14:34:34 +0000

Ok, I tried to load my program using 20130715 and 20130918 versions of MPIDE, they both loaded the program to the board, but the program would not function ( I get no response to the input). When I use 20120913 it loads and I get a response.

Fubarino SD (PIC32MX440F256H)


majenko

Fri, 18 Oct 2013 15:37:16 +0000

Which Fubarino SD are you selecting in those newer versions?


illegalbean

Fri, 18 Oct 2013 17:37:37 +0000

Tools/Board/Fubarino/Fubarino SD


majenko

Fri, 18 Oct 2013 17:53:12 +0000

That's for the Fubarino 1.5 - the '795 based version. You need the seeed version, version 1.4, for the '440 based board.


illegalbean

Fri, 18 Oct 2013 18:00:09 +0000

Thanks Majenko,

I'll give it a shot.


cobra18t

Fri, 18 Oct 2013 18:13:58 +0000

The error with:

SoftPWMServoPWMWrite(uint32_t, uint8_t, bool)

Is due to a manual code change I used for another application. The standard code does not have the "bool" argument. If you replace the SoftPWMServo folder in 20120913 with the same folder from a later version (20130918), you should be able to compile without issue on 20120913.

So the original issue that illegalbean brought up was not an issue with an old version of MPIDE, it was that I had edited his local library for my own use.

Sorry you inherited that one, illegalbean!