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.

CC5 project Eclipse

Other Parts Discussed in Thread: LM3S811, LM3S2965, CCSTUDIO

Hi,

I am running CC5 (5.1.0.08020) for a Stellaris ARM processor. When trying to create a new project I do not have the choice of File/New/CCS project?

I downloaded Indigo for Eclipse IDE for C/C++ Developers 3.7.0 for  windows XP 32 bit

 

Thanks

Paul


  • Hi Paul,

    did you install and download CCS or Eclipse?    If you create a fresh workspace, do you get the CCS welcome tab open?  Can you send a screenshot?

    Best Regards,
    Lisa

  • Lisa.

    I am having some success:

    I installed the latest of both Eclipse and CC5.  Next I checked for updates. This installed new software for Eclipse and CCS. Now if I create a new workspace and right click on the Project Explorer window I get the CCS Project choice

    Still having some issues but a lot further now

    Paul

     

  • Hi Paul,

    to use CCS, you do not need to install both separately.  I would recommend downloading and starting with the latest version of CCS if your installations are getting somewhat confused with each other, available here:

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

     

    Otherwise, keep me posted and we will try to get you up and running with CCS.

     

    Best Regards,
    Lisa

  • Lisa,

    This is the link I used (http://processors.wiki.ti.com/index.php/Download_CCS). I downloaded windows small. This required Eclipse to be loaded.

    I upgraded to CC5 with the expectation that my problem with CC4 would be fixed. My problem is still there, SysTick is not running during debug, it runs fine without the emulator.

    My program has a bootloader located at 0x0000 and the main application starts at 0x2000. I think the debugger is getting confused. This runs okay on my notebook 

     

    Paul

     

     

  • Hi Paul,

    ok you did just install CCS.  CCS is eclipse based, so yes you will automatically get eclipse.

    So am I correct in thinking your problem then is that on one of two computers, SysTick does not work with emulator plugged in on v4 or v5?

    Are there any differences in settings between the two projects?

    Have you tried importing the project into a fresh workspace?  Do you see this issue with all projects?

    Best Regards,
    Lisa

  • I have not tried importing projects but have created new projects from scratch.

     

    Paul

     

  • Hi Paul,

    could you please give a description of your issue?

    Is the same code working on the other PC?  What are the differences in environment? 

    Have you tried reinstalling the drivers for the emulator/board?

    What exact SysTick behaviour do you see? 

    Best Regards,
    Lisa

  • Three issues at least: 

    1) Unable to set breakpoints

    2) Systick is not running

    3) Restart does not run to main()

    My desktop computer   has problems with setting breakpoints using CC4 and now CC5. I was  hoping with CC5 I would get a clean install. My notebook running Windows 7 has no issues, my desktop is running XP. 

    Where are the drivers for my emulator board- LM3S811? When I try to set a breakpoint I receive the error "There is no AET resource to support this job"

     

    Paul

     

     

  • HI Paul,

    as a next step, what happens if you rename ctools.dll on the trouble computer?  Does this help?

    Best Regards,
    Lisa

  • I have both CC4 and CC5 loaded on my desktop. After renaming ctools.dll I receive the error CORTEX_M3_0: Error Debug Port error occurred

  • In My Breakpoint window is the following:

    Stellaris In-Circuit Debug Interface/CORTEX_M3_0

    Hardware: false

    Enabled: false

    Identity: main.c, line 1723 (Delay + 0x8) 

    Name: Breakpoint

    Condition: 

    Count: 0 (0)

    Action: Remain Halted

  • Hi Paul,

    ok then it wasn't the ctools issue some customers had.  We will look into this and I will speak with some colleagues here and get back to you as soon as possible with any further debug ideas.

    Best Regards,
    Lisa

  • Hi Paul,

    It sounds like you are running into a couple of different issues, so lets try a step by step process of elimination and see if the problem can be isolated further.

    First, could you clarify if my understanding of the following is correct:
    - the projects you are testing are created by you and not examples imported into CCS
    - these projects work fine on laptop running Win7, but not on desktop running WinXP. By "work fine" do you mean, they run fine, can set and run to breakpoints, SysTick running fine etc. In the working machine, do they work fine in both CCSv4 and CCSv5?
    - In the non-working machine, does it not work on both CCSv4 or CCSv5? Which parts do and do not work?


    A few additional questions and suggestions:
    - Are you using a custom board or the LM3S811 evaluation kit?
    - Have you tried importing and running the Stellarisware examples on your problem desktop? This could help isolate the issue one step further.
    - Does the "There is no AET resource to support this job" error appear when setting the 1st breakpoint or only after setting a certain number of breakpoints?
    - could you attach a screenshot of your full CCS window with your breakpoint view open?

    Hopefully these details will give us more insight into the issue.

     

  • Hi,

    I am using a custom PCB with LM3S811 as the debugger. I was able to narrow this down further. On my desktop PC if I change the link map to map the code start address to 0x00000 it works. On my notebook with CC4 version 4.2.1.00004 I have the the software starting at 0x2000. There is a bootloader located at address 0x0000.  My conclusion is newer versions of CCS can not handle starting at non zero addresses?

    I need to find an older version of CC4 to test this

     

    Paul

     

     

     

     

  • Hi 

    I loaded CC4 version 4.2.1.00004 and now I am getting the error

    CORTEX_M3_0: Loader: One or more sections of your program falls into a memory region that is not writable.  These regions will not actually be written to the target.  Check your linker configuration and/or memory map.

    CORTEX_M3_0: File Loader: Data verification failed at address 0x00002000 Please verify target memory and memory map.

     

    My LM3s2793.cmd file looks good. My gel files also look good. Any ideas where the problem is?

    Paul

     

  • Hi Paul,

    first, may I confirm which CCS versions to you have installed and did you get them as CCS (ie downloaded from TI)?

    Have you tried the latest production version (4.2.4) and do you have any issues with that version?
    Have you run any updates?

    What settings are you using in the project?  Code generation tool version, device endianness, device setting, etc ...

    Best Regards,
    Lisa

  • Lisa,

     

    I have tried setup_CCS_4.2.4.00033.exe, setup_CCS_4.2.1.00004.exe, ccs_setup_5.1.0.08020.exe. All of them were downloaded from Ti

    From default project settings I create a new TargetConfiguration.ccxml. I change the stack size and device to LM3S2793. Everything else is default. I copied my project directories from my working notebook computer and it still failed. 

    I would like to address this error:

    CORTEX_M3_0: File Loader: Data verification failed at address 0x00002000 Please verify target memory and memory map.

     

    Regards,

    Paul

     

  • Paul,

    What version of silicon are you using (rev C1, C3 etc)? I believe there were some dll updates made for certain silicon revisions, so CCS 4.2.1 being an older version may not have the necessary updates. If you have an installation of CCS 4.2.4 in a different directory, could you try connecting to your board and loading the code with that version? The latest versions should work ok - 4.2.4 and 5.1. Another option is to try loading the code with LM Flash Programmer to help narrow down the issue.

    Please let us know the results of loading the code with CCS 4.2.4 and LM Flash programmer.

    Another quick test might be to try loading one of the Stellarisware examples. Although there aren't examples for LM3S2793, you could import the ones for LM3S2965 and change the device in the project properties to LM3S2793. This could help isolate if the problem is in the CCS tools or the code.

  • Hi,

    I am using C5 silicon. I installed CCS 4.2.4 in a different directory and imported a existing project instead of creating a new one. I also loaded Microcontroller edition instead of custom install.  I can now program the ARM and reset the processor.  I am back to my original  problem, though. Systick is not running.

    I have a bootloader located @ 0x000-0x1FFF. My main applications starts @ 0x2000. The debugger after restart starts at main and appears to run but goes into an infinite loop because SysTick will not run. If history repeats itself once I close CC4 and restart it the debugger will not restart to main any longer

    Regards

    Paul

     


  • Paul,

    For this specific issue with SysTick I would suggest posting to the Stellaris forum as the experts there should be able to help better with that. I was thinking of moving this thread there but I didn't want them getting confused with the CCS related history here.

  • My software works fine (systick operates w/o CC4 running), I just am unable to debug it. Debugging the same software on my notebook with CC4 works fine. I think CC4 on my desktop is missing a configuration.  It worked for over a year, then suddenly stopped. I also ran these steps http://processors.wiki.ti.com/index.php/Troubleshooting_CCS. If I import a project from my notebook, does file location matter?

    Regards

    Paul

     

     

  • Hi Paul,

    it is yet hard to say whether the question really belongs here or the Stellaris forum.  But to continue with your question, I would suggest exporting the project from your laptop to an archive file.  You can do this through File->Export.  Select archive (expand General).  You will of course be presented with various options.

    You can then import it on the trouble PC to try.  I assume you have compared settings?    I would do the import in a fresh workspace. 

    Please keep us posted.

    Best Regards,
    Lisa

  • Lisa,

    I created an archive file, both with a directory structure and without. The "with directory structure" seemed to work the best? I created a new workspace and tried to debug the project. The software hangs waiting for Systick. Next I changed the linker configuration file to locate the software to address 0x0000. Now the software runs well, I am able to debug. Conclusion my desktop cannot run with a bootloader located @ 0x000 and application @ 0x2000.

    My notebook runs with the bootloader, I usually need to hardware reset CC4 and disconnect/connect the debugger everytime I load new code to get it to work

    My desktop is XP, notebook is windows 7

    Any ideas?

     

    Regards

    Paul

     

     

  • Paul 50485 said:

    Conclusion my desktop cannot run with a bootloader located @ 0x000 and application @ 0x2000.

    My notebook runs with the bootloader, I usually need to hardware reset CC4 and disconnect/connect the debugger everytime I load new code to get it to work

    Is it the exact same version of CCS you are using on the desktop and notebook? And I am assuming they are both running on the same target board?

  • No my notebook is running 4.2.1.00004. The desktop is running the latest version. I tried installing 4.2.1.00004 on my desktop but I had problems getting it to work. Same target boards and same LM3S811 Eval board. I also loaded CC5 on my desktop but had the same problem with SysTick

     

    Regards

    Paul

  • I just noticed on 4.2.1.00004 there are 3 choices for Reset - Core reset, System Reset, Hardware Reset. I use the Hardware Reset often. This reset does not appear to be available on new versions of CCS

  • Hi Paul,

    have you tried using "Run Free" in the newer version of CCS?  You should then be able to do a hardware reset.  Have you checked that in both cases the settings and CGT (code generation tool) version are the same?  Please keep us posted.  

    Best Regards,
    Lisa

  • Paul 50485 said:

    I just noticed on 4.2.1.00004 there are 3 choices for Reset - Core reset, System Reset, Hardware Reset. I use the Hardware Reset often. This reset does not appear to be available on new versions of CCS

    The hardware reset option was removed in CCS 4.2.2 and higher. Since a hardware reset resets the JTAG port it could confuse a JTAG debugger, hence it was determined that from CCS’s perspective this function is not needed, and was removed.

  • Lisa,

     

    Where is Run Free in CC4?

    Is there a way to add the hardware reset option, macro? This apparently enables me to debug with a bootloader ?

    Paul

     

  • Hi Paul,

    I thought run free might be an option to do the hardware reset (not sure about bootloader).  Aarti is more experienced than I am actually.

    If you want to try run free, when you are in debug mode ... you should notice the run button actually has a drop down associated with it.  This is where run free is.

    Best Regards,

    Lisa

  • Paul 50485 said:
    No my notebook is running 4.2.1.00004. The desktop is running the latest version.

    Did you install a CCS patch update for Tempest Rev C5 on your CCS 4.2.1 machine? A patch update was released for rev C5 that was to be installed on top of any version prior to 4.2.4. This wiki page talks about the patch: http://e2e.ti.com/support/microcontrollers/stellaris_arm_cortex-m3_microcontroller/f/471/p/109384/386716.aspx#386716.

    I suspect your issues may be related to the way your software is written in relation to debugger updates we may have made in later versions of CCS. Unfortunately I am not an expert in this and I think the Stellaris experts would be able to shed more light on this issue. I understand that the code runs by itself and it is the debug capability that is affected, but I think the Stellaris folks may be in a better position to identify what could be causing a problem with debugging. I would recommend posting a new question on the Stellaris forums and explain the current behavior you are seeing with respect to location of bootloader and application software in your code.

  • I also do not have the option of a new CCS project in my Eclipse install.

    I have Eclipse already installed on my Windows 7 Pro, this is the exact version:

    Eclipse IDE for C/C++ Developers

    Version: Juno Release
    Build id: 20120614-1722

    I have also installed ccs_setup_5.2.0.00069.exe , I chose the option to install to an existing Eclipse version. I received some errors during installation (I also had to shut my Avast Antivirus off because it kept blocking the installation). At the end of the installation I received a message along the lines of:

    not all components were correctly installed, please see C:\Program Files (x86)\InstallJammer Registry\ccsv5\60556FE5-C1A1-4061-8DF8-FFB8393BAE2D\ccs_setup_5.2.0.00069_install.log for details

    I also tried to "Update Software" in Eclipse, it found the updates for CCS5. Again my Avast Antivirus began sandboxing so I had to turn it off again. At the end of the installation I again received the same message that not everything was correctly installed, please see ccs_update_5.2.0.00071_install.log for details.

    I have attached the two log files if anyone can make any sense of them...

    https://docs.google.com/open?id=0B7D5AFynoW43UXo3anNzdU52U28
    https://docs.google.com/open?id=0B7D5AFynoW43M1p5OVNTTXVNd3c

  • I've run the installation and then the update through again, still getting some errors, but I can now find a "Code Composer Studio" menu item under "New -> Project -> Other" in Eclipse. Under "Code Composer Studio", there is one menu item: "Target configuration file". If I choose this for a new project I get the following error message: 

    The selected wizard could not be started.
    Plug-in com.ti.ccstudio.system.setup.ui was unable to load class com.ti.ccstudio.system.setup.ui.wizards.SystemSetupNewWizard.
    An error occurred while automatically activating bundle com.ti.ccstudio.system.setup.ui (424).

  • In the end I just deleted both Eclipse and Code Composer and installed it as standalone, and now it's working alright. (I still have to turn the antivirus off though.)

  • Hi John,

    glad to hear you are up and running.  All the best with development.

    Best Regards,

    Lisa