[quote user="Shai Gigi"]but still whenever i try to start a debug session, the debugger window is stuck and shows only red stop button.[/quote]I performed a test of adding __attribute__((ramfunc)) to functions in an existing MSP432 project using the TI v16.9.0 LTS compiler. When __attribute__((ramfunc)) was used on the main function, when a debug session was started the program didn't halt at main the the debugger window only showed a red stop button. Since the program did flash a LED could see that the program was actually running. When I selected the "Texas Instruments XDS110 USB Debug Probe/Cortex_M4_0 (Running)" line in the Debug window the pause button became available, and could pause the program. In the CCS project properties under Debug -> Misc/Other Options unticked the "Allow software breakpoints to be used". With the use of software breakpoints disabled, when started a debug session the program was halted at the start of the main function (in RAM). Does that resolve your problem? Having the main function placed in RAM seems to stop the CCS debugger from running to main when software breakpoints are used - presumably since the act of copying the main function from flash to ram overwrites the software breakpoint.
↧