This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

change peer_manager to device_manager for ble_app_proximity

I can't build ble_app_proximity_pca10040 example due to uv5 core size limit. One user suggested that I port the old device_manager to SDK 12 proximity example to reduce core size.

I replaced peer_manager.h with device_manager.h and corresponding function calls in main.c. I also copied the entire device_manager into ..sdk12/components/ble directory.

uv5 can't locate device_manager.h file from main.c. Is there a place in the project where I can update to bring in the needed header file ?

Is this idea do-able at all ?

Please help. Thanks

  • I strongly advise against replacing the Peer Manager with the older Device Manager. The Peer Manager replaces Device Manager and contain major improvements, please see this Infocenter page.

    If the issue is that you're unable to build the ble_app_proximity example for the PCA100040 due to the 32kB code size limit in Keil uVison, then I suggest that you look into using GCC.

    We have a tutorial explaing how to set up the Gcc toolchain and the Eclipse IDE, please see Development with GCC and Eclipse. You can also use Segger Embedded Studio with GCC, please see this blog.

    -Bjørn

Related