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.

F28M36 SD Card Example

Other Parts Discussed in Thread: CONTROLSUITE

Trying to get the SD Card example working on the F28M36 (Control Suite) and I am unsuccessful.  I have used 2GB/4GB/8GB/16GB cards and get FR_NOT_READY results on each.  I am using the Control Card.  Things I have tried:

1) Changing CRC code in send_cmd function, IE n=0 to n=0xFF as suggested in the forum.

2) Changed the pin mapping in mmc-concerto.c via:

SDC_GPIO_PORT_BASE, From GPIO_PORTD_BASE to GPIO_PORTR_BASE

SDC_GPIO_SYSCTL_PERIPH From SYSCTL_PERIPH_GPIOD to SYSCTL_PERIPH_GPIOR

This results in an FaultISR

At wits end here.  Why doesn't this work out of the box?  And why is there no documentation in the TRM on PORTR?

  • Mark,

    I'm looking in to your issue. Which version folder are you getting the example from in controlSuite? Is there a file called set_pinout_f28m36x.c linked to your project? If not, try using the example from v202 folder. You may have to update controlSuite if you do not have this folder.

    Regards,

    Benjamin Moore

  • I am using the example that is provided using the "Resource Explorer" SD Card Read M3.  Which automatically pulls in the project sd_card_m3 <V110>.  Thinking this was a problem, I tried to import the project in V202 but received this error:

    See details below.
      Warning: Project 'driverlib', referenced from 'sd_card_m3', could not be found. Please import this project manually.

    Which I attempted compile but once I got the configuration correct to build, I get a error in the linking



    warning: creating output section ".TI.crctab" without a SECTIONS specification

    "C:/ti/controlSUITE/device_support/f28m36x/v202/F28M36x_examples_Master/sd_card/m3/ccs/../../../../MWare/cmd/F28M36x_generic_M3_RAM.cmd", line 67: warning:

    CRC table operator (AppCrc) ignored for ".pinit": CRC table operator cannot

    >> Compilation failure

    be associated with empty output section

    undefined first referenced

    symbol in file

    --------- ----------------

    UARTFlushTx ./sd_card.obj

    UARTStdioIntHandler ./sd_card.obj

  • Does the project have uartstdio.c linked to it? That should have the definitions for UARTFlushTx() and UARTStdioIntHandler(). 

    You should be able to find it in device_support\f28m36x\v202\MWare\utils\uartstdio.c if it does not. 

    Also, when you add files to your project, its best if you link to the file rather than copy it directly into the project. 

    Regards,

  • Benjamin,

    I was able to successfully compile and read the SD Card.  The solution was to:


    Delete sd_card_m3 project

    Import Existing CCS Project, [C:\ti\controlSUITE\device_support\f28m36x\v202\MWare\driverlib] w/ Linking

    Import Existing CCS Project, [C:\ti\controlSUITE\device_support\f28m36x\v202\F28M36x_examples_Master\sd_card] w/ Linking

    Change to Correct Device in project configuration

    Compile


    Now I can read the SD Card.

    -Mark

  • Also it appears that the RAM configuration was my original problem.  It will not load with the RAM cmd file.