Does Lyra S and Lyra P modules support SPI
Lyra P and Lyra S modules are based on the Silicon Labs EFR32BG22 BLE SoC which contains 2x USART interfaces which can be configured for UART/SPI/SmartCard (ISO 7816)/IrDA/I2S. However, depending on the SW used for an application there are some details to be aware of. Lyra supports SW development using AT Interface Command Set, Wireless Xpress or C Code. The following notes should be considered depending on which SW is used for development. USART1 is used for DFU when loading the module with FW of choice. The bootloader FW that Lyra modules are shipped with reserves specific pins that are used by USART1. Refer to the Lyra S or Lyra P datasheets for details.
AT Interface does support SPI but only on the following pins:
- Lyra S:
- SPI MOSI: PB01; Pin 9
- SPI MISO: PB02; Pin 8
- SPI CLK: PB03; Pin 7
- Lyra P:
- SPI MOSI: PB01; Pin 5
- SPI MISO: PB02; Pin 4
- SPI CLK: PB03; Pin 3
Wireless Xpress SW does not support SPI.
For applications using C Code development pins from USART0 are available on any unused GPIO pins associated with Port A / B / C / D and if USART1 is not intended to be used for DFU pins are available on any unused GPIO pins associated with all port pins. Refer to the Lyra S or Lyra P datasheets for information on pins available as GPIO.