# 
# Usage: To re-create this platform project launch xsct with below options.
# xsct /home/ly0kos/work/prj/New_CalBoard/2.FW/Zynq/proj_cal/Vitis/NewInstCal_bsp/platform.tcl
# 
# OR launch xsct and run below command.
# source /home/ly0kos/work/prj/New_CalBoard/2.FW/Zynq/proj_cal/Vitis/NewInstCal_bsp/platform.tcl
# 
# To create the platform in a different location, modify the -out option of "platform create" command.
# -out option specifies the output directory of the platform project.

platform create -name {NewInstCal_bsp}\
-hw {/home/ly0kos/work/prj/New_CalBoard/2.FW/Zynq/proj_cal/Vitis/system_wrapper.xsa}\
-proc {ps7_cortexa9_0} -os {standalone} -out {/home/ly0kos/work/prj/New_CalBoard/2.FW/Zynq/proj_cal/Vitis}

platform write
platform generate -domains 
platform active {NewInstCal_bsp}
bsp reload
bsp setlib -name lwip213 -ver 1.1
bsp write
bsp reload
catch {bsp regenerate}
platform generate
bsp reload
platform active {NewInstCal_bsp}
bsp reload
platform active {NewInstCal_bsp}
platform config -updatehw {/home/ly0kos/work/prj/New_CalBoard/2.FW/Zynq/Debug_FW/Vitis_Classic/system_wrapper.xsa}
platform generate
platform active {NewInstCal_bsp}
platform generate
platform active {NewInstCal_bsp}
platform generate
platform clean
platform active {NewInstCal_bsp}
domain active {zynq_fsbl}
bsp reload
catch {bsp regenerate}
domain active {standalone_domain}
bsp reload
bsp removelib -name lwip213
bsp write
bsp reload
catch {bsp regenerate}
catch {bsp regenerate}
platform generate
