Tool/software:
Hi teams:
I am doing SPI communication now. The host is TM4C and the slave is MSP430. The host sends a frame of data. When the slave receives it, it uses an interrupt to receive the data. Then, the data is parsed. If the frame header, frame tail and CRC of this data frame are all OK, the data is parsed correctly. If there is a problem, it will not enter the parsing function.
Operation 1: The current problem is that when the two chips are powered on at the same time, the slave MSP430 occasionally fails to receive the correct data frame. It is found that the data can enter the MSP430 receiving interrupt, but cannot enter the parsing function. After that, even if TM4C periodically sends data to MSP430, MSP430 cannot respond. Why is this?
Operation 2: Add code. After a period of time, if MSP430 cannot receive the correct data, re-initialize SPI on MSP430, and then re-experiment. It is found that when the problem of operation 1 occurs, MSP430 can resume communication normally later.
Looking forward to your reply, thank you