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.

Implement "Fractal Image Compression" using TMS320C5515 eZDSP USB STICK

Other Parts Discussed in Thread: TMS320C5515, TLV320AIC3204

Hi everyone, I hope you can help me.

I have a TMS320C5515 eZDSP USB STICK kit from TI. I have to implement project "Fractal Image Compression" using this kit in a subject in my university.

It means that I have an image like Lena which can be loaded from SD Memory Card on the kit or from my computer, and then, through the kit, the image will be processed and the output is saved in the SD MemoryCard. I also downloaded the UNIX C code for this algorithm from the Internet. So I have to convert it to C code for the kit to run.

But, I am a new member and I have no experience about this kit. I downloaded from IT.com some reference documents and readed it but I have some problems:

1, How can I have full documentations especially about C/C++ programming in this kit? I cannot find anything from CD attaching with the kit.

2, Can you share with me some experiences if you implemented some projects like that? Like, how to connect with SD Memory Card by C programming? How to read files from SD Memory Card to my computer to check the results by programming in CCS4?

Deadline of my project is the end of October. So I do not have much time to do it. Please help me.

Thank you very much

  • Hi,

    First of all,  you can download CSL (Chip support library) from our web site http://focus.ti.com/docs/toolsw/folders/print/sprc133.html. The latest CSL version is 2.10.

    CSL includes many examples. MMC_SD examples should help you, It located under c55xx_csl\ccs_v4.0_examples\mmc_sd directory.

    Regards,

    Hyun

  • Hi,

    Thank you for your help.

    Recently, I have read more datasheet and documentation about this kit. .

    I read datasheet of TMS320C5515. This file said that:

    Applications:
    – Wireless Audio Devices (e.g., Headsets,
    Microphones, Speakerphones, etc.)
    – Echo Cancellation Headphones
    – Portable Medical Devices
    – Voice Applications
    – Industrial Controls
    – Fingerprint Biometrics
    – Software Defined Radio

    And In file: usbstk5515_TechRef_RevA.pdf, I see structure of this board: it has a TLV320AIC3204 codec chip, so this board strongly support audio applications.

    So Can I implement my project: Fractal Image Compression in this board? And if you can, please give me some advice about how to implement it? Block scheme,...

    Thank you very much.

    Best Regards,

     

  • hi,

    I understand your scope of project. 

    The first step is to store you input data (Image data) to SD card. Since we don't have jpeg decoding code so that you'll need to convert jpeg to raw data.

    The second step is read by C5515 from SD card.

    The third step is to do your processing.

    The forth step is write back to SD card of your result.

    The base line code is better to use CSL SD example mentioned my previous post.

    Does it make sense?

    Regards,

    Hyun 

  • I see, thank you so much ^^

  • hi,

    I ran the CSL SD example code. It's OK. But I read from datasheet of TMS320C5515 also in example code that: It has 256 byte read/write buffer, max 50-MHz clock for SD cards,
    and signaling for DMA transfers.

    And my file contained raw data of picture usually has a much bigger size than 256 byte, for example > 64kB. So how can I load all pixels of picture from SD card to memory on this kit to process? Please show me example code if you have.

    Thanks in advance.

     

  • The CSL has example codes to stream data from the SD card. In fact, DMA (direct memory access controller) is used to request data from the SD card bit by bit and write to the on-chip memory. The SD peripheral fills the 256 byte buffer from the SD Card. The DMA moves this 256 byte buffer to on-chip memory and the process repeats until you have loaded the whole image on-chip. 

     

    Another good source of imaging code is the C55x Image Library at:

    http://focus.ti.com/docs/toolsw/folders/print/sprc101.html

  • Hi, thanks so much for your help.

    I've read that code in csl_mmcsd_atafs_example.c. But in this example code, file is only 256bytes and is created by the code below:

    for(index = 0; index < CSL_MMCSD_ATA_BUF_SIZE; index++)
        {
            gMmcWriteBuf[index] = 0x4142;
            AtaWrBuf[index] = 0x4344;
            gMmcReadBuf[index]  = 0x0;
        }

    and write:

    ata_error = ATA_write(pAtaFile, gMmcWriteBuf, CSL_MMCSD_ATA_BUF_SIZE);

    Now, I have an image in my PC. So, how can I change this code to tranfer bigger file from my computer to SD card through TMS320C5515?

    If not, Can I write my file from my PC to SD Card by Card Reader and then read by TMS320C5515 to on-chip memory?

    And, last, please help me to show the code to read big file (~64kB) from SD Card to on-chip memory by repeat this code:

    how can I save data in gMmcReadBuf to on-chip memory repeatly? And then how can I make these piece of data to become file (~64kB) in the on-chip memory?

        ata_error = ATA_readLittleEndian(pAtaFile,gMmcReadBuf, CSL_MMCSD_ATA_BUF_SIZE);
        if(ata_error != ATA_ERROR_NONE)
        {
            printf("ATA_readLittleEndian Failed\n");
            return(ata_error);
        }

    Please help me, I have not much time to do this project. :((

    Thank you,

    Best Regards,