cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
chrisfisch
Observer
Observer
1,352 Views
Registered: ‎08-25-2011

Error during building my first library for SDK

Hi,

 

I'd like to create my first own library. I found the est_rm.pdf and psf_rm.pdf and nearly understood the design flow.

 

But when I copy my files into the Path (see below) an error occurs and I cannot open the BSP settings in SDK

 

"Internal error in the platform settings dialog"

 

The objective is to implement a basic small library for the sd card and a modified Xilfatfs.
So far my C Project works fine and the next step is to transform it into a library.
I made the following files:
MyLib_v2_1_0.mld
OPTION psf_version = 2.1.0 ; 

BEGIN LIBRARY MyLib 

 OPTION DESC = "MyLib for a sd card" ;
 OPTION DRC = mylib_drc;
 OPTION copyfiles = all;
 OPTION REQUIRES_OS = (standalone xilkernel);

END LIBRARY 

I dont have any .tcl file (" TCL is not necessary for a library", see est_rm.pdf) in my data folder.

 

I also modified a pre-existing Makefile (xilmfs_v1_00_a Makefile)

 

to :

 

###########################
#
# Makefile for MyLib
#
# 
#
##########################

COMPILER=
ARCHIVER=
CP=cp
COMPILER_FLAGS=-O2 -c -g
EXTRA_COMPILER_FLAGS=
LIB=libxil.a

RELEASEDIR=../../../lib
INCLUDEDIR=../../../include
INCLUDES=-I./. -I${INCLUDEDIR}

LIBSOURCES=xilfatfs_alloc.c xilfatfs_close.c xilfatfs_directory.c	\
	xilfatfs_fat.c xilfatfs_fat16.c xilfatfs_fat32.c xilfatfs_filespec.c	\
	xilfatfs_filestatus.c xilfatfs_open.c xilfatfs_part.c xilfatfs_read.c xilfatfs_wd.c \
	xilfatfs_stats.c xilfatfs_bufcache.c xilfatfs_chdir.c xilfatfs_mkdir.c \
	xilfatfs_write.c xilfatfs_remove.c sd_main.c 
LIBOBJS=$(LIBSOURCES:%.c=%.o)
INCLUDEFILES=sd_stdio.h

libs: ${RELEASEDIR}/${LIB}(${LIBOBJS})

(%.o):%.c
	$(COMPILER) $(COMPILER_FLAGS) $(EXTRA_COMPILER_FLAGS) $(INCLUDES) $< -o $*.o
	$(ARCHIVER) -r ${RELEASEDIR}/${LIB} $*.o
	$(RM) $*.o

include:
	${CP} $(INCLUDEFILES) $(INCLUDEDIR)

clean:
	rm -rf *.o

 The path of this Makefile and my .c and .h File is MyLib\src\

 

The Path of sw_services is :

 

C:\Xilinx\13.2\ISE_DS\EDK\sw\ThirdParty\sw_services\MyLib

 

 Should I create a .tcl File ?

 

Greets

0 Kudos
Reply
0 Replies