DavidGriffith / minipro-import-test

An open source program for controlling the MiniPRO TL866xx series of chip programmers
GNU General Public License v3.0
3 stars 0 forks source link

VPP=12VJED file format error! #262

Open DavidGriffith opened 2 years ago

DavidGriffith commented 2 years ago

In GitLab by @bigman3 on Apr 14, 2022, 21:00

Hi,

I am getting this error when trying to program a couple of GALs. VPP=12VJED file format error!

I am able to program the GALs on windows but not with your tool on arch linux. I have never had any issues with minipro until now.

I am trying to program a ATF22V10C with the memdec.jed file. Linked here: https://github.com/stas2k/galspanic/releases/download/v1.2/memdec.jed

The other GAL I'm trying to program is a GAL16V8B with the CPS2-BGSB3G.jed. Linked here: http://wiki.pldarchive.co.uk/pals/CPS2-BGSB3G.jed

DavidGriffith commented 2 years ago

In GitLab by @radiomanV on Apr 15, 2022, 09:18

These jed files are malformed indeed. The first file has a wrong checksum digit count (5 instead of 4). Just replace the 10f8d with 1154 at the end of file.
The second file is missing the file checksum. Just add 2FE7 after the ETX character (the last character in file).

As i'm the guy who implemented the jed file parser i must say that i encountered tons of malformed jedec files while i write the parser code and i adapted the code for most badly formatted files i have found at that time but, i will not modify the code to accept files like those above (no file checksum at all or wrong digit count).
Look here at !131 and here: http://www.pldtool.com/pdf/fmt_jedec.pdf
Also use -P switch to skip write protect otherwise the verify will fail.