cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
1,185 Views
Registered: ‎02-08-2017

Problem in creating FSBL in command line

Jump to solution

I want to have a script for creating FSBL using command line. So I have created the following script

set FSBL_BuildDir ./SDK/workspace_08
set HDF_Source hw_model_01_wrapper.hdf
set Script_Dir [pwd]

setws -switch $Script_Dir
after 1000

exec mkdir -p $FSBL_BuildDir
file delete -force -- $FSBL_BuildDir
after 1000

exec mkdir -p $FSBL_BuildDir
exec cp $HDF_Source $FSBL_BuildDir/
cd $FSBL_BuildDir

setws -switch .
after 1000

createhw -name hw0 -hwspec $HDF_Source
createapp -name generated_fsbl -app {Zynq MP FSBL} -proc psu_cortexa53_0 -hwproject hw0 -os standalone -lang c -arch 64
projects -build 

cd $Script_Dir

The problem is this script is running only in the First time. If I wnat to rerun it again it gives an error as shown below

XSCT_FSBL_Error.png

 

I can see the difference between the first run and anz subseqent runs is the created .Xil directory in the workspace as shown below

Directory_inSuccess.PNG

Directory_inFailure.PNG

I am using windows and If I need to rerun the script, I have to close the xsct command line window and open it again.

Can anyone suggest please how to overcome this problem

 

 

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Explorer
Explorer
1,547 Views
Registered: ‎02-08-2017

I got the point. I have to close the created hardware. So the following script runs successfully

set FSBL_BuildDir ./SDK/workspace_08
set HDF_Source hw_model_01_wrapper.hdf
set Script_Dir [pwd]

setws -switch $Script_Dir
after 1000

exec mkdir -p $FSBL_BuildDir
file delete -force -- $FSBL_BuildDir
after 1000

exec mkdir -p $FSBL_BuildDir
exec cp $HDF_Source $FSBL_BuildDir/
cd $FSBL_BuildDir

setws -switch .
after 1000

createhw -name hw0 -hwspec $HDF_Source
createapp -name generated_fsbl -app {Zynq MP FSBL} -proc psu_cortexa53_0 -hwproject hw0 -os standalone -lang c -arch 64
projects -build

closehw hw0

cd $Script_Dir

View solution in original post

0 Kudos
1 Reply
Highlighted
Explorer
Explorer
1,548 Views
Registered: ‎02-08-2017

I got the point. I have to close the created hardware. So the following script runs successfully

set FSBL_BuildDir ./SDK/workspace_08
set HDF_Source hw_model_01_wrapper.hdf
set Script_Dir [pwd]

setws -switch $Script_Dir
after 1000

exec mkdir -p $FSBL_BuildDir
file delete -force -- $FSBL_BuildDir
after 1000

exec mkdir -p $FSBL_BuildDir
exec cp $HDF_Source $FSBL_BuildDir/
cd $FSBL_BuildDir

setws -switch .
after 1000

createhw -name hw0 -hwspec $HDF_Source
createapp -name generated_fsbl -app {Zynq MP FSBL} -proc psu_cortexa53_0 -hwproject hw0 -os standalone -lang c -arch 64
projects -build

closehw hw0

cd $Script_Dir

View solution in original post

0 Kudos