ArduinoCore-stm32l0
ArduinoCore-stm32l0 copied to clipboard
Directly program Murata module in Arduino MKRWAN1300
This PR adds "Arduino MKRWAN1300" as a native target for STML0.
MKRWANBridge.ino sketch must be flashed only once on the SAMD microcontroller which becomes a sort of serial-to-usb converter with autoreset capabilities. I've temporarily added that example to STM32L0 library, maybe there's a better place.
stm32flash from https://github.com/facchinm/stm32flash is being used as programmer; I hope it's fine, otherwise feel free to change it :slightly_smiling_face:
Sorry to not respond earlier.
What is the value in adding MKRWAN1300 ? On this board CMWX1ZZABZ is just a slave connected via UART (RX/TX plus 2 GPIOs, plus BOOT & RESET).
Would it not be wiser to port over the LoRaWAN class to ArduinoCore-samd and work on a decent protocol between the two chips ?
The idea is to use your porting (thanks, btw) to create the new "firmware" for the ABZ (the current one is branched from ST examples and hosted at https://github.com/arduino/mkrwan1300-fw ). During this process we can decide, why not, to port the stack on D21 and abstract the interaction with the LoRa library via RPC.
Actually for another project I am working on a system like this already. So there is some overlap.
The big issue with SAMD is that there is no callback when a SCI/UART had received data (or sufficient data) from a peer.
Got to work on this finally. Need a good source for stm32flash crossbuilds. Is there some good place to pick one up ?
Hi Thomas, I'm maintaining this fork https://github.com/facchinm/stm32flash (just mainline with a single patch applied for L0x series). Thanks for picking it up!