This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

PSTORAGE_MAX_APPLICATIONS

Hi Nordic, I am adding pstorage capability to ble_app_proximity example. Before adding pstorage, the example could receive Immediate Alert from a central and set on/off to a led. As referring to ble_app_template_with_pstorage_operations, I added pstorage functions to the example. The result was that pstorage_register() retuned NRF_ERROR_INVALID_PARAM. So I modified PSTORAGE_MAX_APPLICATIONS definition in pstorage_platform.h from 1 to 2. pstorage_register() returns no error, but Immediate Alert event cannot be received. Why does the modification of PSTORAGE_MAX_APPLICATIONS have a influence to Immediate Alert Service? It looks like that ble event does't occurs periodically after the modification. Please let me know the workaround. Thanks.

Parents
  • There is no direct link with the pstorage_register function with Alert event. Anyhow it seems that the pstorage_register function now succeeded after your change but after the program moved ahead there are some other failures in your code. It is difficult to say what it is without debugging. Did you verify that your program is running normally and still there are problems with Immediate Alert events?

  • Thank you very much for following my problem. My problem seems not to be related with pstorage. I modified ble_proximity example and uploaded it to a custom board with nrf51822. It's Immediate Alert service works well sometimes, and it doesn't work sometimes. In latter case, thought I sent Alert Level (0x01 or 0x02) from nRF master control to the board, a LED wasn't on. The modification is to change GPIO numbers for LEDs. The program is compiled by Keil. I am not sure why it doesn't work sometimes, but it looks like that Alert Level is filtered inside Soft Device because of something like bonding connection. I would appreciate having your advice and suggestion. Bests.

Reply
  • Thank you very much for following my problem. My problem seems not to be related with pstorage. I modified ble_proximity example and uploaded it to a custom board with nrf51822. It's Immediate Alert service works well sometimes, and it doesn't work sometimes. In latter case, thought I sent Alert Level (0x01 or 0x02) from nRF master control to the board, a LED wasn't on. The modification is to change GPIO numbers for LEDs. The program is compiled by Keil. I am not sure why it doesn't work sometimes, but it looks like that Alert Level is filtered inside Soft Device because of something like bonding connection. I would appreciate having your advice and suggestion. Bests.

Children
No Data
Related