Tool/software: Code Composer Studio
I am having an issue returning from an interrupt. I am using an interrupt to set a flag that is then dealt with in my main function. The interrupt returns properly when I only use it to set the flag. However, I had originally called an assembly function from my C code within the interrupt to set a GPIO bit for debugging purposes and then called another assembly function to clear the GPIO bit. When I do this, the interrupt never returns and the program stops executing. I have tried playing with all of the stack settings I have found in the documentation and I have not been able to get it to return properly or figure out where the problem is. Additionally, the functions return fine when called from main. I would just take the function calls out of my interrupt, but I am having an issue with another assembly function returning and I suspect they are related. Any suggestions?