Still no joy with getting the snippet to link. (or map even), no reply from XMOS yet too. I did send them a request for help via the XMOS web site a few days ago. :roll:
The mapper seems to be lacking a directive of some sort to tell it which device to map/link for. The error suggests that the path is incorrect or not present, which is clearly not the case from the output below. I modified the makefile to printout everything that was needed including the variable that the mapper claims wasn't set, and listed the files that were in the path from the variable that clearly was set.
I can only guess that I need to include some directive or other in the asm file/s as the trace also shows that there is no mapper option to set the required platform. Unless the -h option to the mapper doesn't show it. Nothing in any of the docs you guys have so helpfully suggested either.
Code: Select all
fingers@quicksilver:~/Data/Common/development/G4th$ make binary
XCC_DEVICE_PATH is set to :~/applications/XMOS/DesktopTools/XDE/configs
ls -al ~/applications/XMOS/DesktopTools/XDE/configs
total 236
drwxr-xr-x 2 fingers fingers 4096 2009-12-12 22:21 .
drwxr-xr-x 15 fingers fingers 4096 2010-01-05 16:36 ..
-rwxr-xr-x 1 fingers fingers 872 2009-12-12 22:21 config_default_XS1-B.xml
-rwxr-xr-x 1 fingers fingers 224 2009-12-12 22:21 config_index
-rwxr-xr-x 1 fingers fingers 1240 2009-12-12 22:21 config_XS1-G2B-FB144.xml
-rwxr-xr-x 1 fingers fingers 2552 2009-12-12 22:21 config_XS1-G4A-FB144.xml
-rwxr-xr-x 1 fingers fingers 2552 2009-12-12 22:21 config_XS1-G4A-FB512.xml
-rwxr-xr-x 1 fingers fingers 2552 2009-12-12 22:21 config_XS1-G4B-FB144.xml
-rwxr-xr-x 1 fingers fingers 2559 2009-12-12 22:21 config_XS1-G4B-FB512.xml
-rwxr-xr-x 1 fingers fingers 869 2009-12-12 22:21 config_XS1-L1A-LQ64.xml
-rwxr-xr-x 1 fingers fingers 869 2009-12-12 22:21 config_XS1-L1A-TQ128.xml
-rwxr-xr-x 1 fingers fingers 873 2009-12-12 22:21 config_XS1-L2A-QF124.xml
-rwxr-xr-x 1 fingers fingers 2019 2009-12-12 22:21 XC-1A.xn
-rwxr-xr-x 1 fingers fingers 1276 2009-12-12 22:21 XC-1.xn
-rwxr-xr-x 1 fingers fingers 2739 2009-12-12 22:21 XC-2.xn
-rwxr-xr-x 1 fingers fingers 3493 2009-12-12 22:21 XC-3.xn
-rwxr-xr-x 1 fingers fingers 1850 2009-12-12 22:21 XC-5.xn
-rwxr-xr-x 1 fingers fingers 4932 2009-12-12 22:21 XDK.xn
-rwxr-xr-x 1 fingers fingers 1551 2009-12-12 22:21 XK-1.xn
-rwxr-xr-x 1 fingers fingers 23946 2009-12-12 22:21 XS1-G2B-FB144.pkg
-rwxr-xr-x 1 fingers fingers 668 2009-12-12 22:21 XS1-G2B-FB144.xn
-rwxr-xr-x 1 fingers fingers 23946 2009-12-12 22:21 XS1-G4A-FB144.pkg
-rwxr-xr-x 1 fingers fingers 764 2009-12-12 22:21 XS1-G4A-FB144.xn
-rwxr-xr-x 1 fingers fingers 635 2009-12-12 22:21 XS1-G4A-FB512.xn
-rwxr-xr-x 1 fingers fingers 23946 2009-12-12 22:21 XS1-G4B-FB144.pkg
-rwxr-xr-x 1 fingers fingers 764 2009-12-12 22:21 XS1-G4B-FB144.xn
-rwxr-xr-x 1 fingers fingers 635 2009-12-12 22:21 XS1-G4B-FB512.xn
-rwxr-xr-x 1 fingers fingers 10142 2009-12-12 22:21 XS1-L1A-LQ64.pkg
-rwxr-xr-x 1 fingers fingers 618 2009-12-12 22:21 XS1-L1A-LQ64.xn
-rwxr-xr-x 1 fingers fingers 15584 2009-12-12 22:21 XS1-L1A-TQ128.pkg
-rwxr-xr-x 1 fingers fingers 620 2009-12-12 22:21 XS1-L1A-TQ128.xn
-rwxr-xr-x 1 fingers fingers 23134 2009-12-12 22:21 XS1-L2A-QF124.pkg
-rwxr-xr-x 1 fingers fingers 1364 2009-12-12 22:21 XS1-L2A-QF124.xn
xmap -h
XMOS mapper
Usage: xmap [options] file...
Options:
-h, --help Display this message
-o FILE Set output file name
--first FILE Place the specified file at the start of the input file list
--last FILE Place the specified file at the end of the input file list
--defsymbol SYM=VAL Define a symbol SYM with value VAL
-r, -i, --relocatable Generate a relocatable object file
-g Generate debugging information
-Werror Treat warnings as errors
-Wcodes Report error code numbers
-s --strip-all Discard all symbols
-x --discard-all Discard all local symbols
-X --discard-locals Discard temporary local symbols
-l LIB, -lLIB Link with the specified library
-L LIBPATH, -LLIBPATH Adds the specified path to the library search path
-save-temps Do not delete intermediate files
--discard-none Do not discard any local symbols
--image-base VALUE Use VALUE as the base address
--image-size VALUE Use VALUE as the address range size
--ass-image-base VALUE Use VALUE as the base address for simulator assertion code
--noconstmerge No not merge mergeable const sections
--show-report Show constraints report even when it passes
--version Print version information
--report Reports information about resource usage
--report-name NAME Restricts reporting to functions with the given name
--report-callees Expands reporting to callees of specified functions
--retain Retain unreferenced objects
--bootable Produce a bootable XB file (default is XE)
--fulltypes Report full type information in error messages
-march=[xs1a|xs1b] Specify the target architecture
--bootstyle=<style> Build multi-node XE with the special boot style: forsim or codegoblin(default)
--map FILE Output a mapfile (even if final constraint checking fails).
--wnoX Suppress warning outout for warning number X.
For bug reporting instructions, please see:
http://www.xmos.com/support
xmap G4th.o -save-temps --report --bootable -march=xs1b -o G4th.xb
xmap: Warning: No platform specified; using default (XS1-G4B-FB512). This behavior is deprecated.
xmap: Error: Cannot location default platform xn because XCC_DEVICE_PATH is not set.
make: *** [G4th.xb] Error 1
fingers@quicksilver:~/Data/Common/development/G4th$