On Sun, Sep 17, 2006 at 01:25:01AM +0200, Jan Wagemakers wrote: > Fernando M. Maresca schreef: > > > Yes, it works. Thank you both, > > Ok, I have taken a closer look to the source of picprog and think that I > have found a good solution. > > Can you test if the following works for you? > > In the file picport.h at 53 you find: > > #if defined(__x86_64__) || defined(__i386__) > #define RDTSC_WORKS > #endif > > Change this to: > > //#if defined(__x86_64__) || defined(__i386__) > //#define RDTSC_WORKS > //#endif > > Normally picprog use the RDTSC instruction on x86_64/i386 platforms. By > disabling this, picprog makes use of the delay-routines for platforms that > don't have this RDTSC instruction. > > Maarten Blomme has test this on his slackware amd64 box and it fixes the > problem. It also fixes the problem that I have on my laptop¹. > > So, I plan to create a new package with RDTSC disabled, but before doing > that I like to know if it also fix your problem.
Please forgive about the delay in this answer, there was some trouble qith mt isp. With this patch, it seems to randomly detects the pic and read, but for the most time it fails: homero:/usr/src/picprog-1.8.1# ./picprog -o /tmp/o.hex --pic /dev/ttyS2 Picprog version 1.8.1, Copyright © 2006 Jaakko Hyvätti <[EMAIL PROTECTED]> Picprog comes with ABSOLUTELY NO WARRANTY; for details type `picprog --warranty'. This is free software, and you are welcome to redistribute it under certain conditions; type `picprog --copying' for details. /dev/ttyS2: id 0x0560: detected pic16f84a version 0x00 Device pic16f84a, program memory: 1024, data memory: 64. Reading program memory, /dev/ttyS2:PIC programmer missing or chip fault 0007:unable to read pic With the previous patch works fine all the times. Regards, -- Fernando M. Maresca - - - - - - - - - - - - - Cel: 221 15 545 8196 Tel: 221 489 0466