STM32F411RE Nucleo Board save data to flash memory

OP (Firma: conglomat gmbh) #6794720
Lesenswert?
• ▲
▼
I have a STM32F411RE nucleo board which I connect to an external button. 
The button is connected via following pins:
+5V, GND and GPIO_PIN_8 (PB_8)
I also have the USART connection to PUTTY.

My code does the follows:
when the button is pressed, the onboard green LED is on. In PUTTY the 
message "button is pressed" is shown.
when the button is not pressed, the onboard green LED is off and in 
PUTTY the message "button not pressed" is shown.

I would like to save the input from GPIO_PIN_8 in some form of file 
either directly on an external drive (microsd oder usb) so that I can 
open it later on. Since the STM32F411RE does not have EEPROM 
functionality, I read that storing data to flash memory is an option. 
Could someone explain to me
a) how can I store data in flash memory
b) how can I "export" data from flash memory to a readable file later on

Any help appreciated, thanks guys

Antwort schreiben

Hinweis: der ursprüngliche Beitrag ist mehr als 6 Monate alt. Bitte hier nur auf die ursprüngliche Frage antworten, für neue Fragen einen neuen Beitrag erstellen.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.