I tried to program SPI in T2080RDB in a very simple way.
I programmed registers in the code warrior. I opted for loop back code too. But to my surprise 'DON' bit is never high. I don't know why. Finally tried the example in T2080RM, tried 'only Tx in loop back mode'. But the DON bit is never high.
Can anyone tell me 1 thing. Will the 'DON' bit be '1' initially, i mean just after power on of the board, even before i access SPI? I find that after power on, the "DON" bit is 0 and is always 0. I feel if it is 0, it will never transfer the FRAME i wrote in Tx FIFO(SPITF).
In U-Boot eSPI operates as described:
=> md fe110000
fe110000: 0004100f 00208900 00000000 00000000 ..... ..........
fe110010: 00000000 00000000 00000000 00000000 ................
fe110020: 00100000 00100000 00100000 00100000 ................
=> mw fe110004 ffffffff;mw fe110000 80000403;mw fe110020 24171108;mw fe110010 03000040;mw fe11000c 00040027
=> md fe110000
fe110000: 80000403 2020bb00 00000000 00000000 .... ..........
fe110010: 00000000 00000000 00000000 00000000 ................
fe110020: 24171108 00100000 00100000 00100000 $...............
=>
Please check your code and ensure that RX FIFO is emptied after each reception.