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

Build documentation #12

Open
sslupsky opened this issue Nov 2, 2018 · 1 comment
Open

Build documentation #12

sslupsky opened this issue Nov 2, 2018 · 1 comment

Comments

@sslupsky
Copy link

sslupsky commented Nov 2, 2018

Is there any documentation on how to build and program the firmware? I would like to address the sleep issue. I've installed Eclipse and did a build all. Everything seemed to compile but I do not know where to go from there. How do I create the fw.h file so I can use the firmware updater sketch?

@facchinm
Copy link
Member

facchinm commented Nov 5, 2018

Hi @sslupsky,
you are right, the instructions to produce the header file are in the Updater sketch
https://github.com/arduino-libraries/MKRWAN/blob/master/examples/MKRWANFWUpdate_standalone/MKRWANFWUpdate_standalone.ino#L9
After compiling the project in Eclipse/Ac6 , navigate to ./Projects/Multi/Applications/LoRa/AT_Slave/SW4STM32/B-L072Z-LRWAN1/mlm32l07x01/Debug/ and then execute the xxd magic to turn the binary into an header file.
If you are testing a lot of firmwares it may be convenient to use https://github.com/arduino-libraries/MKRWAN/blob/master/examples/FWUpdaterBridge/FWUpdaterBridge.ino#L4 and integrate that sketch with your actual project (eg. enter stm32 programming more when you press a button).

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

No branches or pull requests

3 participants