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.

TMS570 C Header Files

Other Parts Discussed in Thread: HALCOGEN

Hi there,

My name is Brent from MDA. Could you show me the TMS570 C header files for the name definition of the device registers? I just want to know how these names are defined in C and how to refer to these names in my C program. Because I will use TMS570 in the upcoming project and I'm new in uC programming.

Thanks a lot,

Brent Shen

  • Brent,

    I assume that you are looking for the header file for system and peripheral modules registers. We have one header for each module. I am attaching one for the DMA module here. See if it is what you are looking for.

    7065.dma.h

    I would suggest you installing TI Halcogen tool. It will help you to start.

    Thanks and regards,

    Zhaohong

  • Hi Zhaohong,

    Thanks a lot for the info above. After checking the sample header file (7065.dma.h) for DMA module, I found a struct called DMA_ST which defines all the DMA registers using their offset address. If I declare a pointer to DMA_ST, can I assign the starting addressing of the MDA module (0xFFFFF000) to the pointer in order to reference its individual registers? For example,

    DMA_ST * p = 0xFFFFF000;

    p->GCTRL_UN.GCTRL_ST.DMA_EN = 1;

    Thanks again,

    Brent Shen

  • Brent,

    If you use TI compiler, you need to put a cast to the physical address as follows.

    DMA_ST * p = (DAM_ST *)0xFFFFF000;

    The rest of your code should work.

    Thanks and regards,

    Zhaohong