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.

Code Composer v4, using TMS F28335 and TI source code

Other Parts Discussed in Thread: CSD

I am working on a project that involves using an SD card, but am having trouble getting code to compile correctly. I am using code from the spraa07 and related documentation, which I found here. I've finally gotten it down to just a few errors, namely this line:

Uint16 READ_OCR, SECTOR_ZERO, SEND_CID, SEND_CSD;

"../SD_Test.c", line 5: error: expected an identifier

"../SD_Test.c", line 5: error: expected an identifier

"../SD_Test.c", line 5: error: expected an identifier

"../SD_Test.c", line 5: error: expected an identifier

 

The weird thing is that the line right above it is:

Uint16 read_buffer[1024], write_buffer[1024];

which does not give an error. Any suggestions?

  • Christopher Stephens said:

    I am working on a project that involves using an SD card, but am having trouble getting code to compile correctly. I am using code from the spraa07 and related documentation, which I found here. I've finally gotten it down to just a few errors, namely this line:

    Uint16 READ_OCR, SECTOR_ZERO, SEND_CID, SEND_CSD;

     

    "../SD_Test.c", line 5: error: expected an identifier

    "../SD_Test.c", line 5: error: expected an identifier

    "../SD_Test.c", line 5: error: expected an identifier

    "../SD_Test.c", line 5: error: expected an identifier

     

    The weird thing is that the line right above it is:

    Uint16 read_buffer[1024], write_buffer[1024];

    which does not give an error. Any suggestions?

    My guess is READ_OCR etc are defined somewhere else.. perhaps with a #define.

    Regards

    Lori

     

  • I checked my header file and sure enough, they were defined with #define already. Thanks