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.

CCS/TM4C123GH6PGE: CODE not RUN in ccs v8

Part Number: TM4C123GH6PGE

Tool/software: Code Composer Studio

Hello everyone,

              Thanks to suggest my previous questions.

Today i am getting strangest problem in CCS V8. In previous we developed the code for sd card and real time clock(Hibernate) interfacing to the TM4C123GH6PGE microcontroller for data logging by time and date. We developed in ccs v6, its worked good and we tested it. But currently we shifted to ccs v8. We took the same workspace which was developed in ccs v6 and compile and execute in ccs v8. It showing the line below immediately.

void
ResetISR(void)
{
//
// Jump to the CCS C initialization routine. This will enable the
// floating-point unit as well, so that does not need to be done here.
//
__asm(" .global _c_int00\n"
" b.w _c_int00");
}

And we are using below interrupts according their priority

IntMasterEnable();

IntPrioritySet(INT_TIMER0A, 0x00); 

IntPrioritySet(INT_PWM0_0_TM4C123, 0x20); 

IntPrioritySet(INT_PWM0_1_TM4C123, 0x40); 

IntPrioritySet(INT_PWM0_2_TM4C123, 0x60); 

IntPrioritySet(INT_ADC0SS0_TM4C123, 0x80); 

IntPrioritySet(INT_TIMER1A, 0xA0); 

IntPrioritySet( INT_HIBERNATE_TM4C123, 0xC0); 

IntPrioritySet(FAULT_SYSTICK, 0xE0); 

previous version: CCS V6 in windows 7 OS

My current Version: CCS V8 in windows 10 OS.

I request you kindly please suggest me why i am getting this problem, and please suggest me how to resolve the issue.

Thanks,

Srinu.

  • Srinu,

    What is exact the error message you are getting? I don't see one in your post.

    That said, keep in mind the versions of the components used in the original project may differ: either the compiler/assembler/linker and the Tivaware. Although not common, these components can certainly influence the behaviour of your legacy code.

    Please double check all versions of these components and try to re-create the same environment in the newer CCS.

    Install and select a specific compiler version:
    dev.ti.com/.../

    Tivaware downloads:
    http://www.ti.com/tool/sw-tm4c

    Hope this helps,
    Rafael
  • Thank you sir for your valuable suggestion,

    I am not getting any error, code is building,compiling without any error. when i debug and load the code into microcontroller TM4C123GH6PGE, After I run the code in debugger window then it will automatically stop running immediately and going to the below function.

    void
    ResetISR(void)
    {
    //
    // Jump to the CCS C initialization routine. This will enable the
    // floating-point unit as well, so that does not need to be done here.
    //
    __asm(" .global _c_int00\n"
    " b.w _c_int00");
    }


    I think Hibernate interrupt is creating issue in my code, please find the below Hibernate code for real time clock.

    main()

    {

    HibernateEnableExpClk(SysCtlClockGet());
    HibernateRTCTrimSet(0x7FFF);
    HibernateRTCEnable();
    HibernateClockConfig(HIBERNATE_OSC_HIGHDRIVE);
    HibernateIntRegister(HibernateHandler);
    HibernateIntEnable(HIBERNATE_INT_RTC_MATCH_0);
    HibernateWakeSet(HIBERNATE_WAKE_RTC);
    HibernateRTCMatchSet(0,HibernateRTCGet()+2);
    HibernateCounterMode(HIBERNATE_COUNTER_24HR);
    HibernateCalendarSet(&tm1);


    calendar_write = umktime(&tm1);
    if (calendar_write == (uint32_t)(-1)){

    while(1);
    }
    else {
    HibernateRTCSet(calendar_write);
    HibernateRTCMatchSet(0,HibernateRTCGet()+5);
    }
    }

    void HibernateHandler(void)
    {

    uint32_t ui32Status = HibernateIntStatus(1);

    HibernateIntClear(ui32Status);

    calendar_read = HibernateRTCGet();

    ulocaltime(calendar_read, &tm2);

    strftime((char *)buf_rz, 60, "%c", &tm2);

    strftime(rtc_lcd_h, 4, "%H", &tm2);
    strftime(rtc_lcd_m, 4, "%M", &tm2);
    strftime(rtc_lcd_s, 4, "%S", &tm2);

    HibernateRTCMatchSet(0,calendar_read+1);

    }


    The above code is working fine in ccs v6 but now i added this code to my application in ccs v8 then it creates problem which was mentioned above.

    I request you to kindly please suggest me how to resolve this problem.

    Thanks,
    Srinu.
  • Srinu,

    Please apologize for the delay; I was out in vacation.

    Your other post below indicates to me that you are past this issue.
    e2e.ti.com/.../760337

    In this case, I will close this thread but please let me know if you still have questions related to the original post.

    Regards,
    Rafael
  • Thank you sir for your suggestions,

    I resolved the issue by downloading the ccs v6 debugging tool in ccs v8. Now its working fine.



    Thanks,
    Regards,
    Srinu.