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.

how to start with TM4c1294NCPDT ARMpl

Other Parts Discussed in Thread: TM4C1294NCPDT

HI all,

 i am now for TM4C1294NCPDT. 

plz give some idea how to start with this.

in compilation process, i am not getting any error or warning but in console i found this

1 Assembly Error, No Assembly Warnings

Errors in Source - Assembler Aborted 

please suggest some direction by which i can easily understand it.

 

Thank you,

Regards

Prateek

 

  • Hello Prateek,

    We would need more information on your setup to help. The information provided is not enough.

    Are you using TivaWare - which example? What IDE are you using? Are you using existing project or did you create your own project? If you have created your own project, please use an existing one from TivaWare first. Once it works you could modify it to suit your needs.

    Thanks,
    Sai
  • From poster's "Error Listing" it appears he is employing ASM. Such cannot be good - and the "consistent" (steering away from those sharp, harsh rocks) should receive "automatic" caution.

    All else you list is quite good - yet the consistency of vendor response {Avoid ASM, DRM!} (appears) still lacking...

  • HI Sai,

    i am creating my own project. i am using CCS 6.1.
    i am starting with simple project "LED BLINK", i am follow all steps which is described in tivaWare example.

    simply i write this in my project


    #include <stdint.h>
    #include <stdbool.h>
    #include "inc/hw_types.h"
    #include "inc/hw_gpio.h"
    #include "driverlib/pin_map.h"
    #include "driverlib/sysctl.c"
    #include "driverlib/sysctl.h"
    #include "driverlib/gpio.c"
    #include "driverlib/gpio.h"

    int main(void) {

    SysCtlClockSet(SYSCTL_SYSDIV_2_5|SYSCTL_USE_PLL|SYSCTL_OSC_MAIN|SYSCTL_XTAL_16MHZ);

    /*GPIOIntEnable(GPIO_PORTN_BASE, 0x000000FF);
    GPIOIntEnable(GPIO_PORTF_BASE, 0x000000FF);
    GPIOPinTypeGPIOOutput(GPIO_PORTN_BASE, 0x00000001);
    GPIOPinTypeGPIOOutput(GPIO_PORTN_BASE, 0x00000002);
    GPIOPinTypeGPIOOutput(GPIO_PORTF_BASE, 0x00000001); */

    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPION);
    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF);
    SysCtlDelay(3);

    GPIOPinTypeGPIOOutput(GPIO_PORTN_BASE, GPIO_PIN_0);
    GPIOPinTypeGPIOOutput(GPIO_PORTF_BASE, GPIO_PIN_0);
    while(1)
    {
    SysCtlDelay(1333);
    GPIOPinWrite(GPIO_PORTN_BASE, GPIO_PIN_0, GPIO_PIN_0);
    GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_0, GPIO_PIN_0);

    SysCtlDelay(1333);
    GPIOPinWrite(GPIO_PORTN_BASE, GPIO_PIN_0, 0x0);
    GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_0, 0x0);


    but in compilation process i get this error which i can't understand.

    **** Build of configuration Debug for project start ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../main.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_16.6.0.STS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-arm_16.6.0.STS/include" --include_path="C:/ti/TivaWare_C_Series-2.1.3.156" --define=ccs="ccs" --define=PART_TM4C1294NCPDT -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
    "C:\Users\ANNOYING\AppData\Local\Temp\0284410", ERROR! at line 533: [E0001] Address must be of a non-global defined in the current section
    bne.n SysCtlDelay


    1 Assembly Error, No Assembly Warnings
    Errors in Source - Assembler Aborted

    >> Compilation failure
    gmake: *** [main.obj] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****


    i don't know whats wrong with this.

    one more think, i can change some setting in ccs which is described as:-
    1- i have installed ARM compiler given in app center.
    2- Build-> include option-> added- :c\ti\TivaWare_C_series-2.1.3.156
    3- build-> arm compiler-> predefined sysmob-> added PART_TM4C1294NCPDT
    4- ARM Linker-> File search path-> added :c\ti\tivaware_c_series-2.1.3.156\driverlib\ccs\debug\driverlib.lib

    now next what i do ?
    suggest something.

    Regards,
    Prateek
  • Hello Prateek,

    As mentioned before, please use a project from TivaWare examples as a base and then modify that project if required. Those projects already work.

    Is there a reason you want to create a project from scratch?

    Thanks,
    Sai
  • Hi sai, I refer some tivaware example code for understanding. But i need to create my own project. I am working on mso430f5329. Now i am moving my design to tiva c series thats why i am creating own project and refer some example code. Plz help me for my solution.
  • Hello Prateek,

    There are a lot of settings in the project that you have to get right for the code to compile correctly. It takes up a significant amount of time to create the project if you don't follow the right steps.

    We have seen people who are new to TM4C and CCS waste a lot of time trying to set-up own projects, when they can actually use an existing project (from the examples) and start working on the application.

    The quickest way is to use an existing TivaWare project (that is closest to the project you are trying to create) and then either copy paste the code (that is being used) or include files into this project. At this point if you need to add more libraries, it becomes really simple. Once you get familiar with this environment you can create your own project if needed.

    Thanks,
    Sai