1)This Problem is Regarding the Debug Mode of Code Composer Studio
2)I Have Written a normal Code for PWM at 10KHz and it is working Fine, This Code uses MCLK as the Clock source which is by Default Configured to Operated at 1MHz as Mentioned in Datasheet at page Number 162.
3)In This Default Configuration of Clock i have Successfully ran codes of UART I2C PWM and faced no issue during debugging also.
4)The Problem Started when i Changed the Clock Frequency to 20MHz, I have Verified MCLK, SMCLK and ACLK by Outputting the Clock to Pin 7.7,2.2 and 1.0 and are properly configured as I have set them and Verified it against Oscilloscope.
5)Now After the Changed Clock Frequency when I Tried all codes there were showing one Similar Problem, All codes worked Properly when I was not in debug Mode, But when i was in Debug Mode, The Code Did not work for this problem i will refer only to the PWM Code.
6)Without Debugger my PWM Code was working Perfectly fine and generating PWM at 10Khz and Variable Duty Cycle, When i Switched to debug Mode, The PWM Frequency Dropped Significantly to 100Hz.
7)I Then Realized that this slow Down is Caused by Debug Mode because in this Condition i Check the SMCLK MCLK and ACLK and all were Running at 32KHz(WHY), When I Tried the Free Run Mode, The same Problem occurred but, when i Pause the Code in this Free run mode and pressed the Pause Button, The Debugger Stopped the Code Execution in Boot.c file, After Pressing Play Button the Code worked fine as it was running without Debug Mode.
8)I Repeated this Step Multiple times and every time i found the Code working in Debug Mode even with breakpoints Properly without any issue.
9)When I Executed the Code step by Step after starting debug in Free run Mode the following Files were opened During the Code Execution before starting the Execution of Main as shown in the Image.
Please Note:I am Doing all the Testing on MSP430F5529 Development Board.
10)Now I have Multiple Questions
a) Is There a way to solve this problem of Clock
b)How to Setup the Debug Window for Clock Other than default Clock Which is 1MHz
c)Does the EZ FET Emulator somehow effect what i am trying to do.
d)What are the Conditions in which Boot.c is executed.