I'm building my first XMOS application. I want to end up with a control application with about 10 I/Os and 7 UARTs, along with an embedded website. My target hardware is a new xCORE-200 eXplorer board until I get software running, then I will be designing an XMOS version of this board:
http://gluelogix.com/TCU.shtml
I started out with a Test.xc and filled that in from "lib_uart-[userguide]_3.1.0rc1.pdf," then Imported lib_uart and lib_gpio. After setting relative paths to uart.h and gpio.h, it compiles. But it does not link, claiming that none of the library objects exist.
Build All Ctl-B does a lot of stuff then shows this:
Code: Select all
13:55:58 **** Incremental Build of configuration Debug for project Test1 ****
xmake CONFIG=Debug all
Checking build modules
No build modules used.
Creating Test1_Debug.xe
../src/Test1.xc: Error: Undefined reference to '__i_uart_rx_if_wait_for_data_and_read' (possible inline definition without external definition)
../src/Test1.xc: Error: Undefined reference to '_i.input_gpio_if.input_gpio_with_events._c0.event_when_pins_eq'
../src/Test1.xc: Error: Undefined reference to '_i.input_gpio_if.input_gpio_with_events._c0.input'
../src/Test1.xc: Error: Undefined reference to '_i.input_gpio_if.input_gpio_with_events._c0.input_and_timestamp'
../src/Test1.xc: Error: Undefined reference to '_i.output_gpio_if.output_gpio.0.output'
../src/Test1.xc: Error: Undefined reference to '_i.output_gpio_if.output_gpio.0.output_and_timestamp'
../src/Test1.xc: Error: Undefined reference to '_i.uart_tx_if.uart_tx.0.write'
../src/Test1.xc: Error: Undefined reference to 'input_gpio_with_events'
../src/Test1.xc: Error: Undefined reference to 'input_gpio_with_events.dynalloc_maxchanends'
../src/Test1.xc: Error: Undefined reference to 'input_gpio_with_events.dynalloc_maxcores'
../src/Test1.xc: Error: Undefined reference to 'input_gpio_with_events.dynalloc_maxtimers'
../src/Test1.xc: Error: Undefined reference to 'input_gpio_with_events.fini'
../src/Test1.xc: Error: Undefined reference to 'input_gpio_with_events.init.0'
../src/Test1.xc: Error: Undefined reference to 'input_gpio_with_events.init.0.savedstate'
../src/Test1.xc: Error: Undefined reference to 'input_gpio_with_events.init.1'
../src/Test1.xc: Error: Undefined reference to 'input_gpio_with_events.select.enable'
../src/Test1.xc: Error: Undefined reference to 'output_gpio'
../src/Test1.xc: Error: Undefined reference to 'output_gpio.dynalloc_maxchanends'
../src/Test1.xc: Error: Undefined reference to 'output_gpio.dynalloc_maxcores'
../src/Test1.xc: Error: Undefined reference to 'output_gpio.dynalloc_maxtimers'
../src/Test1.xc: Error: Undefined reference to 'output_gpio.fini'
../src/Test1.xc: Error: Undefined reference to 'output_gpio.init.0'
../src/Test1.xc: Error: Undefined reference to 'output_gpio.init.0.savedstate'
../src/Test1.xc: Error: Undefined reference to 'output_gpio.init.1'
../src/Test1.xc: Error: Undefined reference to 'uart_rx'
../src/Test1.xc: Error: Undefined reference to 'uart_rx.dynalloc_maxchanends'
../src/Test1.xc: Error: Undefined reference to 'uart_rx.dynalloc_maxcores'
../src/Test1.xc: Error: Undefined reference to 'uart_rx.dynalloc_maxtimers'
../src/Test1.xc: Error: Undefined reference to 'uart_rx.fini'
../src/Test1.xc: Error: Undefined reference to 'uart_rx.init.0'
../src/Test1.xc: Error: Undefined reference to 'uart_rx.init.0.savedstate'
../src/Test1.xc: Error: Undefined reference to 'uart_rx.init.1'
../src/Test1.xc: Error: Undefined reference to 'uart_rx.select.enable'
../src/Test1.xc: Error: Undefined reference to 'uart_tx'
../src/Test1.xc: Error: Undefined reference to 'uart_tx.dynalloc_maxchanends'
../src/Test1.xc: Error: Undefined reference to 'uart_tx.dynalloc_maxcores'
../src/Test1.xc: Error: Undefined reference to 'uart_tx.dynalloc_maxtimers'
../src/Test1.xc: Error: Undefined reference to 'uart_tx.fini'
../src/Test1.xc: Error: Undefined reference to 'uart_tx.init.0'
../src/Test1.xc: Error: Undefined reference to 'uart_tx.init.0.savedstate'
../src/Test1.xc: Error: Undefined reference to 'uart_tx.init.1'
xmake[1]: *** [bin/Debug/Test1_Debug.xe] Error 1
xmake: *** [bin/Debug/Test1_Debug.xe] Error 2
13:56:00 Build Finished (took 2s.144ms)