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.

Compiler/TMS320F28335: How to generate executable binary file for intellectual property source code, just like InstaSpin-FOC

Part Number: TMS320F28335

Tool/software: TI C/C++ Compiler

Hi Champs,

My customer has several intellectual property source code files, and they want to generate executable binary files to download into flash for protection, just like Instaspin-FOC. And symbol library will be added into their main project. Would you kindly share how to do this? I remember there is an Appnote or blogs to describe the procedure, but I cannot find it.  

Thanks.

Regards,

Young.

  • Hi Champs,
    I want to add more description about their usage. They have several modularized .c and .h files(no main() function), and they want to build those files to an executable binary files. Then they want to use customized serial bootloader or C2Prog to program the particular address, and related functions are called in their application project.
    Thanks.
    Young
  • Hi Young,

    Customer needs to design a Code Generation Tools XML Processing Scripts that uses a perl tool, and the cl2000 and ar2000 in C2000 CGT to generate a symbols library, but the customer also needs to provide the target .hex or .out to be programmed in flash. The symbols library is just used to implement the interface to call the functions in flash with a header file.

    Please refer to the link below about the CGT Scripts.
    processors.wiki.ti.com/.../Code_Generation_Tools_XML_Processing_Scripts
  • Hi Yanming,
    Many thanks.
    Instead of symbols library, another project including empty main() function and also their algorithm functions was created. If they want to call algorithm, they use absolute address function pointer to call this function as follows.
    #define PrjB_Add (float (*)(float, float))0x003f03f7
    c = (*PrjB_Add)(a,b);

    Thanks.
    Regards,
    Young