We have a custom board that uses a SX1276 controlled by an nRF52840 running the LoRaWAN stack (from Mbed OS). If I configure for using 4 DIO pins (DIO0-DIO3), the code runs fine; however, if I configure for 5 DIO pins (DIO0-DIO4), I get an Mbed OS hard fault with an error of "Not allowed in ISR context".
From looking at the implementation of the SX1276 driver, it doesn't look like DIO4 is used for anything when the modem is in LoRa mode, but I could be missing something. Does the SX1276 driver support 5+ DIO pins in LoRa mode?
We have a custom board that uses a SX1276 controlled by an nRF52840 running the LoRaWAN stack (from Mbed OS). If I configure for using 4 DIO pins (
DIO0
-DIO3
), the code runs fine; however, if I configure for 5 DIO pins (DIO0
-DIO4
), I get an Mbed OS hard fault with an error of "Not allowed in ISR context".From looking at the implementation of the SX1276 driver, it doesn't look like
DIO4
is used for anything when the modem is in LoRa mode, but I could be missing something. Does the SX1276 driver support 5+ DIO pins in LoRa mode?