Part Number: TMS320F280025
Other Parts Discussed in Thread: C2000WARE
Hi Champ,
I am asking for my customer. They are copying our example code spi_ex6_eeprom to their own project.
Actually what they do is exactly the same procedure with our code in the main, only without the part of Wait until the EEPROM is ready to write data and check received data for correctness.
After enableWrite(), they directly write and read data from the EEPROM with below code, then go to while loop.
enableWrite();
writeData(EEPROM_ADDR, &TXbuff[0], 64, NO_DELAY); // Write data to the EEPROM
readData(EEPROM_ADDR, &RXbuff[0], 64,NO_DELAY); // Read from the EEPROM
while(1)
{
customer's own application code
}
It is found that during debug mode, the try to put a breakpoint before running to the first line of customer's own application code.
While the code is stuck before the breakpoint, and stop at line 977 while((HWREGH(base + SPI_O_STS) & SPI_STS_INT_FLAG) == 0U) which is in the function of SPI_readDataBlockingNonFIFO in spi.h, and they will have to suspend and resume again, so that they could run to the breakpoint the first line in while loop.
Would any expert clarify why the code is stop at here, and how to run to the first line in the while loop directly ?
Thanks and regards.
