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 MCU Development Kit example application

Other Parts Discussed in Thread: HALCOGEN

We have purchased a number of the TMS570 MCU Development Kits which come loaded with an application that demonstrates the functionality of the board. However the source code for this application does not appear to be supplied on the CD that comes with the kit.

Is there a link for the source code?

  • The source code as well as the location of other example projects for the TMS570 Microcontoller Development Kit can be found here: http://www.keil.com/support/man/docs/mcbtms570/mcbtms570_examples.htm

    -Michael Sherman

  • Thanks Michael.

    Whilst the Blinky application may be described at this page, I can see no link to download it (the downloading page refers to downloading to the target). Also, I understand that the source code is written for uVision not for CCS.

  • The source code for the blinky project is only available when you download uVision, however a similar project exists for CCS that is used in the TMS570 Safety MCU Demos application.  Assuming you did a full install of the DVD, these can be accessed by going to Start->Programs->Texas Instruments->TMS570 Safety MCU Demos.  Run the program TMS570 Safety MCU Demos and then click on the Code Composer Studio button on the bottom right hand corner.  This should automatically open and import the project into a workspace.   You can then view, edit and even debug the project.

     

    -Michael Sherman

  • hello,recently I use SCI2 DMA (TMS570LS3137HDK),but i cannot do it well .can you give me an example about it.here is my code 

    uint8 Tx_Data[10] = {0,1,2,3,4,5,6,7,5,9};
    g_dmaCTRL g_dmaCTRLPKT;
    void main(void)
    {
    /* USER CODE BEGIN (3) */
    sciInit();//sci初始化中SETINT要使能SCI发送DMA
    _enable_IRQ();//sciNotification中
    // sciEnableNotification(scilinREG,SCI_RX_INT);
    while (((scilinREG->FLR & SCI_TX_INT) == 0U) || ((scilinREG->FLR & 0x4) == 0x4))//当SCITD满,不空闲时等待
    {
    }
    dmaReqAssign(0,29 );//请求线29映射到通道0
    dmaConfigCtrlPacket();//用户的配置
    dmaSetCtrlPacket(DMA_CH0,g_dmaCTRLPKT);//直接填充到DMA中
    dmaSetChEnable(DMA_CH0,DMA_SW);//软件触发
    dmaEnable();
    scilinREG->SETINT |= 0x0010000;
    while(1);
    /* USER CODE END */
    }

    void dmaConfigCtrlPacket(void)
    {
    g_dmaCTRLPKT.SADD = (uint32)Tx_Data; /* source address */
    g_dmaCTRLPKT.DADD = (uint32)&(scilinREG->TD)+3 ; /* destination address *///加3是因为大端格式,小端格式不加
    g_dmaCTRLPKT.CHCTRL = 0; /* channel control *///不管是零还是1发出的都一样。
    g_dmaCTRLPKT.FRCNT = 64; /* frame count */
    g_dmaCTRLPKT.ELCNT = 1; /* element count */
    g_dmaCTRLPKT.ELDOFFSET = 0; /* element destination offset *///改为0发送不出数据
    g_dmaCTRLPKT.ELSOFFSET = 0; /* element source offset */
    g_dmaCTRLPKT.FRDOFFSET = 0; /* frame destination offset */
    g_dmaCTRLPKT.FRSOFFSET = 0; /* frame source offset */
    g_dmaCTRLPKT.PORTASGN = 4; /* port b */
    g_dmaCTRLPKT.RDSIZE = ACCESS_8_BIT; /* read size */
    g_dmaCTRLPKT.WRSIZE = ACCESS_8_BIT; /* write size */
    g_dmaCTRLPKT.TTYPE = FRAME_TRANSFER; /* transfer type */
    g_dmaCTRLPKT.ADDMODERD = ADDR_INC1 ; /* address mode read *///之前为ADDR_INC1
    g_dmaCTRLPKT.ADDMODEWR = ADDR_FIXED; /* address mode write *///之前为OFFSET
    g_dmaCTRLPKT.AUTOINIT = AUTOINIT_OFF; /* autoinit *///之前为ON 打开后有很多数据
    }

    THANKS.

    my e_mail is 965729131@qq.com

  • Hello User,

    There is an example included in Halcogen by clicking help->examples then selecting the LS3137 directory. You can also reference this application note: www.ti.com/.../spna213.