Programming the on-board STMicro BPI flash on the S-3A/AN Starter kit via EDK Flashwriter may fail with DONE not going high.
iMPACT will allow the flash to be programed with an .mcs file to load the FPGA with a configuration image, but performing this same operation in EDK may cause a failure during configuration.
This problem is because of a byte-swapping issue where EDK does not manage the input file properly. If the configuration file is not stored in the flash in the proper manor, configuration will fail.
To ensure that the EDK tools manage the files correctly, please follow the steps below:
1. Use the User Formatted PROM file to get it in the correct byte-swapped format.
2. Use the following PROMGen CMD line to create a .BIN file.
Promgen -w -p ufp -c FF -t test.pft -o test1_x16 -u 0 download_CCLK.bit
Promgen -w -p bin -r test1_x16.ufp
NOTE: Also remember that CCLK MUST be set to 1 MHz because of the high fan-out of this signal on this board.