We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, What would be the reasons for a program ignoring some functions that are supposed to be called. They are defined and they are called several times in the program, but there is one specific section skipping them. Why? Thank you
Please be more specific --- it's necessary so we can know what's really happening here. The core question you should answer is: what did it take for you to find out the function wasn't called? Was some supposed output / state change not done, or did you have to look at the machine code to see it wasn't called? If the former, that'd be a bug in your code (it doesn't do what you think it does) or in the compiler (it optimizes away what it's not allowed to). If the latter, that's nothing you should worry about --- you just saw the optimizer at work.
It was the state of a pin, which is supposed to go from high to low, and a delay function. I am using the emulator EPM900. Also, I am getting Error Command 'ReadSFR()' Timeout, while using the emulator. Thank you
Have you looked at the assembly code generated to see if the function is called? If you haven't already done that, THAT is the place to start. Jon