Recommendations#
The interrupt from the module is active high, and the host must be configured to interrupt in the level-triggered mode.
The recommendation is to port the external interrupt GPIO Pin for interrupt status in the SPI HAL (Hardware Abstraction Layer).
To configure a soft reset, the user needs to map the GPIO out pins of the host to the
reset_extin the GPIO header of SiWN917.The user needs to send the reset sequence to the module in the function
sl_si91x_host_power_cycle(). For instance, the reset sequence for EFx32 host is already present in the definition atwiseconnect/components/si91x/platforms/efx32.
The following are some of the possible reasons for SPI busy (error code - 0x0054):
A command is sent before reading the complete response to the last command.
A received packet is not completely read but the next send command is being sent.
The packet intended to be sent was not sent completely.
A glitch in SPI lines.
High speed SPI is not supported.
While porting MCU HAL, ensure the data that is sent to MCU HAL in SPI Transfer function, sl_si91x_host_spi_transfer(), is placed in a buffer and its address is sent. Refer to the sl_si91x_host_spi_transfer() API description for more information.