ARMmbed / mbed-semtech-lora-rf-drivers

Semtech's LoRa RF drivers for mbed OS
Other
31 stars 25 forks source link

Hard Fault while using 5 DIO pins #38

Closed trowbridgec closed 4 years ago

trowbridgec commented 5 years ago

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?

ciarmcom commented 5 years ago

ARM Internal Ref: IOTCELL-2007

ciarmcom commented 5 years ago

ARM Internal Ref: IOTCELL-2008

AnttiKauppila commented 4 years ago

There is a PR made which fixes this.

trowbridgec commented 4 years ago

@AnttiKauppila Can you point me to the PR that fixes this issue? Thanks!

AnttiKauppila commented 4 years ago

https://github.com/ARMmbed/mbed-os/pull/11412

AnttiKauppila commented 4 years ago

Sorry, forgot to add the link