I'm trying to use QSPI in K81 (TWR_K81F150M). And importing the example "qspi_polling_transfer", without modifying any code, it always fail, printing "The data is wrong".
Same occurs with example "qspi_edma_transfer".
Checking the memory monitor, in each write, the first 2 bytes is always "CCCC". For example, writing
uint32_t data containing numbers 1, 2, 3, 4 in memory 0x6800 0000 will lead to:
memory addr - values
0x6800 0000 - CCCC0000 00010000 00020000
0x6800 000C - 00030000 00040000 00000000
where, I think, it should be:
0x6800 0000 - 00000001 00000002 00000003
0x6800 000C - 00000004 00000000 00000000
Hi Alyson Rosa,
I have tested this code example in my side (using MCUXpresso IDE and SDK 2.2) and I couldn't see any problem in its functionality. The board doesn't require any special setting in its jumpers but just to discard, please verify this. Also, K81 doesn't have SDK downloable package, so are you using a K80 package?
Can you share the code? Or at least the LookUp Table (LUT) for this flash?
I'm using SDK from K82 package.
Hi Alyson Rosa
Sorry for the late reply, I am using the same code example and SDK package as you, qspi_edma_transfer and K82 SDK 2.2.