Useful library for reading/writing to non-volatile flash on the Due | Arduino Compatible Compiler for LabVIEW Discussions | Forum


Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 4 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Useful library for reading/writing to non-volatile flash on the Due
August 16, 2016
3:59 pm
Forum Posts: 28
Member Since:
April 17, 2016
sp_UserOfflineSmall Offline

The Arduino Due offers a powerful ARM processor (32 bit, 84MHz) and 512kB of flash for big programs, but it has no EEPROM.  If you need persistent storage that can be programmatically updated in the field, this can be a problem.

Fortunately a library was developed by a clever user that allows writing and reading to the Due's flash (see  With Steffan's immense help (see I've ported this to subVIs that are really easy to use.

The ported library is available at  

Its two subVIs are simply "" and "".  You specify an address; the compiler automatically offsets this into uncommitted storage so there is no risk of touching your sketch's space.  So, an address of 0 represents the first byte of flash after your sketch's space.

There is also a demonstration VI, "dueFlashStorage", which runs a loop that writes the iteration number to flash, reads it back, and blinks an onboard LED that number of times.  

I hope this is useful to others in the community.  

August 17, 2016
9:12 pm
Forum Posts: 33
Member Since:
May 11, 2016
sp_UserOfflineSmall Offline

Amazing Scott!


thanks you very much

Forum Timezone: UTC 0

Most Users Ever Online: 33

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

John: 18


Dan6077: 11

Member Stats:

Guest Posters: 0

Members: 80

Moderators: 0

Admins: 3

Forum Stats:

Groups: 1

Forums: 2

Topics: 58

Posts: 289

Newest Members: Geraldkix, ThomasSoogs, Angelvor, AngelaMuh, Nsneilohone

Administrators: geadmin: 5, filipealtoe: 35, Steffan: 89