Undefined reference to &att_decl_char in Training 03

⚠️
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.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
BlueSDK18
Offline
Last seen:3 years 1 month ago
加入:2018-02-13 11:25
Undefined reference to &att_decl_char in Training 03

Hi all,

当doing BLE training 03 of custom profile gatt example, step 13, after building the project
the Keil compiler complains about 'undefined' reference to &att_decl_char?
Where does this declaration come from??
Couldn't find any reference in the project.
我怎样才能解决这个问题呢?
And is there a full example available to have a central device getting notified by the peripheral
device of a button state?

Any help I will appreciate!

MV

Device:
MT_dialog
Offline
Last seen:2 months 6 days ago
工作人员
加入:2015-06-08 11:34
Hi BlueSDK18,

Hi BlueSDK18,

Be aware that the tutorials are created using an older SDK (5.0.3) and the latest SDK version that you should be working with is the 5.0.4. There are minor changes in the custom profile implementation between the two SDKs but in the end they are quite the same (most of the changes are file names and organization of the SDK). So regarding the variable that you have requested should be located in the user_custs1_def.c file in SDK 5.0.4 or in the user_custs_config.h file in the 5.0.3 and holds the tag of the characteristic declaration. Regarding the full example that you have requested, yes there is a full example included in the SDK where you can connect from a BLE generic application to the 580 peripheral, enable the notifications and have the peripheral report dummy values, there is also a place holder for a notifyable characteristic (called button status) where you can notify the central for for the status of the button.

Thanks MT_dialog

BlueSDK18
Offline
Last seen:3 years 1 month ago
加入:2018-02-13 11:25
Hello MT_dialog,

Hello MT_dialog,

Thanks for your answer! Is this example the ble_app_peripheral project?
I think yes.

MT_dialog
Offline
Last seen:2 months 6 days ago
工作人员
加入:2015-06-08 11:34
Hi BlueSDK18,

Hi BlueSDK18,

You mean if the project base of the "Building Custom Profiles" tutorial is the SDK 5.0.3 ble_app_peripheral ? Yes, this is also mentioned in the page of the tutorial.

Thanks MT_dialog