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.

errors when adding functions to 5515evm project given by TI



Hi,

I tried to add more functions (such as read&write data to SD card) to the STETHSystem.pjt provided by 5515EVM + Digital Stethoscope Front-End Module because the project can only transfer data to PC and cannot store the data. So I downloaded the C55XCSL-LOWPOWER-2.10.00.00 and found there was an example (CSL_MMCSD_SdCardExample_Out.pjt) which can do this. I copied the contents of main.c file of CSL_MMCSD_SdCardExample_Out.pjt  to the main.c file of STETHSystem.pjt, and also changed the include search path to make it work, I did not change the .cmd file because I copied the .cmd of STETHSystem.pjt to CSL_MMCSD_SdCardExample_Out.pjt and it was OK. Then  I compiled the STETHSystem.pjt, there was an error,

"D:/TMS320C55XXCSL/c55xx_csl/inc/csl_types.h", line 72: error: expected an identifier

the location is:                                                                                                          71  typedef enum {                                                       72  CSL_FAIL = 0,               73  CSL_PASS      = 1     74   } CSL_Test;

so I don't know what's wrong. I have combined the CSL_MMCSD_SdCardExample_Out.pjt and CSL_NAND_PollExample_Out.pjt in this way (they are all from C55XCSL-LOWPOWER-2.10.00.00), and the combined project worked well. 

So I guess if it's the problem of the version of CSL. I have no idea how TI created STETHSystem.pjt, I found several  folders  like /src and /inc  under the StethSystem_v_0_12 folder which may be the CSL of the STETHSystem.pjt project.

anyway, I just want to find an easy way to add more functions to STETHSystem.pjt, because I think it's too complicated to write the "read&write SD card codes" all by myself.

I don't know if this way is right, if not, how could I achieve the "read&write SD card"  function, or if there were something I did wrong. And I am a novice, where should I search for the information?

Thank you in advance,

Gao Jiao

 

  • Hi,

     

    Have you added CSL library file into STETHSystem.pjt project?

    Regards,

    Hyun

  • Hi Hyun,

    Yes, I have added D:\TMS320C55XXCSL\c55xx_csl\src and D:\TMS320C55XXCSL\c55xx_csl\inc to the include search path of STETHSystem.pjt, and copied the contents of the csl_mmcsd_SdCardExample.c (by c55xx_csl) to StethSystem_main.c. When I built the project, there were lots of errors of "already declared" , "undefined" and "redefinition",etc.

    I don't know what's wrong, does the version of c55xx_csl not match the StethSystem? Or this way is impossible?Could you give me some advice,Thanks.

    regards,

    Gao Jiao

  • Hi!

    Could you find a solution for it? I'm trying to do the same and I have a lot of problems like you. Can you help me please?