To program the firmware in the EEPROM, the IIC bus should be correctly configured.
To program the bitstream in the Flash, the SPI bus should be correctly configured.