This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Custom C55x CSL lib build

Hi all,

I have fixed a bug in C55x CSL. In order to not include the entire CSL sources inside my main project where I use the CSL, I wanted to re-build the csl lib file from the bug fixed sources.

First of all: when I try to rebuild the lib from the original .src shipped with the official C55x CSL, I run the mk55 with options -ml -mg -o3 -dBIOS_CNT -dALGEBRAIC -dCHIP_5509A, I get errors due to csl_time.h => missing file linkage.h!

I figured out that when I define -d_CSL_RTC_DATA_H_ I can bypass this problem but then there are some compile errors for csl_rtcdat.c.

What I have done further is I have deleted the RTC related .c files from the archive and then with -d_CSL_RTC_DATA_H_ I can successfully re-build the library.

However: the strange thing about is that that the created .lib file is >600 kBytes while the original lib files are around 160 kBytes (my .src file however is about 3000kBytes while the original is >6000kBytes).

What has happened? What am I doing wrong? Some good advise on this topic from TI's side is very welcome since the assembly, compiler user guide and CSL API reference guide do not explain very well how to rebuild one's own custom CSL lib. And yeah, since the last C55x CSL update dates back to 2005 I think there is a need for this for some customers...

Thanks and regards,

Anreas

  • Andreas Weishaupt said:
    I have fixed a bug in C55x CSL. In order to not include the entire CSL sources inside my main project where I use the CSL, I wanted to re-build the csl lib file from the bug fixed sources.

    Is the fix isolated to one C source file?  If so, consider making that one file part of your main project code.  That avoids having to rebuild the library.

    If you don't want to go that route, please let me know.  I'll move this thread to the C5500 forum.  We who watch this forum are not responsible for the C55x CSL library.

    Thanks and regards,

    -George

  • Andreas Weishaupt said:
    the strange thing about is that that the created .lib file is >600 kBytes while the original lib files are around 160 kBytes (my .src file however is about 3000kBytes while the original is >6000kBytes).

    Debug builds are larger than Release builds because of symbols. Perhaps that is the difference?