cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4

yatrc_3068666
New Contributor

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

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

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
yatrc_3068666
New Contributor

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