Skip to main content
AD�?b
Senior
Dec 21, 2020 3:46 PM UTC
Solved

STM32F746G DISCO

How to remember data after power off in STM32F746G DISCO?

Andrzej

This topic has been closed for replies.
Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
Dec 22, 2020 7:49 AM UTC

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.

4 replies

Peter BENSCH
ST Technical Moderator
Dec 21, 2020 4:19 PM UTC

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
Dec 21, 2020 4:38 PM UTC

Any example for flash? How to do it?

Andrzej

Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
Dec 22, 2020 7:49 AM UTC

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.