Other Parts Discussed in Thread: SYSCONFIG, AM263P4
Tool/software:
Hello,
I am trying to read data transmitted from both the mcspi_performance_8bit and mcspi_performance_32bit examples from the v9.02.00.56 of the AM263P SDK.
Unfortunately, it seems that I am not getting any data on the logic analyzer on the D0 pin (J6.55). I've made no modifications to the SW, but based on what is populated on the TX Buffer, it seems like I should be reading 0x0, 0x1, 0x2, 0x3, and 0x4.
1. Is the picture below the expected output? Based on the code, gMcspiTxBuffer is not filled with 0, so I am unsure why I keep getting 0.
2. Shouldn't the code be indexing "j" instead of "0" in the for loop below? I tried changing it to "j" as I thought the reason I am only seeing 0 is because the FIFO is populated with only the first element of the txBuffer (Which is 0) but it does not fix the issue.
startTimeInUSec = ClockP_getTimeUsec(); for(j = 0U; j < APP_MCSPI_TRANSFER_LOOPCOUNT; j++) { mcspi_low_latency_transfer_32bit(baseAddr, chNum, &gMcspiTxBuffer[0], dataLength, bufWidthShift); }
Best regards,
David Martinez