Closed santaimpersonator closed 2 years ago
I had the exact same problem, which I solved too by commenting out both function calls. In the example provided by SparkFun the calls are removed as well. I still have some timing issues when trying to receive LoRa frames. I am using the LacunaSpace BasicMAC Library with the SparkFun LoRa Thing Plus explorable.
Fix is in dev and scheduled for release 2.2.1
It appears that the Apollo3 Arduino core doesn't implement these Arduino functions:
noInterrupts()
: https://www.arduino.cc/reference/en/language/functions/interrupts/nointerrupts/interrupts()
: https://www.arduino.cc/reference/en/language/functions/interrupts/interrupts/I believe that enabling and disabling the interrupts were handled by these functions
am_hal_interrupt_master_enable()
am_hal_interrupt_master_disable()
in the Apollo3 Mbed OS platform in these files (location varies by branch):
I saw an old issue that got pulled, where @oclyke mentioned
noInterrupts()
being used; also, there was an example for the PDM microphone calling those functions. However, I think that thenoInterrupts()
andinterrupts()
functions were removed at a later point (probably by accident).I found the issue when I was trying to get the LoRaWAN Arduino library working with the Artemis MicroMod processor board. However, I ran into compiler issues for
noInterrupts()
andinterrupts()
in the library at these lines:I was able to work around the issue by throwing an ifdef to avoid compiling those functions, since the disabling of the interrupts in the library seemed mostly critical for AVR boards (from what I could tell).