arduino-libraries / MKRWAN_v2

[Beta] Library for Arduino MKRWAN 1300 / 1310 suitable for firmwares derived from ST sources
GNU Lesser General Public License v3.0
7 stars 6 forks source link

Is SPI contention with the LORA module fixed in this library? #23

Closed CanOfSocks closed 2 years ago

CanOfSocks commented 2 years ago

Hi, I was wondering if the issues with SPI contention are still a problem for this library with the MKR WAN 1310, both for the external flash storage and other SPI devices. I'd like to use the external flash and an SPI RFID reader, but would like to avoid resetting the lora module where possible.

Sorry if this topic isn't appropriate for this repo, but I believe you guys will give me the best answers.

Thanks

aentinger commented 2 years ago

Can you elaborate on what you mean by SPI contention? Arbitration on SPI is done via chip select lines dedicated for each slave. Consequently there can be no such thing as SPI "contention"-

CanOfSocks commented 2 years ago

Hi, I'm referring to this issue from the MKRWAN v1 library. I haven't been able to find if it has been fixed with my searches. I'm yet to test with my MKR WAN 1310 personally, but want to get an idea if I should expect to use workarounds with future projects.

aentinger commented 2 years ago

Hi, Given that MKRWAN_v2 only uses SerialLoRa (which is the defined in ArduinoCore-samd) and the fact SerialLoRa aka Serial2 is using the same SAMD pins as the SPI connected to the SPI flash I have to say that YES, you still have to power down the modem if you want to talk to the flash :( .