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.

Grace source folders "/" out. Can't set breakpoints on __no_operation();

CCS Version 6.1.2.00015; MSP430G2203IPW28; Win 10; MPS-FET (with latest firmware)

I have a couple issues that may be related. First as background, I have worked with CCS in the past with great success. Annoyances at times but mostly good experience. I have also worked on previous projects using "grace" to set up peripherals. This time, after the initial compile, the grace "src" folder and files all contain a "/" through them and are grayed out. (See below) I am able to open those grayed out files and I can trace through them so I believe everything has compiled properly. I was able to debug through a FET tool successfully setting one breakpoint. Then, after several recompiles and changing breakpoints, the error message I now get in the console is, "MSP430: Trouble Setting Breakpoint with the Action "Finish Auto Run" at 0xfc0a: Address is past the end of memory"  (See below) I also get the error : 

Can't find a source file at "/db/ztree/library/trees/gep/gep-h82x/src/ti/targets/msp430/rts430/boot_special_4.4.c"
Locate the file or edit the source lookup path to include its location.

from the file "_c_int00_noargs_noexit()" This file is not generated if all breakpoints are disabled. 

In the past, I have successfully used "__no_operation();" as a way to set a breakpoint just before a section of code that might be troublesome to break at (such as a while or some if statements). It now appears that the __no_operation() is causing the problem. I was able to set a breakpoint at the line of code following the __no_operation() statement. In addition, I was able to set a breakpoint on the __no_operation() within an interrupt vector once. Then upon soft-reset, I obtained the "_c_int00..." error.

Finally, I have tried different optimization levels to fix the __no_operation() breakpoint issue with no success.

So, I guess my three questions are:

1) Why are the grace files "/" grayed out?

2) How do I properly use __no_operation()?

3) Or am I missing something else?

Thanks in advance.

Regards 

JRock

  

  • Jeffrey Rockel said:
    This time, after the initial compile, the grace "src" folder and files all contain a "/" through them and are grayed out.



    That means that all those files/folders are excluded from the build. If that is not the intention and they need to be included, then you would need to explicitly add them back (deselect the Exclude from build).

    Jeffrey Rockel said:
    the error message I now get in the console is, "MSP430: Trouble Setting Breakpoint with the Action "Finish Auto Run" at 0xfc0a: Address is past the end of memory"

    This is a known issue in a specific version of msp430.dll that is included with the MSP430 Emulators package. Please see this post that mentions a fix that is now available. It is recommended to install CCS 6.1.2, then check for updates from within CCS and install the v6.3.1.10 MSP430 Emulators Package. Hopefully this will help you get back your breakpoint issues.

  • AartiG,

    Thanks for the advice. I was able to remove the checkbox from "excluded from build on all but the "makefile.defs". Will read through the reference page you linked in for more gems I should learn about.

    So am I correct that "__no_operation()" would never be optimized out? Regarding file versions, I have added my request to the other post. No fix yet.

    Jeff
  • Jeffrey Rockel said:
    So am I correct that "__no_operation()" would never be optimized out?

    I believe that intrinsics are subject to the same optimization as any other code/instruction.