Page 1 of 1

Using-XMOS-makefiles-to-create-binary-libraries

Posted: Wed Feb 28, 2018 1:21 pm
by dengzicheng
I want to use XMOS makefiles to create binary libraries.I refer to the following case.
https://github.com/xcore/sc_lib_example

But I do not know how to compile this program.How can I generate a library file and how do I call it.
I refer to the following documents, but the description is too simple, I failed.
https://www.xmos.com/download/private/U ... 54A%29.pdf
Who can give me some advices?Thank you!!

Re: Using-XMOS-makefiles-to-create-binary-libraries

Posted: Wed Feb 28, 2018 11:50 pm
by mon2
Hi.

For your example, goto Github -> select the green button to Clone or Download (top right side of the page).

Image

1) Launch xtimecomposer tool -> start with a fresh workspace for this testing

2) File -> New -> xtimecomposer project -> select a target kit or checkbox for Show Devices in target selection (so you can select the exact XMOS CPU) -> enter a project name

3) File -> Import -> archive file -> browse -> select the github download from above which is a .zip file

4) Finish.

5) Project -> Clean -> Build project.

Here is the result we see after following the above procedure:

the .xe file is the binary file used by xtimecomposer / xflash tools to reflash the code for your XMOS CPU



Image

Re: Using-XMOS-makefiles-to-create-binary-libraries

Posted: Thu Mar 01, 2018 6:59 am
by dengzicheng
Thank you for your reply!It gave me a lot of help and now I have solved it.Thank you very much!