Shop OBEX P1 Docs P2 Docs Learn Events
Help! — Parallax Forums

Help!

panama23445panama23445 Posts: 9
edited 2015-03-13 18:54 in Propeller 1
I got into robotics earlier this year and i have progressed to, what I think is a novice state. I currently only have the Activity Bot kit with a propeller 8-core chip. Everything has been great and I have learned a lot, but when my friends asked me to use more advanced multi-core I have been derailed in my education. My current project is a modified version of the Polite-Bot activity provided on Parallax's website. I have gotten the original code to work and have even modified my bot to say different things. My friends thought it would be cool if we could play a song or something while the bot is roaming around but before it detects anything.

This is my code thus far:

#include "simpletools.h" // Include header files
#include "ping.h"
#include "wavplayer.h" // Must be 0.9 or later, 10-31-2013
#include "abdrive.h" // Must be 0.5.5 or later, 10-31-2013


void driveandturn();
void background();







int main() // Main function
{

int DO = 22, CLK = 23, DI = 24, CS = 25; // SD I/O pins
sd_mount(DO, CLK, DI, CS); // Mount SD card
wav_volume(10); // Set volume here, 1-10

cog_run(&background, 40);


//freqout(4, 2000, 2000); // Reset indicator
drive_setRampStep(10);
// 10 ticks/sec / 20 ms



while(1)
{
drive_ramp(128, 128); // Forward 128 ticks/second
//while(ping_cm(6) >= 20) pause(5); // Drive until object in range

drive_speed(0, 0) ; // Then stop
wav_play("excuseme1.wav"); // Play wav file named in string
pause(4000); // Time to speak & let obstacle move

if(ping_cm(6) < 21) // If obstacle is still there
{
wav_play("****.wav"); // Play wav file named in string
pause(1000); // Time to speak before moving

int turn = rand() % 2; // Turn in a random direction
if(turn == 1) // If turn is odd (1)
drive_speed(48, -48); // rotate right

else // else if turn is even (0)
drive_speed(-48, 48); // rotate left


while(ping_cm(6) < 20); // Turn till object not in view
}
else
{
wav_play("thankyou.wav"); // Play wav file named in string
pause(1000); // Time to speak before moving
}
}
}


void background(){
wav_play("flirtinwithdisater.wav");
pause(500000);
}


I keep having the same error(s) and I have tried debugging them on my own to no avail.

Here are the errors:

c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -labdrive
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lwavplayer
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lping
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lsimplei2c
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lsimpletext
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lsimpletools
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -labdrive
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lwavplayer
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lping
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lsimplei2c
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lsimpletext
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -labdrive
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lwavplayer
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lping
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lsimplei2c
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -labdrive
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lwavplayer
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lping
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -labdrive
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lwavplayer
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -labdrive
c:/program files (x86)/simpleide/propeller-gcc/bin/../lib/gcc/propeller-elf/4.6.1/../../../../propeller-elf/bin/ld.exe: cannot find -lfdserial

It keeps telling me: propeller-elf-gcc.exe Error: 1


Any help or comments that might possible help or solve this question would be greatly appreciated

Comments

  • edited 2015-03-13 17:09
    Hi, I'll reply again after looking at the bug, but I think the best place to look for code to get you started on the music playing option would be the Remote Control Rock, Talk and Roll ActivityBot.
  • DavidZemonDavidZemon Posts: 2,973
    edited 2015-03-13 17:49
    This looks to me like a SimpleIDE issue, not a code bug. I think it would help a lot if you posted your SimpleIDE project as a zip. At the very bottom of page 8 of this manual, there's an option describing how to zip up your project. You could then post it for us to examine.
  • edited 2015-03-13 17:52
    Your code compiled fine in my SimpleIDE. It looks like your SimpleIDE's settings might have been changed, so it can't find the libraries. Click Tools and select Properties, then check the fields against what's below. Also, check those locations to make sure that the folders are really there too.

    GCC Folders

    GCC Compiler
    C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/bin/propeller-elf-gcc.exe

    Library Folder
    C:/Users/YourUserName/Documents/SimpleIDE/Learn/Simple Libraries/

    Workspace Folder
    C:/Users/YourUserName/Documents/SimpleIDE/

    Spin Folders

    Spin Compiler
    C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/bin/openspin.exe

    Library Folder
    C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/spin/

    Workspace Folder
    C:/Users/YourUserName/Documents/SimpleIDE/

    General

    Loader Folder
    C:/Program Files (x86)/SimpleIDE/bin/../propeller-gcc/propeller-load/
  • panama23445panama23445 Posts: 9
    edited 2015-03-13 18:54
    Thanks, I got it to work finally. My friends will be happy.
Sign In or Register to comment.