Skip to main content
MNapi
Senior II
January 24, 2019
Question

is it possible to write to flash

  • January 24, 2019
  • 2 replies
  • 636 views

I see that there is a function to write SDRAM ( HAL_SDRAM_Write_32b ) but no FLASH.

I want to take data from ADC array[2000] and save so I do not loose when it is powered down.

And of course recall / display it later.

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
January 24, 2019

STM32Cube_FW_F4_V1.19.0\Projects\STM32F4-Discovery\Examples\FLASH\FLASH_EraseProgram\Src\main.c

Flash memory very slow to erase/write. ADC stuff, would probably stream to an SD Card.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
S.Ma
Principal
January 24, 2019

Ideally use an I2C or SPI EEPROM 8 pin device. they exist up to 32 kbyte. erase and write is fast with great rewrite cycle.