Forum Discussion

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

binary configuration files - a simple question

I got the remote upgrade circuitery to work, which includes a UART to transfer the app image, FLASH interface to write it to the right address and a remote_update block to trigger the reconfig.

All I'm missing now is to understand how to generate the binary compressed application image file (for EPCS4 flash) out of the app sof file. It has to be compressed because I dont have enough space on the EPCS4.

When I'm using JIC that combines both the bootloader and the app everything works great.

I tried jbc and rbf but it doesnt seem to work.

Thanks

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You can create compressed POF files in two locations. Under Assignments, Device, Device & Pin Options, Configuration ... select the EPCS configuration device and select "Generate compressed bitstreams". After compilation you will get a POF file that is compressed when the Assembler runs. If you have a SOF and want to create a compressed POF, then you can do this under File, Convert Programming Files, select your configuration device, highlight the SOF Data and click on Add File, select the appropriate SOF. click and highlight the SOF that appears under the SOF Data, then click on Properties, check the Compression box when the GUI box appears and click Ok. This will create a compressed POF as well that you can use in the JIC flow you mention, which allows the EPCS device to be programmed over JTAG.

    What you really want though is sof2flash with the -compress option. Refer to this link: http://www.altera.com/literature/ug/ug_nios2_flash_programmer.pdf