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.

File .lib of CSL example

Hi,

 

I am interested to verify the functionality of CSL_MMCSD_SdCardFSExample_Out but an error is occurring because a .lib file (atafs_bios_drv_lib.lib) was not found. I used Windows Search and the atafs_bios_drv_lib.lib does not exist in my PC. Please, where I could find this file?

 

Other question is, this example works in 5515ezdsp?

 

Regards,

 

Andrea

  • Hi,

    You need to build it.

    Project file is under c55xx_csl\ccs_v3.3_examples\mmc_sd\example4\atafs\build\debug.

    And see the library file is build to ..\..\lib\Debug\atafs_bios_drv_lib.lib.

    Yes it work with a little modification of the code referring the below link.

    http://e2e.ti.com/support/dsp/tms320c5000_power-efficient_dsps/f/109/p/58328/208202.aspx#208202

    Regards,

    Hyun

  • Hi Hyun, thank you very much, I succeeded build the project without error.

    Now, I will try to implement the modifications.

    Regards,

    Andrea

  • Hi Hyun,

    After build the code without errors (according your instructions) now I am verifying the functionality of CSL_MMCSD_SdCardFSExample_Out (CSL is the 2.01.00.00.) but something is not working correctly. The problem is that when the program run, the console presents the follow messages, however the end of test does not happing because the program are in a function MMC_read() of file csl_mmcdc.c more specifically at “while” located at line 3851 where hMmcsd->mmcRegs->MMCST0 are always zero, so, the program stay there infinitely.

     

    MMCSD-ATAFS TESTS!

    MMCSD-ATAFS POLL MODE TEST!

    SD Card detected

    SD card is High Capacity Card

    Memory Access will use Block Addressing

    SD card initialization Successful

     

    My kit is C5515 ezdsp, so I changed the parameter CSL_MMCSD1_INST in the function MMC_open() according your recommendation.

    I download the new CSL 2.10.00.00 (CSL_MMCSD_SdCardFSExtExample_Out) but the identical problem occurred.

    I spend this week debugging the code but I cannot find the reason of MMCST0 is always zero. I debugged the software step by step using “Step Into” of Debug to understanding what is happing but without success.

     

    Please, could you give me any hints/suggestion?

     

    Many thanks,

     

    Andrea

     

  • Hi Andrea,

     

    I double checked the new CSL_MMCSD_SdCardFSExample_Out and it works:

    This is what I did:

    1. Down load new CSL file:TMS320C55XXCSL-LOWPWR-2.10.00.00-Setup.exe from http://software-dl.ti.com/dsps/dsps_public_sw/dsps_swops_houston/C55X/CSL-c55x-lowpower-versions.htm

    2. Modify CSL_install_directory\c55xx_csl\inc\csl_general.h file.

        line 159 : //#define C5515_EVM    // make a comment out, CSL release default is for C5515EVM. 

    3. Build the project

    4. Run the code and you will see the following console outputs.

    MMCSD-ATAFS TESTS!

    MMCSD-ATAFS POLL MODE TEST!

    SD Card detected

    SD card is Standard Capacity Card

    Memory Access will use Byte Addressing

    SD card initialization Successful

    ATA File System Initialization successful

    File Creation on SD card is Successful

    Writing Data to the file on SD card successful

    Reading Data from the file on SD card successful

    MMCSD Read and Write Buffers Match

    MMCSD-ATAFS POLL MODE TEST PASSED!!

     

    MMCSD-ATAFS DMA MODE TEST!

    SD Card detected

    SD card is Standard Capacity Card

    Memory Access will use Byte Addressing

    SD card initialization Successful

    ATA File System Initialization successful

    File Creation on SD card is Successful

    Writing Data to the file on SD card successful

    Reading Data from the file on SD card successful

    MMCSD Read and Write Buffers Match

    MMCSD-ATAFS DMA MODE TEST PASSED!!

    MMCSD-ATAFS TESTS PASSED!!

     

    Regards,

    Hyun

  •  

    Hi.

    Now, we pass CD card tests from CSL on TMC320C5515evm, and make it boot from SD card.

     

    On the board usbstk5515:

    We connected SD card  to  MMC/SD0 according to the table below and removed resistors R74…R77.

     

     

    conn

      sd card

     

     

     

    clk

    45

    5

    cmd

    51

    2

    d0

    49

    7

    d1

    47

    8

    d2

    30

    9

    d3

    28

    1

    vcc

    59

    4

    gnd

    1   

        3,6

     

    On this board usbstk5515 DSP is not booted from SD card .

     And Tests from CSL not past:

     

    1 For    CSL_MMCSD_SdCardExample.‪out :

     

    CSL MMCSD - SD CARD POLL MODE TEST!

    API: MMC_open Successful

    SD card Detected!

    SD card is Standard Capacity Card

    Memory Access will use Byte Addressing

    API: MMC_write Failed

    CSL MMCSD - SD CARD POLL MODE TEST FAILED!!

     

     

    2. For    CSL_MMCSD_SdCardFSExample.‪out

    =====================================================

    MMCSD-ATAFS TESTS!

    MMCSD-ATAFS POLL MODE TEST!

    SD Card detected

    SD card is Standard Capacity Card

    Memory Access will use Byte Addressing

    SD card initialization Successful

    …And then it loops on:

     

    3704 line  on csl_mmcsd.c

               do

                {

    status = hMmcsd->mmcRegs->MMCST1;

    mmcStatus |= status & CSL_MMCSD_FIFO_EMPTY;

     

    if((status & CSL_MMCSD_BUSY_STATE) == 0)

    {

    mmcStatus &= ~CSL_MMCSD_BUSY_STATE;

    }

                } while(((mmcStatus & CSL_MMCSD_FIFO_EMPTY) != CSL_MMCSD_FIFO_EMPTY) ||

                         ((mmcStatus & CSL_MMCSD_BUSY_STATE) == CSL_MMCSD_BUSY_STATE));

            }

    ---------------------------------- then:

    status=49

    mmcStatus=33

     

     

    Please give me recommendation to resolve the boot problem on this card.

     

     

  • Hi! Then do you plan to give me support for this issue?

  • Ok, I have a couple of questions regarding your setup for clarification.

     

    1)       Are you using a regular SD card or a micro SD card? The SD card connections are different from the micro SD (see schematics page 8)

    2)       Are you connecting the pins with long wires? (At higher frequencies the signals can get mixed up)

    3)       Did you solder the pin connections? If so, there could be an issue regarding the resistors placed between VDD_IO and the SD card slot on the eZdsp (see schematics page 8).