LCP54S005 using SPI to LoRa SX1262 board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LCP54S005 using SPI to LoRa SX1262 board

Jump to solution
3,310 Views
JLatour
Contributor I

Hey.

First project with this microcontroller.  The pinout designed by others has us using multiple Flexcomm pins in order to have the LoRa chip connected for use.

Do we need to have all connections related to the LoRa connected to 1 specific Flexcomm peripheral or can this still work using multiple?

Is there any example code for using LoRa communications over SPI?

Labels (2)
1 Solution
3,286 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

You can use any spi interface  to connect to the SPI port of LAMBDA62,  for example, you can connect the FC2 to the spi port of LAMBDA62 , the FC2 functions as master.

LPC54S005                                                                           LAMBDA62

PIO1_23/FC2_SCK                                                               pin13/ Serial Clock

PIO1_24 FC2_RXD_SDA_MOSI                                          pin15/ Serial Data In

PIO1_25 FC2_TXD_SCL_MISO                                             pin14/ Serial Data Out 

PIO1_26 FC2_CTS_SDA_SSEL0                                          pin16/ nSEL 

Regarding the firmware, pls download SDK package from the link:

https://mcuxpresso.nxp.com/en/welcome

 

You can refer to the example of SPI, you can click driver_examples->spi

 

xiangjun_rong_2-1656643108526.png

 

 

Hope it can help you

BR

XiangJun Rong

 

 

View solution in original post

0 Kudos
Reply
3 Replies
3,291 Views
JLatour
Contributor I

Hey,

I made a mistake with the part number.  We are using the LAMBDA62 by RF Solutions (attached datasheet) which has an integrated LoRa semtech SC1262 modem.  According to this documentation programming of the module is via SPI interface.

0 Kudos
Reply
3,287 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

You can use any spi interface  to connect to the SPI port of LAMBDA62,  for example, you can connect the FC2 to the spi port of LAMBDA62 , the FC2 functions as master.

LPC54S005                                                                           LAMBDA62

PIO1_23/FC2_SCK                                                               pin13/ Serial Clock

PIO1_24 FC2_RXD_SDA_MOSI                                          pin15/ Serial Data In

PIO1_25 FC2_TXD_SCL_MISO                                             pin14/ Serial Data Out 

PIO1_26 FC2_CTS_SDA_SSEL0                                          pin16/ nSEL 

Regarding the firmware, pls download SDK package from the link:

https://mcuxpresso.nxp.com/en/welcome

 

You can refer to the example of SPI, you can click driver_examples->spi

 

xiangjun_rong_2-1656643108526.png

 

 

Hope it can help you

BR

XiangJun Rong

 

 

0 Kudos
Reply
3,300 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Can you share the reference manual of SX1262?

I just be browsed the data sheet, it appears that the SX1262 just has uart port, which can communicate with host. In other words, you can connect the FCx_RXD of LPC54S005 to the TXD of SX1262, connect the FCx_TXD of LPC54S005 to the RXD of SX1262, connect the M0/M1/AUX pins of SX1262 to GPIO pins, it is okay.

Hope it can help you

BR

XiangJun Rong

 

0 Kudos
Reply