Hi,
I've successfully tested the sample128 projects included in AN-B-029 and now I'd like to use this profile in the proximity_reporter_ext project, because my goal is to interface the DA14580 with an external CPU.
So I have:
- added the sample128 source files to the proximity_reporter_ext project
- added the profile (#include "sample128.h") to "user_profile_config.h" file
- added "#define BLE_SAMPLE128 1" to sample128.h
- added
#if BLE_SAMPLE128
TASK_SAMPLE128 , // sample 128 profile server
#endif
to "rwip_config.h"
but when I try to build the project I get the following errors
..\..\..\..\..\sdk\platform\arch\main\jump_table.c(160): error: #70: incomplete type is not allowed
uint32_t rwip_heap_env_ret[
WIP_CALC_HEAP_LEN(RWIP_HEAP_ENV_SIZE_JT)] __attribute__((section("heap_env_area"), zero_init));
..\..\..\..\..\sdk\platform\arch\main\jump_table.c(223): error: #44: expression must have pointer type
(const uint32_t*) &rwip_heap_env_ret[0], // 22. rwip_heap_env_pos
..\..\..\..\..\sdk\platform\arch\main\jump_table.c(224): error: #70: incomplete type is not allowed
(const uint32_t*)
WIP_HEAP_ENV_SIZE_JT, / / 23所示。rwip_heap_env_size
..\..\..\..\..\sdk\platform\arch\main\jump_table.c(224): error: #44: expression must have pointer type
(const uint32_t*)
WIP_HEAP_ENV_SIZE_JT, / / 23所示。rwip_heap_env_size
I'm using SDK 5.0.3
Is it possible to use the sample128 profile with the proximity_reporter_ext project? Am I missing some configuration step?
Thanks
Hi vicenzetto,
Yes, it is possible to add the custom profiles in the external implementation, and then you wil have to implement the commands in the host side as well (create database command, enable profile etc), just like the proximity reporter. You will have to add in the sdk_profiles folder the source files of the custom services (custs1.c, custs1_task.c, custom_common.c and attm_db_128.c) then you will have to include the custs1.h file in the user_profiles_config.h. After that you should be ok and you can start creating the application on the host side.
Thanks MT_dialog
Hi vicenzetto, did you manage to solve that errors? I'm with the same problems and I dont know how to solve them.
Hi David,
yes, I solved the problem commenting the following include line
#include "atts.h"
in the file sample128.h
Anyway, at the end I discarded the "sample128" profile and in my application I'm usign the "cust1" profile.
Thank you :)
By the way, what was the reason of discarding sample128? Because I'm also starting to notice that maybe cust1 profile is better adapted to sdk 5.0.3, so perhaps trying to make sample128 profile work is a waste of time...
I started using "sample128" because it was described in the application note "AN-B-029 Developing a Bluetooth Smart custom profile" but then I had the impression that in the latest SDK "sample128" has been deprecated in favor of "custs1" and "custs2".
Furthermore, in this thread Dialog suggested to use "custs1".
Okay, thank you again, I also started with sample128 because of that document, but I think I'll move to custs1.