Error while doing tutorial 3

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
michael12344
Offline
Last seen:1 year 11 months ago
加入:2019-01-29 23:17
Error while doing tutorial 3

Hi,

I am currently going through tutorial 3. I am receiving the error below when I do step 13. Is there something I am missing in the tutorial because I looked for the att_decl_cfg and att_decl_user_desc and I could not find either.

..\src\custom_profile\user_custs1_def.c(304): error: #20: identifier "att_decl_cfg" is undefined
[CUST1_IDX_LONG_VALUE_NTF_CFG]={(uint8_t*)&att_decl_cfg,ATT_UUID_16_LEN,PERM(RD,ENABLE)|PERM(WR,ENABLE),sizeof(uint16_t),0,NULL},

..\src\custom_profile\user_custs1_def.c(306): error: #20: identifier "att_decl_user_desc" is undefined
[CUST1_IDX_LONG_VALUE_USER_DESC]={(uint8_t*)&att_decl_user_desc,ATT_UUID_16_LEN,PERM(RD,ENABLE),sizeof(CUST1_LONG_VALUE_CHAR_USER_DESC)-1,sizeof(CUST1_LONG_VALUE_CHAR_USER_DESC)-1, CUST1_LONG_VALUE_CHAR_USER_DESC},

谢谢You.

Device:
PM_Dialog
Offline
Last seen:3 days 3 hours ago
工作人员
加入:2018-02-08 11:03
Hi michael12344,

Hi michael12344,

Could you please indicate which version of SDK you are using? I would strongly recommend you to use our latest SDK which is version 6.0.10. This tutorial probably is based to previous version of SKD. Please check the bla_app_peripheral example of SDK6.0.10 ang you will see that there are some modification regarding the definition of the characteristics. For example the long value characteristic is defined as follow (in user_custs1_def.c file):

// Long Value Characteristic User Description

[SVC1_IDX_LONG_VALUE_USER_DESC] = {(uint8_t*)&att_desc_user_desc, ATT_UUID_16_LEN, PERM(RD, ENABLE), sizeof(DEF_SVC1_LONG_VALUE_CHAR_USER_DESC) - 1, sizeof(DEF_SVC1_LONG_VALUE_CHAR_USER_DESC) - 1, DEF_SVC1_LONG_VALUE_CHAR_USER_DESC},

谢谢s, PM_Dialog

michael12344
Offline
Last seen:1 year 11 months ago
加入:2019-01-29 23:17
Hi,

Hi,

I am currently using the SDK version 6.0.10. The tutorial list SDK versions 5.0.x and versions 6.0.x.

https://support.dialog-semiconductor.com/resource/tutorial-3-custom-prof...

PM_Dialog
Offline
Last seen:3 days 3 hours ago
工作人员
加入:2018-02-08 11:03
Hi michael12344,

Hi michael12344,

The guidelines that I had provided you in my previous post are based on the top of SDK6.0.10. Could you please let me know if you have any other issues?

谢谢,PM_DIalog