To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 130
129  |  131
Subject: 
Re: firmdl error
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Wed, 14 Apr 1999 01:37:42 GMT
Viewed: 
1268 times
  
Luis Villa  <liv@duke.edu> wrote:
Can anyone here help me out with this error? I have no idea where to even
begin. When downloading my binary (light-brait-with-debug.srec) I get the
following error message:

[usr@cs liv]# legOS-0.1.7/util/firmdl light-brait-with-debug.srec
light-brait-with-debug.srec: line to short on line 1

Is this just something incredibly stupid or some deeper problem?  Thanks-
Luis

[Luis sent me the .srec file so I could take a look at it.]

The problem is the length of the first line of the srec file.  The first
line is 80 characters long, which is too long.  The cryptic error message
is because the line passed into the decode routine is truncated to 80
characters and therefore shorter than advertised by the S026 header on that
first line.

According to the s-record format description I have, "an S-record will be
less than or equal to 78 bytes in length."  This first line of the file
violates that restriction.  Who is to blame does not really matter, but
interestingly enough, the contents of that first line include:

    ../code/light-brait-with-debug.srec

So one solution would be to use shorter filenames...

But assuming you want to fix firmdl.c, you have two lines to change:

Change line 298 from:

    if (count > 37 || len > count * 2 + 4)

to:

    if (len > count * 2 + 4)

Change line 414 from:

    while (fgets(buf, 80, file)) {

to:

    while (fgets(buf, sizeof(buf), file)) {

That will make firmdl.c compatible with the long filenames put into the
description records by the linker.

Alternatively, download the latest firmdl.c from:

    http://graphics.stanford.edu/~kekoa/rcx/tools.html


-Kekoa



Message is in Reply To:
  firmdl error
 
Can anyone here help me out with this error? I have no idea where to even begin. When downloading my binary (light-brait-with-debug.srec) I get the following error message: [usr@cs liv]# legOS-0.1.7/util/firmdl light-brait-with-debug.srec (...) (26 years ago, 13-Apr-99, to lugnet.robotics.rcx.legos)

2 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR