ArduinoCore-stm32l0 icon indicating copy to clipboard operation
ArduinoCore-stm32l0 copied to clipboard

Directly program Murata module in Arduino MKRWAN1300

Open facchinm opened this issue 6 years ago • 5 comments

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:

facchinm avatar Jan 14 '19 14:01 facchinm

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 ?

GrumpyOldPizza avatar Jan 16 '19 16:01 GrumpyOldPizza

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.

facchinm avatar Jan 16 '19 16:01 facchinm

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.

GrumpyOldPizza avatar Jan 16 '19 17:01 GrumpyOldPizza

Got to work on this finally. Need a good source for stm32flash crossbuilds. Is there some good place to pick one up ?

GrumpyOldPizza avatar May 02 '20 12:05 GrumpyOldPizza

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!

facchinm avatar May 04 '20 17:05 facchinm