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.

Example code for EMIF on C6713?

Other Parts Discussed in Thread: TMS320C6713B

Hello,

We have a custom board on which the C6713 connects to an FPGA via the EMIF interface, and I want to implement the write/read of EMIF on the C6713.

I found an example code for C6445 as "Emifa_ReadWrite_example.c", and I roughly went through it. But when I tried to build the code, it gave some "undefined" error, like "CSL_EmifaHandle is undefined".

I think those types must be defined in the library file but I can't find them in the "include" files: <csl_emifa.h>, <cslr_dev.h>, and <stdio.h>. I am not sure if I need any other configuration before I can build this file?

And another question is can this code be modified to fit C6713? Or is there any example code for 6713 to implement the EMIF write/read?

Any hint would be appreciated!

Thanks!

  • Mingkui, Wei,

    Welcome to the TI E2E forum. I hope you will find many good answers here and in the TI.com documents and in the TI Wiki Pages. Be sure to search those for helpful information and to browse for the questions others may have asked on similar topics. Good keywords to search for are C6000, EMIF, and Interface.

    Go to the Product Folder at TMS320C6713B and click on Software & Tools to find the right software libraries to use. Unfortunately, there are a few in the list for newer devices like C64x+; be careful with those as they may have mostly information on the newest parts which may lead you in the wrong direction, just as the C6445 has done. Actually, I do not find a TI DSP with that part number, C6445. Download the CSL from this list as a good starting point for useful code and hopefully an example that helps you.

    Also on the Product Folder, click on Technical Documents to get the EMIF User's Guide for your device. It will explain how the EMIF works and what the registers are that need to be configured. Once you have it configured correctly, all you code has to do is set a pointer to the address you want to read or write and access it as you would any memory location.

    At the bottom of the list of Application Notes is a link to View Application Notes for TMS320C67x DSP. Click that link to see a list of all the Application Notes that could be useful. It is a big list, so you might start my adding the keyword EMIF in the title box and refining your search. Read through some of these to get an idea of what other people have done to interface to their devices. You may have to work with the FPGA designer to figure out which interface method will work on your board. There are several different Application Notes, so you should get some good examples.

    Regards,
    RandyP

     

    If you need more help, please reply back. If this answers the question, please click  Verify Answer  , below.

  • Hi, RandyP,


    Thank you so much! You advice is really helpful. And forgive my typo, it should be C6455, not C6445.

    Regards,

    Mingkui