Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
deroo
Nano33BLE-flash
Commits
e6ab7025
Commit
e6ab7025
authored
Jul 27, 2020
by
deroo
Browse files
Update README.md
parent
7623d972
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
e6ab7025
...
...
@@ -3,12 +3,12 @@
Functions and constants for declaring arrays in the flash memory
of an Arduino Nano 33 BLE and Arduino Nano 33 BLE Sense.
The Nano 33 BLE uses a nRF52840 microcontroller chip
The Flash on the nRF52840 has 256 pages of 1024 words, each word is 4 bytes.
Each page is individually erasable; each word is individually writable.
The Nano 33 BLE uses a nRF52840 microcontroller chip
.
The Flash on the nRF52840 has 256 pages of 1024 words, each word is 4 bytes.
Each page is individually erasable; each word is individually writable.
This library defines 2 functions:
int flashErasePage(byte page);
<mono>
int flashErasePage(byte page);
</mono>
void flashMode(_flashModeEnum mode);
where mode is one of
FLASH_READONLY
...
...
@@ -25,7 +25,9 @@ This code is most useful for implementing non-volatile arrays,
particularly when the datatype is of the size of a flash word or larger
(eg. int, long, float, double).
Arrays of datatypes smaller than a flash word (eg. char, byte, short)
are awkward to implement, but doable.
are awkward to implement, but doable.
The issue is that the nature of flash memory is such that each word
is writable essentially once after each erase.
Write data to a flash array with this motif:
flashMode(FLASH_WRITE);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment