Skip to main content
AD�?b
Senior
December 21, 2020
Solved

STM32F746G DISCO

  • December 21, 2020
  • 4 replies
  • 945 views

How to remember data after power off in STM32F746G DISCO?

Andrzej

This topic has been closed for replies.
Best answer by Peter BENSCH

You will also find samples for your board in your local repository, which is downloaded for tools like STM32CubeMX or STM32CubeIDE.

You could e.g. take a look at:

  • EEPROM_Emulation -> Repository\STM32Cube_FW_F7_V_._._\Projects\STM32746G-Discovery\Applications\EEPROM
  • FLASH_EraseProgram -> Repository\STM32Cube_FW_F7_V_._._\Projects\STM32746G-Discovery\Examples\FLASH\FLASH_EraseProgram

The latter not only shows how to erase Flash blocks, but also writes some data into these blocks beforehand, e.g. 0x12345678.

We hope you enjoy writing and reading the Flash.

/Peter

4 replies

Peter BENSCH
ST Technical Moderator
December 21, 2020

Unfortunately, the VBAT pin on the 32F746GDISCOVERY is permanently connected to VDD (no resistor/bridge/etc inbetween), so a battery/supercap cannot be connected.The only way here is to store data in Flash or e.g. on an external EEPROM you can connect to the 32F746GDISCOVERY.

Good luck!

When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
AD�?b
AD�?bAuthor
Senior
December 21, 2020

Any example for flash? How to do it?

Andrzej

Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
December 22, 2020

You will also find samples for your board in your local repository, which is downloaded for tools like STM32CubeMX or STM32CubeIDE.

You could e.g. take a look at:

  • EEPROM_Emulation -> Repository\STM32Cube_FW_F7_V_._._\Projects\STM32746G-Discovery\Applications\EEPROM
  • FLASH_EraseProgram -> Repository\STM32Cube_FW_F7_V_._._\Projects\STM32746G-Discovery\Examples\FLASH\FLASH_EraseProgram

The latter not only shows how to erase Flash blocks, but also writes some data into these blocks beforehand, e.g. 0x12345678.

We hope you enjoy writing and reading the Flash.

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.