RAK4630 schematic_

HI,

I’am trying to port the Semtech SX126x Stack without Arduino environment on the RAK4631 as I’am porting an existing projet that do not come with Arduino framework.
Where can I found the RAK4630 nrf52840 <-> SX1276 SPI/DIO pins mapping ?
I can’t find any document about the RAK4630 (except the FCC ID User manual, but no schematics).
Is it the same as the RAK4600 mapping (even if it use the nrf52832) ?

Thanks for help,
BR,

Hi @bobmorane83 , welcome to the forum.

The pin mapping can be found in the SX126x-Arduino library
As it is a generic initialization, it is a little bit difficult to get all the details:

  • DIO2 of the SX1262 is programmed as antenna switch
  • GPIO37 is used as power for the antenna switch.
  • Usage of TCXO is enabled and controlled over DIO3 of the SX1262
  • GPIO39 is connected to the RESET of the SX1262
  • GPIO46 is connected to the BUSY pin of the SX1262
  • SPI is connected as
    • GPIO42 NSS
    • GPIO32 SCLK
    • GPIO45 MISO
    • GPIO44 MOSI

Hi @beegee , thanks for your answer.
I think there is some typo with RESET and SCLK.
Just to clarify :

#define PIN_LORA_DIO_1          47      // LORA DIO_1 :     NRF_GPIO_PIN_MAP(1,15)
#define PIN_LORA_RESET          38      // LORA RESET :     NRF_GPIO_PIN_MAP(1,6)
#define PIN_LORA_SCLK           43      // LORA SPI CLK :   NRF_GPIO_PIN_MAP(1,11)
#define PIN_LORA_NSS            42      // LORA SPI CS :    NRF_GPIO_PIN_MAP(1,10)
#define PIN_LORA_MISO           45      // LORA SPI MISO :  NRF_GPIO_PIN_MAP(1,13)
#define PIN_LORA_MOSI           44      // LORA SPI MOSI :  NRF_GPIO_PIN_MAP(1,12)
#define PIN_LORA_BUSY           46      // LORA SPI BUSY :  NRF_GPIO_PIN_MAP(1,14)
#define PIN_RX_ANT_SWITCH       37      // LORA RX ANTENNA SWITCH : NRF_GPIO_PIN_MAP(1,5)
#define PIN_TX_ANT_SWITCH       39      // LORA TX ANTENNA SWITCH : NRF_GPIO_PIN_MAP(1,7)

Why can’t we find the schematics ?

Thanks,
BR

There is no typo.

GPIO39 is defined but not used because DIO2 is used for switching the antenna.

The schematics are not made public. Company decision.

Sorry, but I’am confused :

In the file board.cpp I can read :
#define PIN_LORA_RESET 38 // LORA RESET
and in your first post :
GPIO39 is connected to the RESET of the SX1262
which one is correct ?

I can also read :
#define PIN_LORA_SCLK 43 // LORA SPI CLK
and in your first post :
GPIO32 SCLK
which one is correct ?

But I understand that GPIO39 is defined but not used. Does it mean that DIO2 switch TX and RX antenna ?

Thanks,
BR,

Sorry for that,
board.cpp is the correct one

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.