UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
7,379 Views
Registered: ‎06-09-2016

Adding Library to BSP

Hello,

 

I'm trying to build a project via the xsct available sdk, and hsi commands automaticly in a tcl script.

I have problem with adding a library to the BSP via the hsi add_library command. I can't get it to save.

puts "Creating hw & bsp projects"
sdk set_user_repo_path $SW_CORE_0
sdk set_user_repo_path $SW_CORE_1
sdk create_hw_project -name $HW_PROJ -hwspec $HW_DEF

sdk create_bsp_project -name $BSP_PROJ -hwproject $HW_PROJ -proc $PROC -os $OS
#hsi create_sw_design $BSP_PROJ -proc $PROC -os $OS

puts "Modifying projects"
hsi set_repo_path $SW_CORE_0
hsi set_repo_path $SW_CORE_1

hsi open_hw_design $SDK_WORKSPACE/$HW_PROJ/system.hdf
hsi open_sw_design $SDK_WORKSPACE/$BSP_PROJ/system.mss

hsi add_library lwip140 2.1

puts [hsi get_sw_designs]
puts [hsi get_libs]

hsi close_sw_design [hsi current_sw_design]
hsi close_hw_design [hsi current_hw_design]

hsi open_hw_design $SDK_WORKSPACE/$HW_PROJ/system.hdf
hsi open_sw_design $SDK_WORKSPACE/$BSP_PROJ/system.mss

puts [hsi get_sw_designs]
puts [hsi get_libs]

hsi close_sw_design [hsi current_sw_design]
hsi close_hw_design [hsi current_hw_design]

It seems like the change is not saved if you look at the output in the terminal to the right? And the checkbox is not ticked.

Screenshot from 2016-06-09 15:18:13.png
0 Kudos
1 Reply
Moderator
Moderator
7,315 Views
Registered: ‎03-19-2014

Re: Adding Library to BSP

I believe you need to add in:

 

generate_bsp [-dir <arg>] [-hw <arg>] [-hw_xml <arg>] [-sw <arg>]

[-sw_mss <arg>] [-proc <arg>] [-os <arg>] [-os_ver <arg>] [-compile]

[-quiet] [-verbose]

 

 

http://www.xilinx.com/support/documentation/sw_manuals/xilinx2016_1/ug1138-generating-basic-software-platforms.pdf

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos