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