Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing data to Flash using Pstorage or fstorage module of nordic #3

Open
DhirajGehlot opened this issue Jan 16, 2018 · 3 comments
Open

Comments

@DhirajGehlot
Copy link

Hello Everyone,

Correct me if I am wrong. According to this link: https://infocenter.nordicsemi.com/index.jsp?topic=/com.nordic.infocenter.s130.sds/dita/softdevices/s130/sd_resource_reqs/hw_block_interrupt_vector.html&cp=3_7_2_0_6_0
if softdevice is enabled, the flash can be written only through SoftDevice API sd_flash_write commands.
https://github.com/d00616/arduino-NVM : This uses writing to flash using registers.
Is it possible to use pstorage or fstoarge implementation in arduino?

@d00616
Copy link
Owner

d00616 commented Jan 16, 2018

Correct me if I am wrong. According to this link: https://infocenter.nordicsemi.com/index.jsp?topic=/com.nordic.infocenter.s130.sds/dita/softdevices/s130/sd_resource_reqs/hw_block_interrupt_vector.html&cp=3_7_2_0_6_0 if softdevice is enabled, the flash can be written only through SoftDevice API sd_flash_write commands.

This is correct.

https://github.com/d00616/arduino-NVM : This uses writing to flash using registers.

This is correct. Pull Requests changing this are welcome. I use the NRF MCUs without a SoftDevice.

Is it possible to use pstorage or fstoarge implementation in arduino?

This depends on the capabilities of the arduino port. I think the best chance is using the offical Arduino Primo code, which includes the Nordic SDK.

@DhirajGehlot
Copy link
Author

@d00616
Copy link
Owner

d00616 commented Jan 22, 2018

I have never used the fstorage. It looks like it doe's simliar like the flash implementation. I think it's possible to implement an additional flash API supporting the fstorage.

Pull Requests are welcome :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants