Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Remote update EPCS file format?

I have a Cyclone III EP3C5 design that uses an EPCS16 device in AS mode for configuration. I have successfully implemented the ALTREMOTE_UPDATE function as well as a function to load a new application configuration in the EPCS16 at address 0x80000. This function simply receives the new configuration file one page at a time over a custom communication port and programs it to the ECPS16 device (after erasing the appropriate sectors, of course).

I tried loading an application config raw binary file (.rbf) at that address and when I attempt to reconfigure at 0x80000 and use the new configuration, the device reverts back to the factory configuration and reports a reconfiguration trigger of 5'b00100 (nSTATUS asserted by an external device as the result of an error). Funny, because I don't have anything tied to nSTATUS pin... it is pulled high with a 10K resistor. This isn't the first issue I have found with ALTREMOTE_UPDATE, so I don't trust this info.

If I create a .jic file with the factory config at 0x00000 and the application config at 0x80000, everything works just fine. With this .jic file in the EPCS16 I can trigger a reconfiguration when in factory mode and the device successfully loads the application configuration.

Using a binary editor, I took a look at the application config .rbf file and compared it to the data embedded in the .jic file. The only difference is in the very beginning of the .rbf file. A handful of bytes are different. I editted those bytes in the .rbf file to match what was in the .jic file. I then used my update function in the device to download the new .rbf file into the EPCS16 (again at 0x80000) and reconfigured. Everything worked beautifully.

So here's my question: what file format am I supposed to use when downloading a new application configuration into the EPCS16? Or, if the format is .rbf, how do I create one that is correct? Any idea what settings I might have overlooked that created an incorrect .rbf file?

17 Replies