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.

tiva c series mcu tm4c129xnczad -iot application

Expert 1255 points
Other Parts Discussed in Thread: TM4C1294NCPDT, TM4C129XNCZAD, EK-TM4C1294XL

Hi

http://www.ti.com/lit/an/spma072/spma072.pdf

I am working on s2e area. I am using dk-tm4c129x and ccsv6 as the tool chain.

The documentations mentions how to convert the application for the dk-tm4c129x board. It says :

Replace the labels PART_TM4C1294NCPDT and TARGET_IS_TM4C129_RA1 with
PART_TM4C129XNCZAD and TARGET_IS_TM4C129_RA0 in the project settings.

Where do i find the project setting so that i can make the above mentioned change?

I have made the changes...but im getting errors.

Thanks 

  • Hello,

    I have forwared your question to the Author of the application note. He will get back to you soon.

    Regards,
    QJ
  • Thank You  

  • The changes (mentioned in the first post) need to be made to "Project Properties" that can be accessed by selecting the project in "Project Explorer" window and using the menu option Project->Properties.

    In the resulting window, navigate to Build->ARM Compiler->Advanced Options->Predefined Symbols and modify the existing symbols as mentioned in the Readme to work with DK-TM4C129X board.

    The S2E application will need some modification to build with TivaWare version 2.1.2 and above as the FreeRTOS version has been updated. The necessary changes are documented in the following forum post: e2e.ti.com/.../1923558

    Thanks,
    Sai
  • Hi Sai,

    I have made the suggested changes in the Files as suggested in the fourm. I was able to build successfully for EK-TM4C1294XL.

    BUT....Since i am working with DK-TM4C129X

    I made the following changes:

    (a) Replace the labels PART_TM4C1294NCPDT and TARGET_IS_TM4C129_RA1 with
    PART_TM4C129XNCZAD and TARGET_IS_TM4C129_RA0 in the project settings.
    (b) Uncomment the line that defines the label DK_TM4C129X in the enet_s2e.c file.

    (c) In properties -->ccs general-->Changed the variant and connection to tm4c129xnczad and stellaris icdi---since it dint get updated automatically

    (d)still showed error during build regarding pinoutset() function. The pinout.c file in the driver was still linked to the ek-tm4c129xl. So in pinout.c properties --> resources I changed the location as SW_ROOT\examples\boards\dk-tm4c129x\drivers\pinout.c .

    (e)During build am facing the following errors

    (f) Made the following changes in enet_s2e.c

    #ifndef DK_TM4C129X
        PinoutSet();
    #else
        //PinoutSet(true, false);
    #endif

    (g)  Made the following changes in tm4c129xnczad.cmd

    MEMORY
    {
    //FLASH (RX) : origin = 0x00000000, length = 0x00100000
    // SRAM (RWX) : origin = 0x20000000, length = 0x00040000
    }

    and

    //__STACK_TOP = __stack + 512;

    (h) Deleted the file startup_ccs.c as there were issues regarding multiple declarations in startup_ccs.c and tm4c129xnczad_startup_ccs.c

    (i) changed __STACK_TOP = __stack + 4096; to __STACK_TOP = __stack + 512;  I am not sure if that was needed.

    Now I don't have errors, but i am doubful if this the right thing to do in terms of the utility of the application.


    Could you help me regarding this

    Thanks a lot 

    ayswaria

  • Hello Ayswaria,

    Did you copy the enet_s2e folder to the "dk-tm4c129x" folder? Most likely readon for the error in bullet (d) of your reply could be because the enet_se2 might still be in the folder "ek-tm4c1294xl".

    I would recommend, that you
    1) Do a fresh download of the s2e applciation.
    2) Copy the enet_se2 to the "dk-tm4c129x" folder and make the changes as per the readme.
    3) Then follow the steps in this forum post: e2e.ti.com/.../1923558

    If this still does not work, let us know and I will try to build it for DK-TM4C129X board.

    Thanks,
    Sai
  • Hi Sai

    I have made the changes as you have suggested but I'm still facing errors.

    The function PinoutSet(); shows error as its still linked to ek-tm4c129xl. Also  the targetcongif file still show tm4c129ncpdt as the part .

    Thanks

  • Hello Ayswaria,

    I just followed the steps in my earlier post and now the application builds for DK-TM4C129X board.

    When using the DK-TM4C129X board, the line PinoutSet(true, false); should be included. Looks like you did not uncomment the line that has the code

    #define DK-TM4C129X

    Make sure you also copy "enet_s2e" to the folder "./examples/boards/dk-tm4c129x" and then import to CCS.

    Thanks,

    Sai

  • Hi sai

    I had uncommented that line as mentioned in the document.

    #define DK-TM4C129X

    But I had made an edit on this line as:

    #define DK_TM4C129X

    Because in the latter part of the enet_s2e program this was the varible used.

    It builds successfully if that edit is not made.

    But the pinoutset and targetconfig file is not linked to dk-tm4c129x.

    Thanks,

    Ayswaria