ArduinoCore-nRF528x-mbedos icon indicating copy to clipboard operation
ArduinoCore-nRF528x-mbedos copied to clipboard

Use of KvStore after 1.1.4 don't work

Open Petorrr opened this issue 4 years ago • 3 comments

My application works fine with the 1.1.4 release for the NANO BLE. Updating to 1.1.5 results in a wire compilation error. Then updating to 1.1.6 results in a failing application. The activity on the board indicates a blinking LED_BUILTIN (PIN_LED) (13), 4 slow blinks, then 4 fast blinks. The application I run successfully with the 1.1.4 release doesn't use this LED at all, so it must be some alert or panic indication coming out of the mbed? Digging and debugging a little deeper it appears that the use of the mbed KvStore function call kv_get causes this panic indication on the Led; res = kv_get("/kv/check_valid", KvBuf, sizeof(KvBuf), &actualSize);

Any thoughts?

Petorrr avatar Aug 15 '20 12:08 Petorrr

The meaning of that blink pattern is explained here: https://github.com/arduino/ArduinoCore-nRF528x-mbedos/issues/90#issuecomment-654062552

per1234 avatar Aug 15 '20 12:08 per1234

The meaning of that blink pattern is explained here: #90 (comment)

Thanks and I can confirm it crashes in kv_get. Any thoughts on why the use of the KvStore fails in the 1.1.6 version and not in the 1.1.4 release? I use the KvStore to store parameter values due to the lack of an EEPROM on the Nano BLE boards. KvStore seemed to offer a nice alternative to create a sort of registry of values.

Petorrr avatar Aug 15 '20 14:08 Petorrr

There a few similar issues already open in upstream mbed-os. They are related to the new mandatory SecureStore component dependency.

Someone proposed a fix but I wasn't able to replicate and get it working (at least on an external SPIFBlockDevice).

We will try to track the evolving issues and post updates - and a fix - as soon as they will be available.

manchoz avatar Aug 15 '20 17:08 manchoz