DA14531 Attribute set value

⚠️
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.
3 posts / 0 new
Last post
kombatdavid123
Offline
Last seen:11 months 1 week ago
Joined:2020-03-11 10:12
DA14531 Attribute set value

Hi,

I have a problem related to not being able to find function for setting ATT vale, statring transmission etc. In example projects I found a file custs1_task.c which contains some useful functions for managing packets etc. but all code is greyed out (Keil uVision 5) and becomes white when I change the device folder from DA14531 to DA14585. Are there any similar functions used in DA14531 ?

Thanks for answer.

Device:
PM_Dialog
Offline
Last seen:47 min 39 sec ago
Staff
Joined:2018-02-08 11:03
Hi kombatdavid123,

Hi kombatdavid123,

In case of DA14531, you should exclude the custs1 functions from the ROM if you would like to use the custs1_task.c functions. Please follow the steps below:

1. Navigate to \sdk\common_project_files\misc SDK path and open da14531_symbols.txt in a text editor.

2.寻找__EXCLUDE_ROM_CUSTS1__ __EXCLUDE_ROM_ATTM_DB_128__

3. Comment all the related functions with custs1 :

;custs1.c (controlled by __EXCLUDE_ROM_CUSTS1__) ;0x07f22621 T custs1_prf_itf_get ;custs1_task.c (controlled by __EXCLUDE_ROM_CUSTS1__) ;0x07f226d3 T custs1_init_ccc_values ;0x07f2270b T custs1_set_ccc_value

4. Save and close the da14531_symbols.txt file.

5. Open the “Options for Target” in the Keil IDE.

6. Navigate to “C/C++” tab. Here you can define the preprocessor symbols.

7. Define the preprocessor symbols as below:

__DA14531__ __EXCLUDE_ROM_CUSTS1__

8. Rebuilt your project.

Thanks, PM_Dialog

kombatdavid123
Offline
Last seen:11 months 1 week ago
Joined:2020-03-11 10:12
Thank you very much :)

Thank you very much :)