######################################################
#
# XPS Tcl API script generated by PlanAhead
#
######################################################

proc _main_ {} {
  cd "C:/a_RefDesign/MAXREFDES14_Sonoma/RD14_ZED_V01_00/Design_Files/top.srcs/sources_1/edk/arm_system"
  if { [ catch {xload xmp arm_system.xmp} result ] } {
    exit 10
  }
  # Set the export bmm/bit 0
  xset sdk_export_bmm_bit 0
  # Set the export dir
  xset sdk_export_dir C:/a_RefDesign/MAXREFDES14_Sonoma/RD14_ZED_V01_00/Design_Files/top.sdk/SDK/SDK_Export
  if { [catch {run exporttosdk} result] } {
    return -1
  }
  return $result
}

# Export Hardware Data
if { [catch {_main_} result] } {
  exit -1
}

# Check return status and exit
if { [string length $result] == 0 } {
  exit 0
} else {
  exit $result
}
