Part Number: TMS320F280039C
hello
i used the PWM header file in my project included the header file and called some apis from there in the source file, the problem is the code is not doing what it is supposed to do in that source file but it is working in another source file ?? here i will explain more :
the code is compiled and deployed to the launchpad without any problems but when i step through the code the apis doesn't work at all it is not effective inside that source file but effective in another source file, i tried to set global flags inside that function in which the apis doesn't work and the flags were set without any problem, then used those flags in a if statement inside the task scheduler if set it will call the apis that were not working in the other source file and it worked fine. i don't understand the problem why the same apis work well some where and doesn't work somewhere else. what i mean by doesn't work is that the debugger steps and execute the code but no result come from it "the volt changes", i used only the two apis
i think the problem has something to do with the EPWM header file itself that file is big and caused a stack overflow problem when i run that code i had to increase the stack so that the code works, also i got the message of editor scalability
and why do you think the stack oveflow happens ?
