Part Number: MSP432P401R
Hello! I'm using MSP432 with ADS131A04 ADC to read some sensors. Until now I was able to read 1000 samples, save them in the MCU memory and plot them in CCS 7.
Now my code does not work. 9/10 times I run the program, when it reads over 100 samples, the CPU resets. Sometimes it can read fine, but most of the times it resets. Sometimes the program hangs in Default_Handler(), but most of the times I can catch it in Reset_Handler().
I placed a breakpoint in Reset_Handler() and saw the RSTCTL register values. Hard reset sources 0, 14, 15 are "1" and soft reset source 0 is "1" (CPU lockup, what does it mean? Also COREDEBUG - DHCSR - S_LOCKUP is "0", suggesting that there is no lockup?).
The program uses SPI to communicate with the ADC and a GPIO interrupt for DRDY. I've tried stripping the program of other code, leaving only what is necessary to communicate with the ADC and read the samples.
Does anybody have an idea what could be causing this problem? I really do not know how to continue investigating this.