Re: Re: daqboard2000 problem to execute comedi_config

I'm sure that it is not an old message. Another message is added each time i
invoke the comedi_config command.

When i make a md5sum on my binary file, i get 81fdc53c2e57b367d90db1d36997bf23
which is different from your key.

I don't know where i'm wrong.

The .h file i use comes from comedi cvs server (version 1.3 of the h file from
ds in attic folder)

The binary dumper code i use is something like that :
#include "daqboard2000_fpga.h"
#include <stdio.h>

FILE * stream = NULL;
long int i = 0;
unsigned char value;
int ret;

int main() {
  stream = fopen ("dumpc.b", "w+b");
  if (stream==NULL) { printf("error\n"); exit(0); }

  for (i=0; i<bTopBitSize; ++i) {
    value = bTopBitArray[i];
    printf ("W [%d] : %c\n", i, value);
    ret = fwrite ((unsigned char *) &value, sizeof (unsigned char), 1, stream);
    if (ret!=1) { printf("erreur\n"); exit(0); }
}

it seems to work well and when i use hexedit to check the written hexa values
they are good according to the array.

Maybe i need a separator between each char ?

Thanks.


in response to:
> I read the mailing list concerning the configuration of a daqboard2000
> 
> I get the file /daqboard2000_fpga.h /and now according to a post I have 
> to dump it to a binary file.
> 
> So i make a simple C main that includes the h file and create a binary 
> file toto by reading the big array of the h file.
> 
> But when i invoke comedi_config -i toto /dev/comedi1 daqboard2000 it 
> fails too
> with the message on var/log/messages : /ids2no FPGA initialization code, 
> aborting
Interresting! I can only reproduce that effect by omitting the 'i' 
parameter alltogether.

You're sure that's not an old message?

The md5sum(1) of my bit-file is:
0$ md5sum /usr/local/lib/DaqBoard2000_FPGA.bit
59b77d07397427312796e7a7ed7e5e7e  /usr/local/lib/DaqBoard2000_FPGA.bit

 -- Kavli

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

Received on 2004-10-18Z06:54:11