new_project \
    -name {Loading_Booting_EMC} \
    -location {D:\AC346\A2F_AC346_DF\A2F500\Verilog\Loading_Booting_Ext_Memories\designer\impl1\Loading_Booting_EMC_fp} \
    -mode {single}
set_device_type -type {A2F500M3G}
set_device_package -package {484 FBGA}
update_programming_file \
    -feature {prog_fpga:on} \
    -fdb_source {fdb} \
    -fdb_file {D:\AC346\A2F_AC346_DF\A2F500\Verilog\Loading_Booting_Ext_Memories\designer\impl1\Loading_Booting_EMC.fdb} \
    -feature {prog_from:off} \
    -feature {prog_nvm:on} \
    -efm_content {location:0;source:efc} \
    -efm_block {location:0;config_file:{D:\AC346\A2F_AC346_DF\A2F500\Verilog\Loading_Booting_Ext_Memories\component\work\emcFlashImage\MSS_ENVM_0\MSS_ENVM_0.efc}} \
    -pdb_file {D:\AC346\A2F_AC346_DF\A2F500\Verilog\Loading_Booting_Ext_Memories\designer\impl1\Loading_Booting_EMC_fp\Loading_Booting_EMC.pdb}
set_programming_action -action {PROGRAM}
catch {run_selected_actions} return_val
save_project
close_project
if { $return_val != 0 } {
  exit 1 }
