Karl: > Does anyone know why I get the "invalid pointer" (as described below) ? > Copy of repo is in http://aspodata.se/computing/urjtag/ ...
Found the problem, I did: pdata = (struct pdata *) malloc(sizeof (struct pdata *)); when I should do: pdata = (struct pdata *) malloc(sizeof (struct pdata)); Now it behaves fine: $ jtag -q jtag> cable aspo ppdev /dev/parport0 Initializing ppdev port /dev/parport0 jtag> frequency 500000 Setting TCK frequency to 500000 Hz requested frequency 500000, now calibrating delay loop new real frequency 265713, delay 1 new real frequency 204317, delay 0 operating without delay done jtag> quit $ Regards, /Karl Hammar _______________________________________________ UrJTAG-development mailing list UrJTAG-development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/urjtag-development