Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issues compiling examples for Pinguino32
09-08-2011, 05:30 AM,
#1
Issues compiling examples for Pinguino32
Hey everyone, I am pretty much a noob to the Arduino/Pinguino community and physical programming in general. I am having a problem compiling some of the examples, such as the servo examples and usb examples.

The code I am trying to run is the single servo test from the examples:

unsigned char position=1;

void setup(void)
{
servo.attach(17);
}

void loop(void)
{
servo.write(17,position);
delay(500);
position++;
}

and here is the output from the compiler:
C:\pinguino32x_windows_rev149>C:\pinguinocompiler32Windows\bin\mips-gcc.exe -EL -c -march=24kc -msoft-float -D__PIC32MX__ -D__32MX440F256H__ -DPIC32_PINGUINO -IC:\pinguino32x_windows_rev149 -IC:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino\ -IC:\pinguino32x_windows_rev149\tools\pic32mx\include\ -IC:\pinguino32x_windows_rev149\tools\pic32mx\include\non-free\ C:\pinguino32x_windows_rev149\source\main32.c -o C:\pinguino32x_windows_rev149\source\main32.o
In file included from C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/newlib.c:27:0,
from C:\pinguino32x_windows_rev149\source\main32.c:25:
C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/serial.c: In function 'SerialSetDataRate':
C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/serial.c:180:5: warning: large integer implicitly truncated to unsigned type
C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/serial.c:189:5: warning: large integer implicitly truncated to unsigned type
C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/serial.c: In function 'SerialGetString':
C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/serial.c:457:2: warning: return from incompatible pointer type
C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/serial.c:457:2: warning: function returns address of local variable
In file included from C:\pinguino32x_windows_rev149\source\main32.c:25:0:
C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/newlib.c: At top level:
C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/newlib.c:81:28: warning: 'struct stat' declared inside parameter list
C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/newlib.c:81:28: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from C:\pinguino32x_windows_rev149\source\main32.c:27:0:
C:\pinguino32x_windows_rev149\source\/user.c: In function 'setup':
C:\pinguino32x_windows_rev149\source\/user.c:26:1: error: 'servo' undeclared (first use in this function)
C:\pinguino32x_windows_rev149\source\/user.c:26:1: note: each undeclared identifier is reported only once for each function it appears in
C:\pinguino32x_windows_rev149\source\/user.c: In function 'loop':
C:\pinguino32x_windows_rev149\source\/user.c:31:1: error: 'servo' undeclared (first use in this function)
error while compiling file C:\pinguino32x_windows_rev149/NoName0

I am still a bit of a novice with C so I don't feel comfortable enough to dig into the .c files and try to debug the issue so that is why I am posting here.

My environment is:
- Windows 7 Home Premium SP1 x64
- Python 2.6.6 32-bit
- PyUSB-0.4.3
- wxPython 2.8.11.0
- LibUSB 1.2.1
- pinguino32x_windows_rev149
- pinguinocompiler32Windows

I can get simple programs like LED Blink and Dimmer to work, but if the servo object or USB object, I get the error output mentioned above.

Any ideas?

Thanks,

Greg

Reply
11-08-2011, 09:06 AM,
#2
RE: Issues compiling examples for Pinguino32
Hi Gregg

Sorry but Servo is not yet ported on the PIC32 release, we are working on the libraries for PIC32. All the new libraries should be available soon in the X.2 release.

Jean-Pierre

(09-08-2011, 05:30 AM)WankelMunky Wrote: Hey everyone, I am pretty much a noob to the Arduino/Pinguino community and physical programming in general. I am having a problem compiling some of the examples, such as the servo examples and usb examples.

The code I am trying to run is the single servo test from the examples:

unsigned char position=1;

void setup(void)
{
servo.attach(17);
}

void loop(void)
{
servo.write(17,position);
delay(500);
position++;
}

and here is the output from the compiler:
C:\pinguino32x_windows_rev149>C:\pinguinocompiler32Windows\bin\mips-gcc.exe -EL -c -march=24kc -msoft-float -D__PIC32MX__ -D__32MX440F256H__ -DPIC32_PINGUINO -IC:\pinguino32x_windows_rev149 -IC:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino\ -IC:\pinguino32x_windows_rev149\tools\pic32mx\include\ -IC:\pinguino32x_windows_rev149\tools\pic32mx\include\non-free\ C:\pinguino32x_windows_rev149\source\main32.c -o C:\pinguino32x_windows_rev149\source\main32.o
In file included from C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/newlib.c:27:0,
from C:\pinguino32x_windows_rev149\source\main32.c:25:
C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/serial.c: In function 'SerialSetDataRate':
C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/serial.c:180:5: warning: large integer implicitly truncated to unsigned type
C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/serial.c:189:5: warning: large integer implicitly truncated to unsigned type
C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/serial.c: In function 'SerialGetString':
C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/serial.c:457:2: warning: return from incompatible pointer type
C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/serial.c:457:2: warning: function returns address of local variable
In file included from C:\pinguino32x_windows_rev149\source\main32.c:25:0:
C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/newlib.c: At top level:
C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/newlib.c:81:28: warning: 'struct stat' declared inside parameter list
C:\pinguino32x_windows_rev149\tools\pic32mx\include\pinguino/newlib.c:81:28: warning: its scope is only this definition or declaration, which is probably not what you want
In file included from C:\pinguino32x_windows_rev149\source\main32.c:27:0:
C:\pinguino32x_windows_rev149\source\/user.c: In function 'setup':
C:\pinguino32x_windows_rev149\source\/user.c:26:1: error: 'servo' undeclared (first use in this function)
C:\pinguino32x_windows_rev149\source\/user.c:26:1: note: each undeclared identifier is reported only once for each function it appears in
C:\pinguino32x_windows_rev149\source\/user.c: In function 'loop':
C:\pinguino32x_windows_rev149\source\/user.c:31:1: error: 'servo' undeclared (first use in this function)
error while compiling file C:\pinguino32x_windows_rev149/NoName0

I am still a bit of a novice with C so I don't feel comfortable enough to dig into the .c files and try to debug the issue so that is why I am posting here.

My environment is:
- Windows 7 Home Premium SP1 x64
- Python 2.6.6 32-bit
- PyUSB-0.4.3
- wxPython 2.8.11.0
- LibUSB 1.2.1
- pinguino32x_windows_rev149
- pinguinocompiler32Windows

I can get simple programs like LED Blink and Dimmer to work, but if the servo object or USB object, I get the error output mentioned above.

Any ideas?

Thanks,

Greg

Reply
11-08-2011, 10:37 PM,
#3
RE: Issues compiling examples for Pinguino32
(11-08-2011, 09:06 AM)Jean-Pierre Wrote: Hi Gregg

Sorry but Servo is not yet ported on the PIC32 release, we are working on the libraries for PIC32. All the new libraries should be available soon in the X.2 release.

Jean-Pierre

Ahh I had a feeling that was the case. I am assuming that is the case with USB as well, since I pretty much receive the same compiling errors.

Thanks for the heads up, I'll be looking forward to the X.2 release.

Greg
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)