Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Read/Write to SPI flash?

Featured Replies

OrangePi Zero has (according to specifications) 2Mb SPI flash.

 

Sorry for my newbie question, but how is it possible to write there some file and read it later? Or at least some data (string)?

1 hour ago, Matthai said:

how is it possible to write there some file and read it later? Or at least some data (string)?

Normally, this SPI Flash is used to contain U-Boot for people that wish to boot from USB, either a dongle or an HDD.

If you don't need that, Yes, you can still use the SPI Flash to save data in it, but not as a filesystem with files.

There are some libraries that manage to send commands to flash certain amount of bytes or send "erase page" command, etc ...

 

But, btw, what is your "use-case" exactly ? It is more easy to write directly on your SDCard, right ?

  • Author

The idea is to have WifiAP, which connects to VPN. Software on a SD card would be generic, but VPN keys/paswords would be written on a SPI flash.

Is it possible to connect that with VeePN service? Now I am using VeePN just in order to receive access to blocked content like websites, games, media, music, some streaming TV apps like Netflix, etc. But, of course, if you need VPN for serious tasks you have to use more serious approach with SD cards.

On 3/10/2019 at 3:04 PM, martinayotte said:

Normally, this SPI Flash is used to contain U-Boot for people that wish to boot from USB, either a dongle or an HDD.

If you don't need that, Yes, you can still use the SPI Flash to save data in it, but not as a filesystem with files.

There are some libraries that manage to send commands to flash certain amount of bytes or send "erase page" command, etc ...

 

Should also note that most SPI-NOR flash parts have a very limited write cycle count compared to NAND (naked or SD/eMMC) - it's an order of a magnitude less...

 

should add that typically NOR is an MTD device, so a file system that is appropriate (jffs/jffs2 or ubi/ubifs) is needed...

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.