Part Number: TMS320F28030
Hi, when running code in the standalone mode, The SPI bus receives two words, The first word is correct, the second word is incorrect. If the sequence is repeated, the first word is always correct and the second is always incorrect. Executing the exact same code in the debug mode this issue does not exist.
In both cases a word is sent every second using a SPI clock of 2.5mhz. the spi is a slave, The clock and data voltages swing 3.3 volts and look well behaved.
the SPI int is in RAM
#pragma CODE_SECTION(spiRxIsr, "ramfuncs");
#pragma CODE_SECTION(spiTxIsr, "ramfuncs");
The INT Rx code
iSpiRxData = SpiaRegs.SPIRXBUF
What am I missing?