Skip to main content
Sm.1
Associate II
October 7, 2022
Solved

Can we divide stm32f373rct6 flash memory half for code memory and another half for data memory? if it is possible, please support. thank you suguresh m

  • October 7, 2022
  • 6 replies
  • 1273 views

..

This topic has been closed for replies.
Best answer by RomainR.

Hello m.1 (Community Member)

Yes you can split of course and refer to step 1°) in my previous reply.

Best regards,

Romain,

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

6 replies

RomainR.
ST Employee
October 7, 2022

Hello m.1 (Community Member)

Can you give more details about your need.

What kind of data do you want to store in the second part of the flash?

Best regards,

Romain,

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.
Sm.1
Sm.1Author
Associate II
October 7, 2022

I want to store my offset hex or decimal pointing numbers so I'm planning to split code memory and data memory.

Sm.1
Sm.1Author
Associate II
October 7, 2022

adc offset values

RomainR.
ST Employee
October 7, 2022

You have several methods to store user data in Flash memory:

1°) Specify a Flash section in Linker file to store your data, and manage your firmware to perform page Erase/Write or Read your data using HAL API.

2° Use EEPROM emulation technic (see Application Note below)

https://www.st.com/resource/en/application_note/an4056-eeprom-emulation-in-stm32f30xstm32f31xstm32f37xstm32f38x-microcontrollers-stmicroelectronics.pdf

3°) Use external EEPROM.

You can also refer to this post.

https://community.st.com/s/question/0D50X00009XkhRXSAZ/storing-variables-in-flash-hal

Note STM32F3 serie has the backup registers are thirty two 32-bit registers used to store 128 bytes of user application data.

Best regards,

Romain

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.
Sm.1
Sm.1Author
Associate II
October 8, 2022

I cant Use external eeprom to store because in my hardware design I didn't added so I'm searching alternate method. its have  64 to 256kbyte flash memory so I can split it right ?

RomainR.
RomainR.Best answer
ST Employee
October 12, 2022

Hello m.1 (Community Member)

Yes you can split of course and refer to step 1°) in my previous reply.

Best regards,

Romain,

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

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.