cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F746G DISCO

AD�?b
Senior

How to remember data after power off in STM32F746G DISCO?

Andrzej

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

4 REPLIES 4
Peter BENSCH
ST Employee

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.

Any example for flash? How to do it?

Andrzej

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.

Thanks!

greetings

I wish you a peaceful Christmas.

Andrzej