Save data on Nucleo F334R8 when powered by battery

Hello Johnny K,

I tried using Flash IAP which has a pretty understandable documentation. For this reason I tried compiling a code mentioned in How can I provision a persistent array of int in flash memory and access it as an array of int from mbed C++? - #2 by hudakz by hudakz-Zoltan Hudak but I get an Error: Identifier “FlashIAP” is undefined in “main.cpp”, Line: 4, Col: 2 . This is an error on simply defining an instance of the class FlashIAP although FlashIAP is part of the official embed library. I did not find a solution for this in any forum post.

For this reason I will start using KVStore. Do you have any example code about how to start with saving simple data like arrays in Flash memory with KVStore?
KVStore documentation is not so understandable to a beginner like me.

Best regards.