Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unresolved symbol list downloading a Kernel module

150 views
Skip to first unread message

IoClaudio

unread,
Dec 10, 2017, 11:16:01 AM12/10/17
to
Hi guys,
when I try to download a Downloadable Kernel Module on a target I have this error:
"Unresolved symbol list: _Z12bspLedStateGetj ..."

The problem is the function "bspLedStateGet" that in the code is used in this way:
UINT32 ulStateGet;
bspLedStateGet( BOARD_FAIL_LED, &ulStateGet );

This function is declared in the file "kernel-CWV1908B/cwv1908_32r130/h/bspLed.h" whose path ("kernel-CWV1908B/cwv1908_32r130/h") is included in the Build Properties->Paths of the Workbench project.
When I build the project I have no errors.

The declaration is:
/* Function Prototypes */
STATUS bspLedStateGet( UINT32 ledId, UINT32 *state );

The definition is in a precompiled library of the BSP.

Why downloading the code on the target the linker (I suppose) can't resolve that symbol?
How can I solve this problem?

If in the project I add a file "myTest.c" with a function "myTest" that uses "bspLedStateGet" and I set "myTest" as entry point of the program then this function works correctly. So why in this case the symbol is resolved ?
It seems that sometimes the symbols are resolved and sometimes not.

Thank you

cld

IoClaudio

unread,
Dec 12, 2017, 6:11:53 AM12/12/17
to
I've solved uncommenting these lines in the file bspLed.h:

//#ifdef __cplusplus
//extern "C" {
//#endif

...

//#ifdef __cplusplus
// }
//#endif
0 new messages