LPC55S69 Board2Board SDK Example Issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC55S69 Board2Board SDK Example Issue

1,498件の閲覧回数
SrinathVelavan
Contributor III

Hello, 

I am working with board2board SPI example for LPC55S69 EVK ( 2 EVK boards 1 master and 1 slave). By default the code works perfectly and I am able to get proper communication of data and outputs. By default, the SPI interface is set on Flexcomm 7. 

Now, when I try to change the interface to Flexcomm 5 for my own custom design, the code gets built and debugged but there is no communication of data happening between the master and slave. In order to work with my scenario, I have made changes from FLEXCOMM 7 to FLEXCOMM 5 in the pinmux.c files and the main() function in the spi master.c code. Is there anything I am missing? 

The data dont seem to sent from master to slave on the SPI channel ( Flexcomm5). 

Please help me with this issue. Any guidance of how to make the change from one flexcomm interface to another in the code will be much helpful. 

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

1,482件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I suppose that this is the procedures to configure a SPI port.

1)enable SPI gated clock and write the PSELID register

xiangjun_rong_0-1686903570911.png

You can use the line like to enable SPI5 gated clock and set up the PSELID register

SPI_MasterGetDefaultConfig(&userConfig);
srcFreq = EXAMPLE_SPI_MASTER_CLK_FREQ;
userConfig.sselNum = (spi_ssel_t)EXAMPLE_SPI_SSEL;
userConfig.sselPol = (spi_spol_t)EXAMPLE_SPI_SPOL;
SPI_MasterInit(SPI5, &userConfig, srcFreq);

 

2)You have to enable IOCON gated clock and configure the SPI pin in pin_mux.c as you have done.

Hope it can help you

BR

XiangJun Rong

0 件の賞賛
返信

1,433件の閲覧回数
SrinathVelavan
Contributor III

Thanks for your response. I tried the changes but facing issues with master side. I get Slave is working output but nothing on Master side Console Output. 

Can you please explain what needs to done with PSELID and IOCON Gated Clock. 

Further, I am trying SPI3 and Flexcomm3. I have made changes as per that. According to EVK Schematic, FC3 pins come out through PMOD Connector P20 (Pins 2,3,4,6). So i have connected the P20 of both master and slave EVK boards but the master doesn't seem to working at all.,

 

Please help regarding this issue. 

0 件の賞賛
返信

1,419件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

On LPC55S69-EVK board, if you want to use FC3 as master, you have to configure the FC3 pins as SPI FC3 in pin_mux.c, secondly, on LPC55S69-EVK, you have to close the P1 so that the link2 is disabled.

Hope it can help you

BR

XiangJun Rong

 

0 件の賞賛
返信

1,390件の閲覧回数
SrinathVelavan
Contributor III

Thanks for the reply. Will try it out and see how it works.

0 件の賞賛
返信