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.

EMIF example HalcoGen

Other Parts Discussed in Thread: RM57L843, HALCOGEN

Dear TI,

I ran the example of the EMIFsdRAM that's delivered with HalCoGen on my RM57L843. But I wonder what it supposed to do.

What is the purpose of the program other than blinking the LED?

Best regards,

Arne Staessen

  • Arne,

    The example as explained from within HALCoGen --> Help Topics --> Examples --> example_emif_sdram.c actually creates a function called blinky(). This function is defined to have a load address within the main flash array and a run address that is in the external SDRAM. The executable code is first copied from the main flash array to the external SDRAM after first configuring the EMIF. Then when the function blinky() is called, the code actually executes from the external SDRAM.

    I agree that the actual code does not do much useful other than to blink an LED. However, the purpose of this example was to show how to:
    1) configure the EMIF to access the external SDRAM
    2) create user-defined code sections
    3) manage different load/run addresses for user-defined sections
    4) execute code from external SDRAM

    Regards,
    Sunil