I tried to build binary test lib. So I followed the instructions on
https://www.xmos.com/download/xTIMEcomp ... (14.x).pdf
Chapter: 12 Using XMOS Makefiles to create binary libraries
When I now try to use this lib on a XEF232 CPU, this error code would be displayed.
xmap: Error: Target core mismatch between "XS2" (from "ctype_.c") and "XS1" (from "../src/testlib.xc").
This means that the lib has been compiled for XS1, if I understand it correctly.
Is there something I missed in the Makefile?
testlib is just a clone from
https://github.com/xcore/sc_lib_example
Makefile:
Code: Select all
XMOS_MAKE_PATH ?= ../..
include $(XMOS_MAKE_PATH)/xcommon/module_xcommon/build/Makefile.library
Code: Select all
LIBRARY=testlib
MODULE_XCC_FLAGS = -O3
EXPORT_SOURCE_DIRS = include
A big thanks in advance
Sebastian