Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directly program Murata module in Arduino MKRWAN1300 #57

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

facchinm
Copy link

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 🙂

The board can be transformed into a native STM32 dev board by flashing MKRWANBridge example in the D21.
All pins/periperals are only wired to the D21 but a simple protocol could allow controlling them from the Murata module.
@GrumpyOldPizza
Copy link
Owner

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 ?

@facchinm
Copy link
Author

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.

@GrumpyOldPizza
Copy link
Owner

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
Copy link
Owner

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

@facchinm
Copy link
Author

facchinm commented May 4, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants