[openfirmware] OFW Client Programs Problems

Andrea r&d4 at dave-tech.it
Tue Jun 17 17:02:20 CEST 2008



Andrea wrote:
> 
> I got another problem while reading the file from usb device:
> 
> Running Lattice programmer Boot device: /usb/disk:\vme.elf  Arguments: 
> u:\neptune.vmeBoot device: /usb/disk:\vme.elf  Arguments: u:\neptune.vme
> finddevice ( 105463 -- ff82b044 )
 > [snip]
> read ( 80 ffb730a8 ff9df5b4 -- 80 )
> BOUND range exceeded
> ok2
> 
> the last read() is, in C code a simple fgetc(). Is 'still something 
> about USB device or maybe in client interface? (or.. whatever..)
> 

Sorry for the silly question.. of course it was a fault of my 
application: "BOUND range exceeed" is outside OFW, due the fact that 
there is a closed bracket around the read call.

The "problem" was on a weird printf() formatting that is not supported 
by OFW printf() library.

I just remove it and now the program works (well.. it still requires a 
lot of work on it ;-) )

Thanks anyway,

-- 

Andrea

DAVE Srl - Electronics System House
e-mail address: r&d4 at dave-tech.it




More information about the openfirmware mailing list