Other Parts Discussed in Thread: TMS320F28027
Tool/software: Code Composer Studio
Good Morning people, Yesterday i posted a thread that was asking for some problem with code unstability in the Code Composer Studio Forum. In that post i explain that im developing a code with ePWM interrupts, ADC, etc etc. and i was doing some printings by console. then i said that the code becomes unstable when i delete or add a different line to te program, even if the line does not interfer with the functionality of the program.
I was experimented problems like the program dont stop interrupts (in a part of the program it must have stop ePWM int to do some mathematical operations that require a series of data stored in memory, just 100 integer data). Or other of the problem that i saw when i make a minimal change in the source code (f ex. comment a simple instruction that wotn interfer with the functionality) was that the CCS is not enabling the interrupts of ePWM to continue with the program.
Then i noticed that if i run the program step by step it read the instructions, but when i get a critical point (f ex. Disabling interrupts) the programs just ignore my step over and it plays again freeruning, it depends on the mood of CCS =/. and besides it ignores my step over its just like the instruction wasnt there and it keeps with the interruptions.
i also noticed that my program its not running as i want because the CCS is "jumping" the critical instructions (f ex. enabling or disabling interrupts), but i repeat, this just happen if i make insignificant changes on my functional but so unstable source code. I dont found any logic on this behavior with and i dont know how to solve it. Is a kind of "optimization" implemented by the CCS the "jumping instructions" and no reading instructions? How can i solve this problem? HELP PLEASE. at this point i dont know what to do.
For last, it supose that i have to store a data in a .txt file, it works perfectly and my unstable but functional code stores the data, but it does that only once time, if i want to overwrite my data is like it is jumping the instructions again, because it dont store any data, just left the .txt file empty with none data.
I would rlly apreciate if someone knows what is happening and help me to solve it.
Eliomar Conde. Regards from venezuela.