# 
# Usage: To re-create this platform project launch xsct with below options.
# xsct C:\Users\testrong\Documents\Work\NewInstrCalBoard\2.FW\Zynq\Net_Cal\NewExtInst_BSP\platform.tcl
# 
# OR launch xsct and run below command.
# source C:\Users\testrong\Documents\Work\NewInstrCalBoard\2.FW\Zynq\Net_Cal\NewExtInst_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 {NewExtInst_BSP}\
-hw {C:\Users\testrong\Documents\Work\NewInstrCalBoard\2.FW\Zynq\Net_Cal\system_wrapper.xsa}\
-proc {ps7_cortexa9_0} -os {standalone} -out {C:/Users/testrong/Documents/Work/NewInstrCalBoard/2.FW/Zynq/Net_Cal}

platform write
platform generate -domains 
platform active {NewExtInst_BSP}
bsp reload
bsp setlib -name lwip213 -ver 1.1
bsp removelib -name lwip213
bsp setlib -name lwip213 -ver 1.1
bsp removelib -name lwip213
bsp setlib -name lwip213 -ver 1.1
bsp removelib -name lwip213
bsp reload
bsp setlib -name lwip213 -ver 1.1
bsp removelib -name lwip213
bsp setlib -name lwip213 -ver 1.1
bsp removelib -name lwip213
bsp setlib -name lwip213 -ver 1.1
bsp removelib -name lwip213
bsp setlib -name lwip213 -ver 1.1
bsp removelib -name lwip213
bsp setlib -name lwip213 -ver 1.1
bsp removelib -name lwip213
bsp setlib -name lwip213 -ver 1.1
bsp config dhcp_does_arp_check "true"
bsp config lwip_dhcp "true"
bsp write
bsp reload
catch {bsp regenerate}
platform generate
platform clean
platform generate
platform clean
platform generate
platform clean
platform generate
