Few crazy tests more with the same result: disabling the antivirus, running windows in safe mode (no driver), booting another windows from different HDD, removing the resistor.
I've tried something different. I've canceled the process just before "programming at
0" become "programming at
1" and the chip was completely empty (only FFs).
Opening parallel port LPT1
On windows system 2
setting ECP port to SPP bidirectional mode
serial flash in idle state 0x00
Bulk erasing flash checking status...
status = 00
done!
programming code..
214 pages ...
programming at 0
The next time I've canceled it about a second later when it reached "programming at
1" and the blocks from 0-FF was written at once. So the actual writing takes a second or two. I've thought "There must be some kind of timing issue or waiting.", I've checked the code (of flasher) and there were few sleep(100) lines. I've removed those lines and tried again
without the chip and bam this error in less than a second:
Opening parallel port LPT1
On windows system 2
setting ECP port to SPP bidirectional mode
serial flash not idle! reporting state 0xff
The previous times (with the sleeps) it took about 2 minutes for the same result. Maybe you've uploaded the wrong file or sleep isn't implemented well.
I am waiting for your permission to program the chip without the sleeps or which ones to remove/change. Because removing wrong sleep can mess up everything.