Hello Aiman,
Thank you for reaching out regarding my issues using svf file.
In the mean time, I was able to identify the problem causing occasional miss writings. It was the serial communication from the computer running a JAVA program who reads the svf file and generates serial commands transmitted to my uC which will process them into JTAG signals for the TAP controller in MAX10. The serial commands occasionally were not contiguous, having gaps between characters, larger than the timeout I programed in the uC for detecting the end of the message, hence the uC was rejecting the command and skipped to the next one.
The problem is fixed now and I was able to load the FW in the FPGA from the svf file and it works.
I am working now to improve the programming time which is very long.
I still need help with some ISP instruction codes I could not find info about:
x002, x003, x004, x307, x3F2 and x3F4.
I can see they are used in the generated svf file but I could not find description about them. The other codes as the one in the link you sent me, are clear.
If you can send me some info about those instruction codes would be a big help.
Thank you,
Dan