GithubHelp home page GithubHelp logo

d00616 / arduino-nvm Goto Github PK

View Code? Open in Web Editor NEW
25.0 4.0 4.0 36 KB

Direct flash memory access, round robin virtual pages and EEPROM like memory.

License: GNU Lesser General Public License v2.1

C++ 96.57% C 3.43%
arduino-library nrf51822 nrf52832 eeprom nvram

arduino-nvm's People

Contributors

d00616 avatar per1234 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

arduino-nvm's Issues

Tests bricked my Nano 33 BLE

I couldn't get this to work in another project (like, yes, it does actually complain about unknown/incompatible architecture but you'd guess that's just because of the different defines) and so I decided to try the tests.
Expectedly everything died.

Now I don't really know how much this project is still cared for (it's funny to think the last time the main branch was touched, this board wasn't even a thing), but if not a code fix or adding official support, I believe at least a warning would be due.

Data write not persisting

Hi I am having trouble getting data I write to stay as each time I try to read it back after restarting its not there anymore.

  char* testword_in;
  char* testword = "TestWord";

  //  NVRAM.write_block((uint8_t *)&testword, 0, sizeof(testword));
  NVRAM.read_block((uint8_t *)&testword_in, 0, sizeof(testword));
  print_compare((uint32_t)testword, (uint32_t)testword_in);

This is what I am using to test. I will uncomment the write line and run the code. It will return "OK" but then I comment out the write line and test it again and it fails and returns "ERROR".

II am testing this on a NRF51822. Is there something I am doing wrong here?

Writing data to Flash using Pstorage or fstorage module of nordic

Hello Everyone,

Correct me if I am wrong. According to this link: http://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?

Read/write simple example

Hello,

I just want to do the following:

Before I power off device save to a variable let's say value 0x69

Once the device wakes up I want to read the exact same address and read the content to modify it.

How can I do it?

I don't understand any of the examples.. what are the pages?

Any help would be appreciated.

Toni

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.