Hello everyone, me again with another noob question.
So I am revisiting a TIVA project I finished a few months ago and I am confused about what happens when I run it now. Long story short, I have a new laptop with no access to my old laptop with the old TIVA project saved on it, created in CCS. I still have access to the source code however, so I just created a new CCS project and copy-pasted the source code into it. The purpose of the project itself is basically to generate space vector-based PWM signals for a DC-AC power inverter and it does this using ISRs triggered by GP timer timeout events that read pre-determined pulse width time values from an array and then loads them into a timer, finishing the ISR. The program then waits in an empty while loop for the next timeout event. It was set to generate this PWM scheme with a fundamental frequency of 50Hz and a switching frequency of 2kHz.
The only change I made to the source code was changing the ROM_SysCtlClockSet function to a SysCtlClockSet with the same input arguments and ROM_FPUEnaable to FPUEnable. This was because I couldn't get the compiler to recognise the ROM functions, even though I included what I thought to be the correct header files (I had not changed them from the previous working project). So I changed them because I thought they should do pretty much exactly the same thing. Those are literally the only changes I've made to the code. I am now using a newer version of CCS (I think) and I am using a TIVA C Series Launchpad as before.
However, since I tried running the new project with the slightly changed source code, the interrupt service routines takes much so longer for it to run such that the fundamental frequency is no longer the same and is in fact a lot higher. Using an oscilloscope to determine, I remember the ISR used to take 1.2us to run and now it takes 10us. I tried playing with the optimisation settings but they didn't restore it to its previous speed and I tried changing the ISR a little bit by removing half of the output pin value setting commands to try and speed it up, but I saw no change (not even a decrease in ISR execute time like what happened before on my old laptop) and I also confirmed that the clock is running at the same frequency it was before (80MHz). Is there anything external to the source code, such as in the project settings that be causing such a slowdown?