Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
I have a function that's interacting with a serial NOR flash chip over SPI. But every time it executes, it seems like it's terminated early after a second or so. I noticed this because it would be printing out messages, and then all of a sudden stop and the messages from the next function starts to print. I don't even know where to begin troubleshooting this. Is there a length limit on how long a function would run? I'm using ThreadX by default and not using any thread management functions yet. I also noticed that the problem went away when I put the device under GDB. It seems like having breakpoints in the middle of the function forces it to run till completion. Any ideas why?
Can you let us know the platform in which you are seeing this problem? Can you provide the example code so that we can see and find out the issue. Please attach the project in the thread so that we can have a look.