10 years, 1 month ago.

Library does not compile. Error: Undefined symbol pc (referred from SNIC_Core.cpp.LPC1768.o).

Anything I am missing? Simply compiling this on its own brings this error.

Question relating to:

SNIC UART Interface library: Serial to Wi-Fi library for Murata TypeYD Wi-Fi module. For more information about TypeYD: http://www.murata.co.jp/products/microwave/module/lbwb1zzydz/index.html

SNICInterface library requires a definition of "Serial pc" for debug log output. I committed main.cpp of a SNIC-xively-jumpstart-demo project(Revision 27:6949291ca38d). Please refer latest version of a SNIC-xively-jumpstart-demo project.

posted by Takao Kishino 25 Nov 2014

1 Answer

10 years, 1 month ago.

The library expects to be imported into a project which defines a "Serial pc(USBTX, USBRX)" object that it then sends debug messages to. You can see the debug macros which use the pc object in this code.

You shouldn't be building the library on its own but as a project which instantiates and uses the objects that it defines, like

Import programSNIC-xively-jumpstart-demo

Demo application of SNICInterface library for Murata TypeYD, which reports sensor data periodically to Xively cloud server . Hardware platform: mbed application board (https://mbed.org/cookbook/mbed-application-board), mbed LPC1768 (https://mbed.org/platforms/mbed-LPC1768/) and TypeYD.

I hope that helps,

Adam

Accepted Answer

SNICInterface library requires a definition of "Serial pc" for debug log output. I committed main.cpp of a SNIC-xively-jumpstart-demo project(Revision 27:6949291ca38d). Please refer latest version of a SNIC-xively-jumpstart-demo project.

posted by Takao Kishino 25 Nov 2014