Tool/software:
I am using
ccs 8.3.0.201810301800
TIRTOS 2.16.1.14,
compiler 5.2.7
XDC 3.31.1333
TM4C1294NCPDT
ndk_2_25_00_09
I am interfacing a large flash memory to the TIVA via the SPI interface. I seem to have found a limit where I can not do a continuous SPI transfer of more than 1024 transfers.
I put the following code together to see what the limit of the transfer count is and the code runs and the transfer works up to 1024 bytes then fails at 1025.
// starting at 1, do a transfer and if successful add one to the transfer till the transfer fails.
for(rc=1; rc<0xffff; rc++) // this fails at 1025 and passes at 1024
{
masterTransaction.count = rc;
transferOK = SPI_transfer(masterSpi3, &masterTransaction); // TI RTOS Users guide p67/122
if(transferOK == 0)
{
printf("SPI_transfer() %d %d\r", rc, transferOK);
break;
}
}
Is there a way to get this to do a continuous transfer of about 5,000 transfers?