- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
These functions are found in the time.h that comes with the SDK. Projects can #include time.h & make calls to these functions without errors from the compiler. The linker seems unable to find these functions as if they've been declared but not somewhere in code. Any ideas where I might find these functions in the SDK?
Solved! Go to Solution.
- Labels:
-
SDK 2.X
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Paul,
1. Yes you do have the correct make file
2. libc cannot be added because it has other dependencies that would not have fit in the ROM/RAM
3. You will need to find alternative methods to implement the functions that you need in time.h.
Hope this helps.
Sincerely,
JT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is this related to the question you asked here: Current Time Service
If so, please update that thread and we will try to address with the developers this week when we meet with them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
not really, it's possible for a project to have a rtc element, a desire to use time.h & not be a project that provides the Current Time Service
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not all standard library functions are available in the chip (because they would not have fit in the limited ROM and RAM available in the chip). You could try adding specific libraries to you application, add something like this to your makefile.mk:
EXTRA_LD_FLAGS += -lgcc
or say:
EXTRA_LD_FLAGS += -lm
but I suspect not all libraries can be added. Time functions are a part of the standard library (libc.a), and these are not fully implemented on this platform. BLE Time service is recommended instead, see Apps/watch sample application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Tried adding either of those lines to the makefile.mk found within my App/project Directory & both cause linking errors. Do I have the right makefile? Are there other changes I should make?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Paul,
1. Yes you do have the correct make file
2. libc cannot be added because it has other dependencies that would not have fit in the ROM/RAM
3. You will need to find alternative methods to implement the functions that you need in time.h.
Hope this helps.
Sincerely,
JT