SPI demos not working (LPC54608)

cancel
Showing results for 
Search instead for 
Did you mean: 

SPI demos not working (LPC54608)

570 Views
patrickhudson
Contributor III

We're developing on the OM13092 dev board.

Neither the spi_polling_transfer or the spi_interrupt_transfer examples from SDK 2.2.0 operate.

The hello_world, touch_cursor (LCD), lcdc_tft and LED examples do operate properly.

FC9 clock is OK (coming out of FC9_SCK)

but FC9_RXD_SDA_MOSI and FC9_CTS_SDA_SSEL0 are not operating (viewed with O-Scope).

In the spi_polling_transfer example the program hangs at:

  while(slaveFinished != true)   because of no data out of fc9, no data into fc3. 

A jumper has been placed on JP6

Any ideas?

Labels (1)
0 Kudos
3 Replies

256 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Patrick Hudson,

   From the doc of spi_polling_transfer , you need to connect it like this:

Board settings
==============
Populate jumper JP6.
Connect SPI9 pins to SPI3 pins:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
INSTANCE0(SPI9)     CONNECTS TO         INSTANCE1(SPI3)
Pin Name   Board Location     Pin Name  Board Location
MISO       J9 pin 11          MISO      J14 pin 3
MOSI       J9 pin 13          MOSI      J14 pin 2
SCK        J9 pin 9           SCK       J14 pin 4
PCS0       J9 pin 15          PCS0      J14 pin 1

Make sure JP-6 is fitted to use the PMOD SPI port.
Also in JP8 pin 1-3 and 7-9 should be shorted.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

But, LPCXpresso 54608 board have several versions, as I know, the above connection is for REV B, I don't know what the board reversion you are using now?

Please let me know your board reversion at first, then I will check it on my side.

Have a great day,
Kerry

 

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

0 Kudos

256 Views
patrickhudson
Contributor III

Hello Kerry,

As mentioned in the original post, JP6 is installed.  In addition a cable is installed between J9 and J14 providing connection between SPI9 and SPI3.

We're using Rev C of the development Board.

As a first step, determining why the debug console has no output would be very helpful.,

 

Thanks,

Patrick

0 Kudos

256 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Partick Hudson,

    Thank you for your updated information.

    Actually, the readme.txt file in sdk2.2 spi polling code is used for the the revB board, that's why you can't make it work.

   After test it on my revC LPCXpresso 54608 board, you need to do these modifications:

1. JS34 and JS35 should connect pin 1 and 2.

   pastedImage_1.png

2. About your UART can't printf out from the virtual com port in J8

pastedImage_1.png

After you connect the JP6, the UART interface will work at P4.

You can use another TTL-USB tool to test the printf data.

 After the above modifications, I can make it work on my side, this is the printf data:

pastedImage_2.png

pastedImage_3.png

Wish it helps you!

If you still have question about it, please kindly let me know.

Kerry

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

0 Kudos