KW36, using eeprom in HRS demo, can not send notifications

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KW36, using eeprom in HRS demo, can not send notifications

1,215 Views
jictannu
Contributor III

Here is my configuration:

app_preinclude.h:

#define gAppUseNvm_d 1

...

#if gAppUseNvm_d
/* configure NVM module */
#define gNvStorageIncluded_d (1)
#define gNvFragmentation_Enabled_d (1)
#define gNvUseFlexNVM_d (1)
#if gNvUseFlexNVM_d
#define gUnmirroredFeatureSet_d (0)
#else
#define gUnmirroredFeatureSet_d (1)
#endif
#define gNvRecordsCopiedBufferSize_c (128)
#endif

NV_Flash.c:

#define gEEPROM_DATA_SET_SIZE_CODE_c    (0x33U)
//#define gEEPROM_DATA_SET_SIZE_CODE_c    (0x39U)

/*
 * Name: gFLEXNVM_PARTITION_CODE_c
 * Description: FlexNVM partition code
 */
#define gFLEXNVM_PARTITION_CODE_c       (0x3U)

 memory:

jictannu_0-1620374937467.png

sdk:

jictannu_1-1620374976135.png

When I enable battert level notification, Gap_CheckNotificationStatus returns gDevDbCccdNotFound_c, so it can not send notifications.

Labels (1)
0 Kudos
3 Replies

1,214 Views
jictannu
Contributor III
 

jictannu_0-1620378485620.png

handleCccd is 27, I can found it in static_gattDatabase:

jictannu_1-1620378559908.png

if I set  gAppUseNvm_d  to 0, Gap_CheckNotificationStatus returns 0.

0 Kudos

1,122 Views
Ricardo_Zamora
NXP TechSupport
NXP TechSupport

Hi,

 

Hope you are doing well. First of all, I would recommend to check your memory Locations and Sizes. For this you can refer to section 4.6.1.1 of the Reference Manual (pages 135-138).

 

We have made the following test:

First, using the flexnvm example, with gEEPROM_DATA_SET_SIZE_CODE_c (0x33U) and gFLEXNVM_PARTITION_CODE_c (0x3U).

And then, running the HRS example, with the following memory configuration:

Settings.png

And we were able to get the Notification Status correctly:

HRS.png

 

So you need to check your memory settings and also I would recommend to use the newest SDK version.

 

Regards,

Ricardo

1,115 Views
jictannu
Contributor III

Hi, Ricardo

Thank you very much for your reply! Now after I initialize eeprom, I don't use it and no problem occurs. But if I write data to the eeprom (starting from 0x14000000), I get this problem. I see that SDK seems to use NVM_RegisterDataSet to save cccd data, I wonder if it will conflict with my eeprom use here?

0 Kudos