Code: Select all
//Initialize buffers
static BYTE RXBuffer[2], TXBuffer[2]= {0xAB,0xCD};
to set the QueueBitSize to 18 instead of 16 which would have
made more sense
Code: Select all
QSPIInit(3000000, //Baudrate
0x18, //QueueBitSize
0x1, //CS
0x0, //CSPol
0x0, //ClkPolarity
0x1, //ClkPhase
TRUE, //doutHiz
0x0, //csToClockDelay
0x0 //delayAfterTransfer
); // Keep overloaded defaults
is why I had to decrement the pointer address for both buffers.
Code: Select all
for (int i=0; i<=10; i++)
{
iprintf("TXBuffer is %X\n",TXBuffer[i]);
}
QSPIStart(TXBuffer-1, RXBuffer-1, 2, &QSPI_SEM); // Send data via QSPI
OSSemPend( &QSPI_SEM, 0 ); // Wait for QSPI to complete
iprintf("\n\n");
for (int i=0; i<=10; i++)
{
iprintf("RXBuffer is %X\n",RXBuffer[i]);
}
cause problems later on? Thanks for any input provided.