IoClaudio
unread,Dec 10, 2017, 11:16:01 AM12/10/17You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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