Difference between revisions of "Configure or flash FPGA ?"

From ArmadeusWiki
Jump to: navigation, search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This article explain the difference between flashing FPGA and configuring FPGA.
+
[[Category: FPGA]]
 +
This article explain the difference between flashing FPGA and configuring FPGA on [[APF9328]], [[APF27]] and [[APF51]]. For the [[APF6_SP]] there is no FPGA partition under flash memory, to «flash» firmware, the bitstream must be [[Target_Software_Installation#APF6_SP | written in rootfs]].
  
 
[[image:flash_configure_fpga.jpg|700px|center|thumb|'''figure 1''' - ''Flash and FPGA'']]
 
[[image:flash_configure_fpga.jpg|700px|center|thumb|'''figure 1''' - ''Flash and FPGA'']]
Line 12: Line 13:
 
</pre>
 
</pre>
 
* '''Auto-load''' : It is possible to configure U-Boot to '''configure''' the FPGA with the configuration saved in Flash memory on the boot. To do that simply set the U-Boot environment variable '''firmware_autoload''' to 1 :
 
* '''Auto-load''' : It is possible to configure U-Boot to '''configure''' the FPGA with the configuration saved in Flash memory on the boot. To do that simply set the U-Boot environment variable '''firmware_autoload''' to 1 :
 +
{{Warning| '''Before''' setting the firmware_autoload variable, be sure that your FPGA binary file is correct. If not, your board will '''hang up''' at U-Boot start and you will need an [[BootStrap | U-Boot recover]] to fix it.}}
 
<pre class="apf">
 
<pre class="apf">
 
  BIOS> setenv firmware_autoload 1
 
  BIOS> setenv firmware_autoload 1
 
  BIOS> saveenv
 
  BIOS> saveenv
 
</pre>
 
</pre>
 
{{Warning| '''Before setting the auto-load''' variable, be sure that your fpga binary file is correct. If not your board '''hang up''' at U-Boot starting and you will need an [[BootStrap | U-Boot recover]] to fix it.}}
 

Latest revision as of 08:59, 27 August 2015

This article explain the difference between flashing FPGA and configuring FPGA on APF9328, APF27 and APF51. For the APF6_SP there is no FPGA partition under flash memory, to «flash» firmware, the bitstream must be written in rootfs.

figure 1 - Flash and FPGA
  • Configure FPGA : At power on, the FPGA is not configured. FPGA configuration is the action of transfering the bitstream from the processor RAM to the FPGA.
BIOS> fpga load 0 ${loadaddr}
  • Flash firmware : It is possible to save the FPGA configuration under the Flash memory of the APF. Flashing firmware is the action of transfering the bitstream from the processor RAM to the flash memory.
BIOS> run flash_firmware
  • Auto-load : It is possible to configure U-Boot to configure the FPGA with the configuration saved in Flash memory on the boot. To do that simply set the U-Boot environment variable firmware_autoload to 1 :
Warning Warning: Before setting the firmware_autoload variable, be sure that your FPGA binary file is correct. If not, your board will hang up at U-Boot start and you will need an U-Boot recover to fix it.
 BIOS> setenv firmware_autoload 1
 BIOS> saveenv