Guiede for building a simple application using mainly openthread archives.

50 views
Skip to first unread message

scnm

unread,
Feb 17, 2021, 9:38:05 AM2/17/21
to openthread-users
Hello everyone,

I'm developing an application which uses OpenThread, but i want to setup the enviroment in a way which allows me to have my application code outside of the OpenThread repository. Also, i want to use (if possible) the archive-files and the necessary header files only when building my application.

I haven't found a guide which would describe something similar to this, most setup theit project in the openthread/examples/apps folder. But i want to be able to just build the stack to my requirements, copy the archive- and header files to my repository and building my application with them, without the need to refere any source-files from the OpenThread repository in my makefile.

Right now, i'm using a nRF52840-DK for development, but might switch to another OpenThread supported hardware in the future.

Is there already a guide on how to do this or something in a familiar manner? I'm also grateful for any advice.

Thank you and best regards,
Aurelio Schellenbaum

Douglas Ferraz

unread,
Feb 17, 2021, 10:16:13 AM2/17/21
to scnm, openthread-users

Hi Aurelio,

 

Silicon Labs does something similar to what you wish in their OpenThread builds via Simplicity Studio (not the build from OT Github, which builds in the example folders). Although OT files aren’t built as a separate library, there is a specific Makefile for building OT stack, leaving your project’s Makefile lean. Make sure to select the Makefile project generation, not the Eclipse build system.

 

I believe Nordic should have something similar, especially in the context of their integration with Zephyr. In any case you can install SS just to check how they structure the build.

 

Best,

 

Douglas Ferraz

 

--
You received this message because you are subscribed to the Google Groups "openthread-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openthread-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openthread-users/ebce4aab-31ab-4912-b518-29ffb4af49e3n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages