cancel
Showing results for 
Search instead for 
Did you mean: 

B-L072Z-LRWAN1 SX1276 DIO pins mapping - Need verification

Ikram_safia11
Associate II

 

Problem Description

I'm working with the B-L072Z-LRWAN1 development board and trying to configure the SX1276 LoRa transceiver DIO pins manually (without using ST's HAL middleware). I want to use an external LoRaWAN library (LDL) that requires explicit DIO pin configuration.

Current Configuration

Based on my research, I have the following pin mapping:

 

 
c
#define DIO0_PIN    GPIO_PIN_4   // PA4
#define DIO1_PIN    GPIO_PIN_1   // PB1  
#define DIO2_PIN    GPIO_PIN_0   // PB0
#define DIO3_PIN    GPIO_PIN_2   // PC2
#define DIO4_PIN    GPIO_PIN_3   // PC3
#define DIO5_PIN    GPIO_PIN_5   // PC5
 

Questions

  1. Are these DIO pin mappings correct for the B-L072Z-LRWAN1 board?
  2. Which DIO pins are actually connected/used on this board? (I understand some may not be connected)
  3. Where can I find the official schematic or documentation that shows the exact DIO pin connections?
1 REPLY 1

There's a schematic for the DISCO board under CAD Resources, but the module is made by Murata.

The mlm32l0x_hw_conf.h file should have the pin definitions, both for the DIO and RF Mux. I think DIO4/DIO5 aren't used and perhaps clash with ADC/DAC type operation.

Most cases only a couple or the DIO are used

//#define RADIO_DIO_4
//#define RADIO_DIO_5

/* LORA I/O definition */

#define RADIO_RESET_PORT                          GPIOC
#define RADIO_RESET_PIN                           GPIO_PIN_0

#define RADIO_MOSI_PORT                           GPIOA
#define RADIO_MOSI_PIN                            GPIO_PIN_7

#define RADIO_MISO_PORT                           GPIOA
#define RADIO_MISO_PIN                            GPIO_PIN_6

#define RADIO_SCLK_PORT                           GPIOB
#define RADIO_SCLK_PIN                            GPIO_PIN_3

#define RADIO_NSS_PORT                            GPIOA
#define RADIO_NSS_PIN                             GPIO_PIN_15

#define RADIO_DIO_0_PORT                          GPIOB
#define RADIO_DIO_0_PIN                           GPIO_PIN_4

#define RADIO_DIO_1_PORT                          GPIOB
#define RADIO_DIO_1_PIN                           GPIO_PIN_1

#define RADIO_DIO_2_PORT                          GPIOB
#define RADIO_DIO_2_PIN                           GPIO_PIN_0

#define RADIO_DIO_3_PORT                          GPIOC
#define RADIO_DIO_3_PIN                           GPIO_PIN_13

#ifdef RADIO_DIO_4
#define RADIO_DIO_4_PORT                          GPIOA
#define RADIO_DIO_4_PIN                           GPIO_PIN_5
#endif

#ifdef RADIO_DIO_5
#define RADIO_DIO_5_PORT                          GPIOA
#define RADIO_DIO_5_PIN                           GPIO_PIN_4
#endif

#define RADIO_TCXO_VCC_PORT                       GPIOA
#define RADIO_TCXO_VCC_PIN                        GPIO_PIN_12

#define RADIO_ANT_SWITCH_PORT_RX                  GPIOA //CRF1
#define RADIO_ANT_SWITCH_PIN_RX                   GPIO_PIN_1

#define RADIO_ANT_SWITCH_PORT_TX_BOOST            GPIOC //CRF3
#define RADIO_ANT_SWITCH_PIN_TX_BOOST             GPIO_PIN_1

#define RADIO_ANT_SWITCH_PORT_TX_RFO              GPIOC //CRF2
#define RADIO_ANT_SWITCH_PIN_TX_RFO               GPIO_PIN_2

 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..