The wrong size PROM file is generated when I use iMPACT to generate a SPI PROM. When iMPACT is generating PROM data files, the PROMGen software utility is called in the background. iMPACT then passes the command line arguments to PROMGen and when generating SPI PROM data files the command line argument for the "-size" flag is wrong. In 8.2 and 8.2.01, iMPACT uses mega bytes when PROMGen is expecting kilo bytes.
There are two methods by which to work around this issue:
- Use version 8.2.02 or later of the Design Environment Tools.
- Generate the files via command line with the proper adjustments to the "-size" flag. To do this, use iMPACT to determine the command line required, and this will appear in both the ".log" and ".cmd" files when generating the files. Also, you can use The Development System Reference Guide to view a full listing of the PROMGen command line switches. At this point, the promgen commands can be run via command line with the proper adjustments.
For the 32 Mbit device, the correct argument is: '-size 4096'
For the 64 Mbit device, the correct argument is: '-size 8192'