Shop OBEX P1 Docs P2 Docs Learn Events
Servo32v7 Issue... — Parallax Forums

Servo32v7 Issue...

MacGeek117MacGeek117 Posts: 747
edited 2010-08-29 17:46 in Propeller 1
Hi all,
trying to get some problems worked out with my Prop and a couple of servos. (Prop Protoboard, BOE-Bot chassis)
I just downloaded the latest version of Servo32v7, since I've been switching over to using BST in preparation to getting a Mac, but whenever I try to compile my code:
CON
  _clkmode      = xtal1 + pll16x
  _xinfreq      = 5_000_000

OBJ
  servo         : "servo32v7"
PUB Start
  repeat
I get this error message:
Servo32v7_Ramp_v2.spin - Relocation pointer error!! 0190
Servo32v7_Ramp_v2.spin - FATAL! unable to locate Object to fixup!! 144

What's going on here????
I'm on a PC running XP Home SP3.

Thanks for all your help!
MG117

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-08-29 15:23
    There's no reference to "servo" in your program. Admittedly, the error message is a bit obscure (and different from what I got on my MacOS version of BST), but I added "servo.start" just before the "repeat" and it compiled successfully.
  • MacGeek117MacGeek117 Posts: 747
    edited 2010-08-29 15:30
    Ok, that's freaky.....
    Adding servo.start seemed to fix it....
    Thanks, Mike!
    I'll rename the thread and keep you posted...
    The original problem was that every time I tried to use any servos in a project with a Prop, the MCU constantly reset, creating a 'cogging' like response.
    I did find a object that doesn't cause this (dServo.spin), but it's not the easiest object to understand.
    MG117
  • Mike GreenMike Green Posts: 23,101
    edited 2010-08-29 15:53
    Generally, the kind of resetting you describe is due to power supply problems with either the supply voltage sagging under load to where the Propeller resets or perhaps noise induced on the supply voltage that does the same thing.
  • MacGeek117MacGeek117 Posts: 747
    edited 2010-08-29 16:10
    That's what I'm thinking, too.
    But, the demo for dServo works just fine on the same setup, so....
    We'll see what happens.
    MG117
    P.S. the power supply is the battery pack from my BOE-Bot with fresh AAs.
  • MacGeek117MacGeek117 Posts: 747
    edited 2010-08-29 17:46
    Servo32v7 works just fine. Might have been the battery before, might not.
    Thanks for all your help, Mike!
    MGG117
Sign In or Register to comment.