CyBle_StoreAppData always return INVALID_PARAMETER

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
yatrc_3068666
Level 1
Level 1

Hi,

i am using a PRoCBLE 222014-01. I want to store sensor data in flash.

i am using the CyBle_StoreAppData function but the apiResult always return CYBLE_ERROR_INVALID_PARAMETER.

i have checked the old topics on this subject.

my project is running with a IMO clock at 6MHz.

is there something special to do to use this function?

regards,

Yann.

0 Likes
1 Solution
GyanC_36
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hello yann.treguer_3068666 ,

   Please make sure that the 'srcBuff' and 'destAddr' are not pointing to a NULL, otherwise the API will through the CYBLE_ERROR_INVALID_PARAMETER error code.

Note: The Flash write APIs are blocking and you also need to make sure that you are processing the BLE events periodically at least once in a connection interval.

-Gyan

View solution in original post

0 Likes
2 Replies
GyanC_36
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hello yann.treguer_3068666 ,

   Please make sure that the 'srcBuff' and 'destAddr' are not pointing to a NULL, otherwise the API will through the CYBLE_ERROR_INVALID_PARAMETER error code.

Note: The Flash write APIs are blocking and you also need to make sure that you are processing the BLE events periodically at least once in a connection interval.

-Gyan

0 Likes

Hello Gyan,

thanks for your answer. I found since a couple of hours that i missed to initialized the const uint8 destAddr.

since i added "={0}, it seems to work.

i'm going to continue my test.

Yann.

0 Likes