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.

Problems with uip code in TI cortex M4 when compile with CCS

Other Parts Discussed in Thread: LM3S6432, CCSTUDIO

I am developing a project base in Third party uip code, Initialy I compile and debug the code in IAR, the project RUN ok, I chage to CCS v5 becouse the project is bigger than 32k, however I have problems with CCS, the project compile ok without error, however, when I debug the project, I have some problems that I dont understant, after some time the project dont run ok. I think it can be a optimization problem. Do you have any recomendation to configure the project options or any other recomendation.

  • Hi Andres,

    what errors do you see?  Would you please be able to expand on the problem?  Error messages/logs, screenshots, further description ...

    Best Regards,
    Lisa

  • When I compile there are not errors. The compiler procces is Ok and I debug the aplication in a LM3s6432 microcontroller. The projects use the uip code and log some data in a flash memory with SPI comunications, and download this data when I call some address in the webserver application in the microcontroller. The application run OK but, after some time the webserver does not answer again.

    Initially I was some problems with the atof function (stdlib.h), the problem was that when I use that function then other variables changes values. I change the stack size but at the end I dont use atof function.

    Actually I dont now what is the problem, I only now that in IAR the same project run ok. I have a similar problem in IAR and I change some optimizations options. That is why I think the problem is with optimization.

    The same application in IAR run OK in this moment.

  • HI Andres,

    how did you do the migration from IAR?  Have you tried different optimization settings is CCS if you suspect this to be a possible cause? 

    Unfortunately there is still not much to go on ...

    Best Regards,
    Lisa

  • Dear Lisa,

    To migration from IAR I create a new project in CCS and copy the .c and .h files and configure the libraries. I have tried with different optimizations setting but I am no sure If it was OK. Do you have any document in which do you explain the optimizations options?

    I have a problem with the timer overflow interrupt when I'm in debbug step by step, the debbug returns back to the interruption and never leaves it, even when I'm clearing the flag. However, when the microcontroller is running the counters that I have in the timer work OK. Could this be a problem?

  • Hi Andres,

    without much information it is next to impossible for me to help debug.   If you have precompiled IAR libraries these may contain compiler directives which CCS has issues with as there are some differences of course.

    I would suggest having a look at the documentation found through these links

    Wiki on Stellaris in CCS

    http://processors.wiki.ti.com/index.php/Stellaris_support_in_CCS

    Main CCSv5 wiki and topics

    http://processors.wiki.ti.com/index.php/Category:Code_Composer_Studio_v5

    CCS product folder with links to the specific users guides that may be of interest to you ... these guides usually always contain a migration section.

    http://www.ti.com/tool/ccstudio

    Please keep us informed.

    Best Regards,
    Lisa