This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP432E401Y: Program Freezes without breakpoint in Debug Mode, but does not freeze when there's a breakpoint

Part Number: MSP432E401Y

Hello,

As the thread title suggests, I'm using Code Composer and setting a breakpoint at a certain line where I'm performing a GPIO Pin Read during the rising edge of a clock that is generated by a Timer. I'm using the MSP432 to communicate with an eMMC Flash storage device that is able to read/write data from a sensor attached to a GPIO Pin and use the eMMC for data logging. I'm essentially saving either a '1' or a '0' into an unsigned char array that is 4096 bytes long (which is something I plan on optimizing to be more efficient with memory storage), in order to translate a data block the eMMC is sending back to the MSP432. When I set a breakpoint at the line where the GPIO Pin Read is performed, I am able to step through the pin read actions or cancel the breakpoint and allow my program to continue reading at the clock frequency I have set. However, if there is no breakpoint on this line, the program freezes and I can only suspend or execute the program in Debug mode (suspending and then resuming my program still leaves the program frozen and unchanged). I assume there is some unexpected interrupt happening that is keeping my program stuck in this state when there is no breakpoint on this line. So I was wondering if anyone had any insight on what the breakpoint might be resolving that's allowing my program to resume or step through my program and why having no breakpoint might be causing me this issue? Also, any ideas on why my program might be freezing without the breakpoint would be super helpful as well! Thanks

TM