Go to Post Another human taking a job that a robot could do... - Ryan Simpson [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-01-2010, 13:00
pafwl pafwl is offline
Franciose
AKA: Frank Larkin
FRC #0272 (Cyber Crusaders)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 1998
Location: Lansdale, Pennsylvania
Posts: 108
pafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud of
Encoder causes 24 bit relocation error

We are using Windriver C++...

We are using the Encoder and we get it to compile but when we reboot we get the error...

Relocation value does not fit in 24 bits.

We get it twice which corrisponds to the fact that the encoder is using 2 digital channels.

The program failes to load.


I looked on the web and see a WindRiver post about this.

http://fixunix.com/vxworks/262055-re...-overflow.html

Anyone run into this?
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2010, 13:32
gvarndell's Avatar
gvarndell gvarndell is offline
Software Engineer
AKA: Addi's and Georgie's Dad
FRC #1629 (GaCo)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Grantsville, Maryland
Posts: 350
gvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond repute
Re: Encoder causes 24 bit relocation error

Probably the simplest thing to do is bring up the project properties, select Build Properties and then Build Macros.
There, in the 'Build spec specific settings' section, click on CC_ARCH_SPEC to highlight it and then click the Edit button.
Add '-mlongcall' to the end of whatever is there.
Finish properly by clicking the Apply button.
Please post a result here -- whether it works or not.
__________________
Robots never, ever, ever, ever break -- The Robot Repairman (Backyardigans)
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2010, 04:41
pafwl pafwl is offline
Franciose
AKA: Frank Larkin
FRC #0272 (Cyber Crusaders)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 1998
Location: Lansdale, Pennsylvania
Posts: 108
pafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud ofpafwl has much to be proud of
Re: Encoder causes 24 bit relocation error

Sorry it took so long to answer. We have been having problems loading code. I finally got it all working on my Vista machine at home. A student had his working but that is where we saw the 24-bit error. Based upon the fact that mine was working he reloaded all the code on his. Bingo it worked. We also loaded another student's system and it too worked. So it looks like it was a load and update issue.

Thanks
Reply With Quote
  #4   Spotlight this post!  
Unread 28-01-2010, 08:53
gvarndell's Avatar
gvarndell gvarndell is offline
Software Engineer
AKA: Addi's and Georgie's Dad
FRC #1629 (GaCo)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Grantsville, Maryland
Posts: 350
gvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond repute
Re: Encoder causes 24 bit relocation error

Quote:
Originally Posted by pafwl View Post
So it looks like it was a load and update issue.
Yes and it should be noted here, for the benefit of others, that these relocation error problems seem to be a clear indication of some sort of install/update problem. Unfortunately, it is difficult to know exactly how one is supposed to achieve a coherent installation -- as evidenced by the number of people tripping over this.
__________________
Robots never, ever, ever, ever break -- The Robot Repairman (Backyardigans)
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
64-bit vs. 32-bit Absolute Pathing daltore NI LabVIEW 4 22-01-2010 19:01
Screwing Encoder into Encoder Mount? Adrien Electrical 3 25-01-2009 18:14
GTS Encoder Compilation Error Guru Programming 10 14-02-2008 12:11
Encoder Error Anime-niac_2.9 Programming 1 27-01-2007 16:23
Strange 16 bit MS-DOS subsystem error Crazy_Ed Programming 6 18-03-2004 14:31


All times are GMT -5. The time now is 02:51.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi