new_project \
    -name {A2F500} \
    -location {C:\A2F_AC345_DF_1\A2F500\designer\impl1\A2F500_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 {C:\A2F_AC345_DF_1\A2F500\designer\impl1\A2F500.fdb} \
    -feature {prog_from:off} \
    -feature {prog_nvm:on} \
    -efm_content {location:0;source:efc} \
    -efm_block {location:0;config_file:{C:\A2F_AC345_DF_1\A2F500\component\work\A2F500_MSS\MSS_ENVM_0\MSS_ENVM_0.efc}} \
    -pdb_file {C:\A2F_AC345_DF_1\A2F500\designer\impl1\A2F500_fp\A2F500.pdb}
set_programming_action -action {PROGRAM}
catch {run_selected_actions} return_val
save_project
close_project
if { $return_val != 0 } {
  exit 1 }
