AnsweredAssumed Answered

MQX 4 SPI Problem TWR-K60F120M

Question asked by terencet on Nov 8, 2013
Latest reply on Dec 16, 2013 by terencet

I've been trying to get SPI working in MQX.

I have already got it working bare metal by just writing to the addresses, and thought that I could just use the same code in MQX.

I have connected up SPI1 and SPI2 using the Prototyping board and am just sending one byte messages one way. When I try to get it to work in MQX I can see that the messages are being sent but nothing is happening on the receiving side. This also happens when I try to use MQX's SPI driver, I get the exact same problem. I've noticed that in both I can't seem to change the PCSIS value in the MCR register it is always 0xFF no matter what I set it to(I can change it in the baremetal version).


Has anyone experienced any similar problems or know what might be causing this?


I'm using keil's uVision 5 and the TWR-K60F120M board.