sandeepmistry / arduino-LoRa

An Arduino library for sending and receiving data using LoRa radios.
MIT License
1.64k stars 627 forks source link

MKRWAN 1310 using SPI flash. #308

Closed 03sarath closed 4 years ago

03sarath commented 4 years ago

Hey sandeepmistry,

Just now I got my new MKR WAN 1310 boards from Arduino Store. I'm stuck in using an external SPI FLASH 2MB.I'm using Marzogh library for accessing SPI FLASH chip, I'm a bit confused in searching for Slave Select pin, I don't know which pin I have to use as Slave Select for accessing SPI flash.

According to schematic FLASH, chip has been connected to PIN PB08 on SAMD21

facchinm commented 4 years ago

Hi @03sarath , you can access the external flash using pin 32 as CS https://github.com/arduino/ArduinoCore-samd/blob/master/variants/mkrwan1300/variant.h#L220 and SPI1 as bus

disk91 commented 1 year ago

You basically need more than this. I've made a custom firmware to be able to deactivate the UART on lorawan modem without having to reset it. https://github.com/disk91/mkr1310_openLoRaModem_fw_update