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
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 70:58:45 |
Calls: | 8,084 |
Calls today: | 2 |
Files: | 13,069 |
Messages: | 5,849,833 |