Hi Sebastian,
Thanks a lot for your answer and you help.
Is the privacy flag (gAppUsePrivacy_d) enabled?
-> no, i try with, same result no pop up for pairing
Is the NVM flag (gAppUseNvm_d) enabled?
-> Yes, as OTAP feature as been merged into my HRS project. I have to first flash otap firmware, then flash my application based on hrs into the memory.
Is it possible to have a conflict of access to tha nvram because of the otap function?
When i run latest hrs project it works fine. So I used Winmerge to compare the two project.
in app_preinclude.h, i see some difference that i tried to change without success yet:
I'm using powerDowm mode to 1 to sleep between advertising if no central scan.
Here in hrs :
/* Defines pools by block size and number of blocks. Must be aligned to 4 bytes.*/
#define AppPoolsDetails_c \
_block_size_ 32 _number_of_blocks_ 6 _eol_ \
_block_size_ 64 _number_of_blocks_ 3 _eol_ \
_block_size_ 128 _number_of_blocks_ 10 _eol_ \
_block_size_ 512 _number_of_blocks_ 10 _eol_
also :
/* Defines total heap size used by the OS */
#define gTotalHeapSize_c 8000
and in mine :
/* Defines pools by block size and number of blocks. Must be aligned to 4 bytes.*/
#define AppPoolsDetails_c \
_block_size_ 32 _number_of_blocks_ 8 _eol_ \
_block_size_ 64 _number_of_blocks_ 5 _eol_ \
_block_size_ 128 _number_of_blocks_ 4 _eol_ \
_block_size_ 512 _number_of_blocks_ 10 _eol_
/* Defines total heap size used by the OS */
#define gTotalHeapSize_c 8500 //8000
in the MKW41...connectivity.ld there is also some diference
in HRS :
gUseBootloaderLink_d = DEFINED(gUseBootloaderLink_d) ? gUseBootloaderLink_d : 0;
*/
/* By default, the NVM is not used. */
gUseNVMLink_d = DEFINED(gUseNVMLink_d) ? gUseNVMLink_d : 1;
in my code
gUseBootloaderLink_d = DEFINED(gUseBootloaderLink_d) ? gUseBootloaderLink_d : 1;
*/
/* By default, the NVM is not used. */
gUseNVMLink_d = DEFINED(gUseNVMLink_d) ? gUseNVMLink_d : 0;
But it is may be normal as i'm using otap.
I ran in debug mode step by step my program, and in ble_con_manager, i reach gConEvtConnected_c but never ParamRequest or EvtPairingRequest... so i guess that's normal i never see on smartphone the pop up to enter 6 digit code.