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

Value of PSTORAGE_MAX_APPLICATIONS

I am using the ble_app_template, together with one timer called every second. The timeout handler of the timer just prints a short string on the serial port using simple_uart and toggles an LED. Now I try to get pstorage running. First I just called the pstorage_init() function with the result, that the LED continues blinking, but the uart stops sending.

After a lot of debugging, I found, that a value of PSTORAGE_MAX_APPLICATIONS = 1 works, but the problem occurs with a value of 2. My binary without S110 has 48 kbyte, my hardware has 256 kB flash. Where is the problem to set more than one pstorage application?

Environment :

BLE Nano Board with NordicSemi nRF51822-QFAA

Softdevice S110 7.1.0

GCC 4.8

SDK 6.1.0 
Parents
  • Since the LED continues to blink it sounds like the timer interrupt is occurring. Could you provide a little more information? Here are a few things that may help diagnose the problem:

    1. Can you provide some of the source code?
    2. Can you make sure you check the return value of any of the Nordic functions. Are they all "NRF_SUCCESS"?
    3. Have you used a debugger to verify if the UART calls are or are not happening? If so, what did you see?
Reply
  • Since the LED continues to blink it sounds like the timer interrupt is occurring. Could you provide a little more information? Here are a few things that may help diagnose the problem:

    1. Can you provide some of the source code?
    2. Can you make sure you check the return value of any of the Nordic functions. Are they all "NRF_SUCCESS"?
    3. Have you used a debugger to verify if the UART calls are or are not happening? If so, what did you see?
Children
No Data
Related