Problem with SDK freertos SPI example

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Problem with SDK freertos SPI example

跳至解决方案
4,417 次查看
mattyoung
Contributor III

Hello,

I'm wondering if this forum would be able to help solve my problem running the freertos_spi SDK example? I have imported several SDK examples which have worked, but am not able to get this example to generate the expected output. I have not altered the code from the SDK example code. The serial communication portion works and outputs results as shown in the "UART output" attachment. However this output indicates the test was not successful. I also attached an oscilloscope capture, with channels connected as follows:

CH1 = CLK

CH2 = PCS0

CH3 = SOUT (master MOSI)

CH4 = SIN (master MISO)

  

The master appears to successfully transmit a message, but the slave does not receive it as indicated by the serial output from the SDK example program. There is no line activity after what is shown in the oscilloscope capture.

I feel confident I have connected the 4 wires correctly, connecting SPI9 (J9 pins 11, 13, 9, 15) to SPI3 (J14 pins 3, 2, 4, 1). I also noted that the above serial response is different if I remove my connecting wires. I have also inserted the JP6 jumper. I have not done anything with JP8, as that is not present on my revC board.

 

MCUXpresso IDE v10.1.1 [Build 606] [2018-01-02]

SDK_2.x_LPCXpresso54618, SDK Version 2.3.0, Manifest Version 3.2.0

Board: OM13094 CAN-FD kit, lpcxpresso 54618, silkscreen on board is: LPCXpresso546xx Rev C

Micro: LPC54618J512

 

Thanks,

Matt

0 项奖励
回复
1 解答
4,058 次查看
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Matt,

As you mentioned before, JP8 is not present on revC boards, however JP8 was replaced for zero ohms links (JS33, JS34, JS35 and JS36).

JP8-JS.JPG

So you need to make the changes in the zero ohm links, specifically move JS34 and JS35. By default each link is connected to pins 2 and 3 you need to change both of them (JS34 and JS35) to pins 1 and 2. Once you make these changes the demo works correctly.

Have a great day, 

Victor.

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
2 回复数
4,059 次查看
victorjimenez
NXP TechSupport
NXP TechSupport

Hello Matt,

As you mentioned before, JP8 is not present on revC boards, however JP8 was replaced for zero ohms links (JS33, JS34, JS35 and JS36).

JP8-JS.JPG

So you need to make the changes in the zero ohm links, specifically move JS34 and JS35. By default each link is connected to pins 2 and 3 you need to change both of them (JS34 and JS35) to pins 1 and 2. Once you make these changes the demo works correctly.

Have a great day, 

Victor.

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
4,058 次查看
mattyoung
Contributor III

Thank you, that made it work correctly as you suggested.

Matt

0 项奖励
回复