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

Pstorage with S210 softdevice

Hi Nordic!

Long time short, I want to do an ANT application (S210, nRF51422) that pairs two slaves to one master. I have configured everything such that it pairs only when the master is close to the slaves. Now, I want that, when I send a determined message to the slaves, they save that channel ID information in some non-volatile memory (flash).

I am trying to do this using the driver pstorage, but I am having a lot of troubles to set it up. I have seen that other people (devzone.nordicsemi.com/.../) have had the same problem, but still am not able to solve the problem.

The kind of errors I am getting, are the same that the guy from that question I referenced had:

ble.h missing, but when I solve it I get more different errors.

Is there any easy way of doing this? Has anyone tried to do this as well? I would appreciate if someone had an example of writing in flash using S210 softdevice.

Thanks a lot!

Parents
  • Hi again! Thanks for fast reply!

    When I installed SDK v12.1, my keil had examples related to ant (if this behavior is not common, maybe I did something before, but I certainly dont think so). Nevermind, I will install SDK 10.0.

    It would be nice if you could put a minimal example of how to write to and read from non-volatile memory using this sd_flash_write(). Would really appreciate it.

    Thanks!

Reply
  • Hi again! Thanks for fast reply!

    When I installed SDK v12.1, my keil had examples related to ant (if this behavior is not common, maybe I did something before, but I certainly dont think so). Nevermind, I will install SDK 10.0.

    It would be nice if you could put a minimal example of how to write to and read from non-volatile memory using this sd_flash_write(). Would really appreciate it.

    Thanks!

Children
No Data
Related